atmega88dip28.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Atmel Mega88 DIP28 support
  5. #
  6. # Copyright (c) 2009-2010 Michael Buesch <m@bues.ch>
  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 .atmega_common import *
  23. class Chip_ATMega88DIP28(Chip_ATMega_common):
  24. def __init__(self):
  25. Chip_ATMega_common.__init__(self,
  26. chipPackage = "DIP28",
  27. chipPinVCC = 7,
  28. chipPinsVPP = 1,
  29. chipPinGND = 8,
  30. signature = b"\x1E\x93\x0A",
  31. flashPageSize = 32,
  32. flashPages = 128,
  33. eepromPageSize = 4,
  34. eepromPages = 128,
  35. fuseBytes = 3)
  36. ChipDescription(
  37. Chip_ATMega88DIP28,
  38. bitfile = "atmega8dip28",
  39. chipID = "atmega88dip28",
  40. runtimeID = (0x0003, 0x01),
  41. chipVendors = "Atmel",
  42. description = "AtMega88",
  43. packages = ( ("DIP28", ""), ),
  44. )
  45. class Chip_ATMega88paDIP28(Chip_ATMega_common):
  46. def __init__(self):
  47. Chip_ATMega_common.__init__(self,
  48. chipPackage = "DIP28",
  49. chipPinVCC = 7,
  50. chipPinsVPP = 1,
  51. chipPinGND = 8,
  52. signature = b"\x1E\x93\x0F",
  53. flashPageSize = 32,
  54. flashPages = 128,
  55. eepromPageSize = 4,
  56. eepromPages = 128,
  57. fuseBytes = 3)
  58. ChipDescription(
  59. Chip_ATMega88paDIP28,
  60. bitfile = "atmega8dip28",
  61. chipID = "atmega88padip28",
  62. runtimeID = (0x0003, 0x01),
  63. chipVendors = "Atmel",
  64. description = "AtMega88PA",
  65. packages = ( ("DIP28", ""), ),
  66. )