atmega32dip40.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. """
  2. # TOP2049 Open Source programming suite
  3. #
  4. # Atmel Mega32 DIP40 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_ATMega32DIP40(Chip_ATMega_common):
  24. def __init__(self):
  25. Chip_ATMega_common.__init__(self,
  26. chipPackage = "DIP40",
  27. chipPinVCC = 10,
  28. chipPinsVPP = 9,
  29. chipPinGND = 11,
  30. signature = b"\x1E\x95\x02",
  31. flashPageSize = 64,
  32. flashPages = 256,
  33. eepromPageSize = 4,
  34. eepromPages = 256,
  35. fuseBytes = 2)
  36. ChipDescription(
  37. Chip_ATMega32DIP40,
  38. bitfile = "atmega32dip40",
  39. runtimeID = (0x0004, 0x01),
  40. chipVendors = "Atmel",
  41. description = "AtMega32",
  42. packages = ( ("DIP40", ""), ),
  43. comment = "Insert upside down into ZIF socket"
  44. )