pic24f04ka201sip6.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 PIC24f04ka201 SIP6
  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 ka200_fuseDesc
  28. class Chip_Pic24f04ka201sip6(Chip_Microchip16_common):
  29. voltageVDD = 3.3
  30. voltageVPP = 8
  31. logicalFlashProgramMemorySize = 0x800000
  32. logicalFlashConfigurationMemorySize = 0x800000
  33. hasEEPROM = False
  34. def __init__(self):
  35. Chip_Microchip16_common.__init__(self,
  36. chipPackage = "DIP10",
  37. chipPinVCC = 9,
  38. chipPinsVPP = 10,
  39. chipPinGND = 8,
  40. signature=b"\x00\x0d",
  41. # flashPageSize (in number of 24bit words)
  42. flashPageSize=0xAFE // 2 + 2,
  43. # flashPageSize=0x40,
  44. flashPages=1,
  45. # eepromPageSize (in 16bit words)
  46. eepromPageSize=0,
  47. eepromPages=0,
  48. # all 7 words uses lowest byte only
  49. fuseBytes=2 * 9
  50. )
  51. self.configWordAddr = 0xF80000
  52. # self.osccalBackupAddr = self.userIDLocationAddr + self.userIDLocationSize
  53. fuseDesc = ka200_fuseDesc
  54. ChipDescription(
  55. Chip_Pic24f04ka201sip6,
  56. bitfile = "microchip16sip6",
  57. chipID="pic24f04ka201sip6",
  58. runtimeID = (0xDF05, 0x01),
  59. chipVendors="Microchip",
  60. description = "PIC24F04KA201 - ICD",
  61. packages = (("DIP10", ""), ),
  62. fuseDesc=fuseDesc,
  63. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  64. )