pic16f1509sip6.py 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 PIC16F1509 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_hasResetPC import *
  27. class Chip_Pic16F1509sip6(microchip8_splittedPMarea_hasResetPC):
  28. nLatches = 32
  29. rowSize = 32
  30. def __init__(self):
  31. microchip8_splittedPMarea_hasResetPC.__init__(self,
  32. chipPackage = "DIP10",
  33. chipPinVCC = 9,
  34. chipPinsVPP = 10,
  35. chipPinGND = 8,
  36. signature=b"\x00\x2E",
  37. flashPageSize=0x2000,
  38. flashPages=1,
  39. eepromPageSize=256,
  40. eepromPages=0,
  41. fuseBytes=4
  42. )
  43. fuseDesc = (
  44. BitDescription(0, "FOSC[0], 0=LP, 100=INTOSC"),
  45. BitDescription(1, "FOSC[1]"),
  46. BitDescription(2, "FOSC[2]"),
  47. BitDescription(3, "WDTE[0], 00=WDT disabled, 11=WDT enabled"),
  48. BitDescription(4, "WDTE[1]"),
  49. BitDescription(5, "nPWRTE"),
  50. BitDescription(6, "MCLRE, 1=nMCLR/Vpp pin is nMCLR, weak pull-up enabled, ignored if LVP=1 "),
  51. BitDescription(7, "nCP 1=program memory code protection is disabled"),
  52. BitDescription(8, "Unused"),
  53. BitDescription(9, "BOREN[0], 00=BOR disabled"),
  54. BitDescription(10, "BOREN[1]"),
  55. BitDescription(11, "nCLKOUTEN, 0=CLKOUT is enabled on CLKOUT pin"),
  56. BitDescription(12, "IESO, 0=Internal/External Switchover mode is disabled"),
  57. BitDescription(13, "FCMEN, 0=Fail-Safe Clock Monitor is disabled"),
  58. BitDescription(14, "NA"),
  59. BitDescription(15, "NA"),
  60. BitDescription(16, "WRT[0], 11=Write protection off"),
  61. BitDescription(17, "WRT[1]"),
  62. BitDescription(18, "Unused"),
  63. BitDescription(19, "Unused"),
  64. BitDescription(20, "Unused"),
  65. BitDescription(21, "Unused"),
  66. BitDescription(22, "Unused"),
  67. BitDescription(23, "Unused"),
  68. BitDescription(24, "Unused"),
  69. BitDescription(25, "STVREN, 1=Stack overflow or underflow will cause a reset"),
  70. BitDescription(26, "BORV"),
  71. BitDescription(27, "nLPBOR, 1=Low-Power BOR is disabled"),
  72. BitDescription(28, "nDEBUG, 0=ICSPCLK and ICSPDAT are dedicated to the debugger"),
  73. BitDescription(29, "LVP 1=Low-voltage programming enabled"),
  74. )
  75. ChipDescription(
  76. Chip_Pic16F1509sip6,
  77. bitfile = "microchip01sip6",
  78. chipID="pic16F1509sip6",
  79. runtimeID = (0xDE05, 0x01),
  80. chipVendors="Microchip",
  81. description = "PIC16F1509, PIC16LF1509 - ICD",
  82. packages = (("DIP10", ""), ),
  83. fuseDesc=fuseDesc,
  84. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  85. )