pic18f1220sip6.py 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 PIC18F1220 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_18f1220family import *
  27. class Chip_PIC18F1220sip6(microchip8_18f1220family):
  28. hasEEPROM = True
  29. writeBufferSize = 8
  30. eraseBufferSize = 64
  31. def __init__(self):
  32. microchip8_18f1220family.__init__(self,
  33. chipPackage = "DIP10",
  34. chipPinVCC = 9,
  35. chipPinsVPP = 10,
  36. chipPinGND = 8,
  37. signature=b"\xE7\x07",
  38. flashPageSize=0x1000,
  39. flashPages=1,
  40. eepromPageSize=0x100,
  41. eepromPages=1,
  42. fuseBytes=14
  43. )
  44. fuseDesc = (
  45. BitDescription(0o00, "NA"),
  46. BitDescription(0o01, "NA"),
  47. BitDescription(0o02, "NA"),
  48. BitDescription(0o03, "NA"),
  49. BitDescription(0o04, "NA"),
  50. BitDescription(0o05, "NA"),
  51. BitDescription(0o06, "NA"),
  52. BitDescription(0o07, "NA"),
  53. BitDescription(0o10, "FOSC[0], 0000=LP, 1000=internal RC oscillator, RA6=CLKO"),
  54. BitDescription(0o11, "FOSC[1]"),
  55. BitDescription(0o12, "FOSC[2]"),
  56. BitDescription(0o13, "FOSC[3]"),
  57. BitDescription(0o14, "NA"),
  58. BitDescription(0o15, "NA"),
  59. BitDescription(0o16, "FSCM, 0=Fail-Safe Clock Monitor is disabled"),
  60. BitDescription(0o17, "IESO, 0=Internal/External Switchover mode is disabled"),
  61. BitDescription(0o20, "nPWRT"),
  62. BitDescription(0o21, "BOR"),
  63. BitDescription(0o22, "BORV[0]"),
  64. BitDescription(0o23, "BORV[1]"),
  65. BitDescription(0o24, "NA"),
  66. BitDescription(0o25, "NA"),
  67. BitDescription(0o26, "NA"),
  68. BitDescription(0o27, "NA"),
  69. BitDescription(0o30, "WDT, 0=WDT disabled, 1=WDT enabled"),
  70. BitDescription(0o31, "WDTPS[0]"),
  71. BitDescription(0o32, "WDTPS[1]"),
  72. BitDescription(0o33, "WDTPS[2]"),
  73. BitDescription(0o34, "WDTPS[3]"),
  74. BitDescription(0o35, "NA"),
  75. BitDescription(0o36, "NA"),
  76. BitDescription(0o37, "NA"),
  77. BitDescription(0o40, "NA"),
  78. BitDescription(0o41, "NA"),
  79. BitDescription(0o42, "NA"),
  80. BitDescription(0o43, "NA"),
  81. BitDescription(0o44, "NA"),
  82. BitDescription(0o45, "NA"),
  83. BitDescription(0o46, "NA"),
  84. BitDescription(0o47, "NA"),
  85. BitDescription(0o50, "NA"),
  86. BitDescription(0o51, "NA"),
  87. BitDescription(0o52, "NA"),
  88. BitDescription(0o53, "NA"),
  89. BitDescription(0o54, "NA"),
  90. BitDescription(0o55, "NA"),
  91. BitDescription(0o56, "NA"),
  92. BitDescription(0o57, "MCLRE"),
  93. BitDescription(0o60, "STVR"),
  94. BitDescription(0o61, "NA"),
  95. BitDescription(0o62, "LVP"),
  96. BitDescription(0o63, "NA"),
  97. BitDescription(0o64, "NA"),
  98. BitDescription(0o65, "NA"),
  99. BitDescription(0o66, "NA"),
  100. BitDescription(0o67, "nDEBUG"),
  101. BitDescription(0o70, "NA"),
  102. BitDescription(0o71, "NA"),
  103. BitDescription(0o72, "NA"),
  104. BitDescription(0o73, "NA"),
  105. BitDescription(0o74, "NA"),
  106. BitDescription(0o75, "NA"),
  107. BitDescription(0o76, "NA"),
  108. BitDescription(0o77, "NA"),
  109. BitDescription(0o100, "CP[0]"),
  110. BitDescription(0o101, "CP[1]"),
  111. BitDescription(0o102, "NA"),
  112. BitDescription(0o103, "NA"),
  113. BitDescription(0o104, "NA"),
  114. BitDescription(0o105, "NA"),
  115. BitDescription(0o106, "NA"),
  116. BitDescription(0o107, "NA"),
  117. BitDescription(0o110, "NA"),
  118. BitDescription(0o111, "NA"),
  119. BitDescription(0o112, "NA"),
  120. BitDescription(0o113, "NA"),
  121. BitDescription(0o114, "NA"),
  122. BitDescription(0o115, "NA"),
  123. BitDescription(0o116, "CPB"),
  124. BitDescription(0o117, "CPD"),
  125. BitDescription(0o120, "WRT[0]"),
  126. BitDescription(0o121, "WRT[1]"),
  127. BitDescription(0o122, "NA"),
  128. BitDescription(0o123, "NA"),
  129. BitDescription(0o124, "NA"),
  130. BitDescription(0o125, "NA"),
  131. BitDescription(0o126, "NA"),
  132. BitDescription(0o127, "NA"),
  133. BitDescription(0o130, "NA"),
  134. BitDescription(0o131, "NA"),
  135. BitDescription(0o132, "NA"),
  136. BitDescription(0o133, "NA"),
  137. BitDescription(0o134, "NA"),
  138. BitDescription(0o135, "WRTC"),
  139. BitDescription(0o136, "WRTB"),
  140. BitDescription(0o137, "WRTD"),
  141. BitDescription(0o140, "EBTR[0]"),
  142. BitDescription(0o141, "EBTR[1]"),
  143. BitDescription(0o142, "NA"),
  144. BitDescription(0o143, "NA"),
  145. BitDescription(0o144, "NA"),
  146. BitDescription(0o145, "NA"),
  147. BitDescription(0o146, "NA"),
  148. BitDescription(0o147, "NA"),
  149. BitDescription(0o150, "NA"),
  150. BitDescription(0o151, "NA"),
  151. BitDescription(0o152, "NA"),
  152. BitDescription(0o153, "NA"),
  153. BitDescription(0o154, "NA"),
  154. BitDescription(0o155, "NA"),
  155. BitDescription(0o156, "EBTRB"),
  156. BitDescription(0o157, "NA"),
  157. )
  158. ChipDescription(
  159. Chip_PIC18F1220sip6,
  160. bitfile = "microchip01sip6",
  161. chipID="PIC18F1220sip6",
  162. runtimeID = (0xDE05, 0x01),
  163. chipVendors="Microchip",
  164. description = "PIC18F1220 - ICD",
  165. packages = (("DIP10", ""), ),
  166. fuseDesc=fuseDesc,
  167. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  168. )