pic10f200dip8.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Microchip PIC10F200, PIC10F204 and PIC10f220 DIP8
  5. #
  6. # Copyright (c) 2013 Pavel Stemberk <stemberk@gmail.com>
  7. #
  8. # This program is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published by
  10. # the Free Software Foundation; either version 2 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # This program is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License along
  19. # with this program; if not, write to the Free Software Foundation, Inc.,
  20. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. """
  22. from .microchip8_singlePMarea import *
  23. class Chip_Pic10F200dip8(microchip8_singlePMarea):
  24. # CONFIGURATION WORD FOR PIC10F200/202/204/206
  25. # X X X X X X X MCLRE /CP WDT X X
  26. logicalFlashSize = 0x200
  27. def __init__(self):
  28. microchip8_singlePMarea.__init__(self,
  29. chipPackage="DIP8",
  30. chipPinVCC=2,
  31. chipPinsVPP=8,
  32. chipPinGND=7,
  33. signature=b"\x09\x18\x24\x35",
  34. flashPageSize=0x100,
  35. flashPages=1,
  36. eepromPageSize=0,
  37. eepromPages=0,
  38. fuseBytes=2
  39. )
  40. fuseDesc = (
  41. BitDescription(0, "Unused"),
  42. BitDescription(1, "Unused"),
  43. BitDescription(2, "WDTE"),
  44. BitDescription(3, "!CP"),
  45. BitDescription(4, "MCLRE"),
  46. BitDescription(5, "Unused"),
  47. BitDescription(6, "Unused"),
  48. BitDescription(7, "Unused"),
  49. BitDescription(8, "Unused"),
  50. BitDescription(9, "Unused"),
  51. BitDescription(10, "Unused"),
  52. BitDescription(11, "Unused"),
  53. )
  54. ChipDescription(
  55. Chip_Pic10F200dip8,
  56. bitfile="pic10fxxxdip8",
  57. chipID="pic10f200dip8",
  58. runtimeID=(0xDE01, 0x01),
  59. chipVendors="Microchip",
  60. description="PIC10F200, PIC10F204, PIC10F220",
  61. packages=(("DIP8", ""),),
  62. fuseDesc=fuseDesc,
  63. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  64. )