pic16f59dip40.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Microchip PIC16F59 SIP6
  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_Pic16F59dip40(microchip8_singlePMarea):
  24. logicalFlashSize = 0x1000
  25. def __init__(self):
  26. microchip8_singlePMarea.__init__(self,
  27. chipPackage="DIP40",
  28. chipPinVCC=15,
  29. chipPinsVPP=14,
  30. chipPinGND=5,
  31. signature=b"",
  32. flashPageSize=0x200,
  33. flashPages=4,
  34. eepromPageSize=0,
  35. eepromPages=0,
  36. fuseBytes=2
  37. )
  38. fuseDesc = (
  39. BitDescription(0, "FOSC0"),
  40. BitDescription(1, "FOSC1 - 00=LP, 01=XT, 10=HS, 11=RC"),
  41. BitDescription(2, "WDTE"),
  42. BitDescription(3, "!CP"),
  43. BitDescription(4, "Unused"),
  44. BitDescription(5, "Unused"),
  45. BitDescription(6, "Unused"),
  46. BitDescription(7, "Unused"),
  47. BitDescription(8, "Unused"),
  48. BitDescription(9, "Unused"),
  49. BitDescription(10, "Unused"),
  50. BitDescription(11, "Unused"),
  51. )
  52. ChipDescription(
  53. Chip_Pic16F59dip40,
  54. bitfile="microchip01dip40",
  55. chipID="pic16f59dip40",
  56. runtimeID=(0xDE06, 0x01),
  57. chipVendors="Microchip",
  58. description="PIC16F59",
  59. packages=(("DIP40", ""),),
  60. fuseDesc=fuseDesc,
  61. maintainer="Pavel Stemberk <stemberk@gmail.com>",
  62. )