pic10f320dip8.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Microchip PIC10F320 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_splittedPMarea_hasResetPC import *
  23. class Chip_Pic10F320dip8(microchip8_splittedPMarea_hasResetPC):
  24. rowSize = 16
  25. nLatches = 16
  26. logicalFlashProgramMemorySize = 0x2000
  27. logicalFlashConfigurationMemorySize = 0x2000
  28. def __init__(self):
  29. microchip8_splittedPMarea_hasResetPC.__init__(self,
  30. chipPackage="DIP8",
  31. chipPinVCC=2,
  32. chipPinsVPP=8,
  33. chipPinGND=7,
  34. signature=b"\xA1\x29",
  35. flashPageSize=0x100,
  36. flashPages=1,
  37. eepromPageSize=0,
  38. eepromPages=0,
  39. fuseBytes=2
  40. )
  41. fuseDesc = (
  42. BitDescription(0, "FOSC, 1=CLKIN, 0=internal"),
  43. BitDescription(1, "BOREN[0]"),
  44. BitDescription(2, "BOREN[1]"),
  45. BitDescription(3, "WDTE[0]"),
  46. BitDescription(4, "WDTE[1]"),
  47. BitDescription(5, "nPWRTE"),
  48. BitDescription(6, "MCLRE, 1=RA3 is nMCLR, weak pull-up enabled"),
  49. BitDescription(7, "nCP"),
  50. BitDescription(8, "LVP"),
  51. BitDescription(9, "LPBOREN"),
  52. BitDescription(10, "BORV"),
  53. BitDescription(11, "WRT[0]"),
  54. BitDescription(12, "WRT[1] 11=write protection off"),
  55. BitDescription(13, "Unused"),
  56. )
  57. ChipDescription(
  58. Chip_Pic10F320dip8,
  59. bitfile="pic10fxxxdip8",
  60. chipID="pic10f320dip8",
  61. runtimeID=(0xDE01, 0x01),
  62. chipVendors="Microchip",
  63. description="PIC10F320, PIC10LF320",
  64. packages=(("DIP8", ""),),
  65. fuseDesc=fuseDesc,
  66. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  67. )