pic24f08kl302dip28.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Microchip PIC24f08kl302 DIP28
  5. #
  6. # Copyright (c) 2014 Pavel Stemberk <stemberk@gmail.com>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License along
  19. # with this program; if not, write to the Free Software Foundation, Inc.,
  20. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. """
  22. from .microchip16_common import *
  23. from .configWords import klx0x_fuseDesc
  24. class Chip_Pic24f08kl302dip28(Chip_Microchip16_common):
  25. voltageVDD = 3.3
  26. voltageVPP = 8
  27. logicalFlashProgramMemorySize = 0x800000
  28. logicalFlashConfigurationMemorySize = 0x800000
  29. eepromStartAddress = 0x7FFF00
  30. def __init__(self):
  31. Chip_Microchip16_common.__init__(self,
  32. chipPackage="DIP28",
  33. chipPinVCC=28,
  34. chipPinsVPP=1,
  35. chipPinGND=27,
  36. signature=b"\x00\x4b",
  37. # flashPageSize (in number of 24bit words)
  38. flashPageSize=0x15fe // 2 + 2,
  39. # flashPageSize=0x40,
  40. flashPages=1,
  41. # eepromPageSize (in 16bit words)
  42. eepromPageSize=0x80,
  43. eepromPages=1,
  44. # all 7 words uses lowest byte only
  45. fuseBytes=2 * 9
  46. )
  47. self.configWordAddr = 0xF80000
  48. # self.osccalBackupAddr = self.userIDLocationAddr + self.userIDLocationSize
  49. fuseDesc = klx0x_fuseDesc
  50. ChipDescription(
  51. Chip_Pic24f08kl302dip28,
  52. bitfile="microchip16dip28",
  53. chipID="pic24f08kl302dip28",
  54. runtimeID=(0xDF02, 0x01),
  55. chipVendors="Microchip",
  56. description="PIC24F08KL302",
  57. packages=(("DIP28", ""),),
  58. fuseDesc=fuseDesc,
  59. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  60. )