pic24f16kl401sip6.py 2.1 KB

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