pic16lf1903sip6.py 3.1 KB

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