pic12f629sip6.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 PIC12F629 SIP6
  9. #
  10. # Copyright (c) 2013 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 .microchip8_splittedPMarea import *
  27. class Chip_Pic12F629sip6(microchip8_splittedPMarea):
  28. voltageVDD = 5
  29. voltageVPP = 9
  30. userIDLocationSize = 4
  31. hasEEPROM = True
  32. CMD_BEGIN_INTERNALLY_TIMED_PROGRAMMING = 0x08
  33. delayTinternalProgPM = 0.002
  34. delayTinternalProgDM = 0.005
  35. def __init__(self):
  36. microchip8_splittedPMarea.__init__(self,
  37. chipPackage = "DIP10",
  38. chipPinVCC = 9,
  39. chipPinsVPP = 10,
  40. chipPinGND = 8,
  41. signature=b"\xCB\x0F",
  42. flashPageSize=0x400, # 1024 words
  43. flashPages=1,
  44. eepromPageSize=128,
  45. eepromPages=1,
  46. fuseBytes=2
  47. )
  48. self.configWordAddr = 0x2007
  49. self.osccalAddr = self.flashPageSize - 1
  50. fuseDesc = (
  51. BitDescription(0, "FOSC[0], 0=LP, 100=INTOSC"),
  52. BitDescription(1, "FOSC[1]"),
  53. BitDescription(2, "FOSC[2]"),
  54. BitDescription(3, "WDTE, 0=WDT disabled, 1=WDT enabled"),
  55. BitDescription(4, "nPWRTE"),
  56. BitDescription(5, "MCLRE"),
  57. BitDescription(6, "BODEN, 0=BOD disabled"),
  58. BitDescription(7, "nCP 1=program memory code protection is disabled"),
  59. BitDescription(8, "nCPD, 1=data memory code protection is disabled"),
  60. BitDescription(9, "Unused"),
  61. BitDescription(10, "Unused"),
  62. BitDescription(11, "Unused"),
  63. BitDescription(12, "BG[0], Band Gap Calibration bits, 00 = Lowest band gap voltage"),
  64. BitDescription(13, "BG[1]"),
  65. )
  66. ChipDescription(
  67. Chip_Pic12F629sip6,
  68. bitfile = "microchip01sip6",
  69. chipID="pic12F629sip6",
  70. runtimeID = (0xDE05, 0x01),
  71. chipVendors="Microchip",
  72. description = "PIC12F629, PIC12F675 - ICD",
  73. packages = (("DIP10", ""), ),
  74. fuseDesc=fuseDesc,
  75. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  76. )