Advertisement
Boelle

Untitled

Dec 31st, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. #------------------------------------------------------------
  2. # ATmega644
  3. #------------------------------------------------------------
  4.  
  5. # similar to ATmega164
  6.  
  7. part
  8. id = "m644";
  9. desc = "ATMEGA644";
  10. has_jtag = yes;
  11. stk500_devcode = 0x82; # no STK500v1 support, use the ATmega16 one
  12. avr910_devcode = 0x74;
  13. signature = 0x1e 0x96 0x09;
  14. pagel = 0xd7;
  15. bs2 = 0xa0;
  16. chip_erase_delay = 9000;
  17. pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
  18. "x x x x x x x x x x x x x x x x";
  19.  
  20. chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
  21. "x x x x x x x x x x x x x x x x";
  22.  
  23. timeout = 200;
  24. stabdelay = 100;
  25. cmdexedelay = 25;
  26. synchloops = 32;
  27. bytedelay = 0;
  28. pollindex = 3;
  29. pollvalue = 0x53;
  30. predelay = 1;
  31. postdelay = 1;
  32. pollmethod = 0;
  33.  
  34. pp_controlstack =
  35. 0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
  36. 0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
  37. 0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
  38. 0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02;
  39. hventerstabdelay = 100;
  40. progmodedelay = 0;
  41. latchcycles = 6;
  42. togglevtg = 0;
  43. poweroffdelay = 0;
  44. resetdelayms = 0;
  45. resetdelayus = 0;
  46. hvleavestabdelay = 15;
  47. chiperasepulsewidth = 0;
  48. chiperasepolltimeout = 10;
  49. programfusepulsewidth = 0;
  50. programfusepolltimeout = 5;
  51. programlockpulsewidth = 0;
  52. programlockpolltimeout = 5;
  53.  
  54. idr = 0x31;
  55. spmcr = 0x57;
  56. allowfullpagebitstream = no;
  57.  
  58. memory "eeprom"
  59. paged = no; /* leave this "no" */
  60. page_size = 8; /* for parallel programming */
  61. size = 2048;
  62. min_write_delay = 9000;
  63. max_write_delay = 9000;
  64. readback_p1 = 0xff;
  65. readback_p2 = 0xff;
  66. read = " 1 0 1 0 0 0 0 0",
  67. " 0 0 x x a11 a10 a9 a8",
  68. " a7 a6 a5 a4 a3 a2 a1 a0",
  69. " o o o o o o o o";
  70.  
  71. write = " 1 1 0 0 0 0 0 0",
  72. " 0 0 x x a11 a10 a9 a8",
  73. " a7 a6 a5 a4 a3 a2 a1 a0",
  74. " i i i i i i i i";
  75.  
  76. loadpage_lo = " 1 1 0 0 0 0 0 1",
  77. " 0 0 0 0 0 0 0 0",
  78. " 0 0 0 0 0 a2 a1 a0",
  79. " i i i i i i i i";
  80.  
  81. writepage = " 1 1 0 0 0 0 1 0",
  82. " 0 0 x x a11 a10 a9 a8",
  83. " a7 a6 a5 a4 a3 0 0 0",
  84. " x x x x x x x x";
  85.  
  86. mode = 0x41;
  87. delay = 10;
  88. blocksize = 128;
  89. readsize = 256;
  90. ;
  91.  
  92. memory "flash"
  93. paged = yes;
  94. size = 65536;
  95. page_size = 256;
  96. num_pages = 256;
  97. min_write_delay = 4500;
  98. max_write_delay = 4500;
  99. readback_p1 = 0xff;
  100. readback_p2 = 0xff;
  101. read_lo = " 0 0 1 0 0 0 0 0",
  102. "a15 a14 a13 a12 a11 a10 a9 a8",
  103. " a7 a6 a5 a4 a3 a2 a1 a0",
  104. " o o o o o o o o";
  105.  
  106. read_hi = " 0 0 1 0 1 0 0 0",
  107. "a15 a14 a13 a12 a11 a10 a9 a8",
  108. " a7 a6 a5 a4 a3 a2 a1 a0",
  109. " o o o o o o o o";
  110.  
  111. loadpage_lo = " 0 1 0 0 0 0 0 0",
  112. " 0 0 x x x x x x",
  113. " x a6 a5 a4 a3 a2 a1 a0",
  114. " i i i i i i i i";
  115.  
  116. loadpage_hi = " 0 1 0 0 1 0 0 0",
  117. " 0 0 x x x x x x",
  118. " x a6 a5 a4 a3 a2 a1 a0",
  119. " i i i i i i i i";
  120.  
  121. writepage = " 0 1 0 0 1 1 0 0",
  122. "a15 a14 a13 a12 a11 a10 a9 a8",
  123. " a7 x x x x x x x",
  124. " x x x x x x x x";
  125.  
  126. mode = 0x21;
  127. delay = 6;
  128. blocksize = 256;
  129. readsize = 256;
  130. ;
  131.  
  132. memory "lock"
  133. size = 1;
  134. read = "0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0",
  135. "x x x x x x x x x x o o o o o o";
  136.  
  137. write = "1 0 1 0 1 1 0 0 1 1 1 x x x x x",
  138. "x x x x x x x x 1 1 i i i i i i";
  139. min_write_delay = 9000;
  140. max_write_delay = 9000;
  141. ;
  142.  
  143. memory "lfuse"
  144. size = 1;
  145. read = "0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0",
  146. "x x x x x x x x o o o o o o o o";
  147.  
  148. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 0",
  149. "x x x x x x x x i i i i i i i i";
  150. min_write_delay = 9000;
  151. max_write_delay = 9000;
  152. ;
  153.  
  154. memory "hfuse"
  155. size = 1;
  156. read = "0 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0",
  157. "x x x x x x x x o o o o o o o o";
  158.  
  159. write = "1 0 1 0 1 1 0 0 1 0 1 0 1 0 0 0",
  160. "x x x x x x x x i i i i i i i i";
  161. min_write_delay = 9000;
  162. max_write_delay = 9000;
  163. ;
  164.  
  165. memory "efuse"
  166. size = 1;
  167.  
  168. read = "0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0",
  169. "x x x x x x x x o o o o o o o o";
  170.  
  171. write = "1 0 1 0 1 1 0 0 1 0 1 0 0 1 0 0",
  172. "x x x x x x x x 1 1 1 1 1 i i i";
  173. min_write_delay = 9000;
  174. max_write_delay = 9000;
  175. ;
  176.  
  177. memory "signature"
  178. size = 3;
  179. read = "0 0 1 1 0 0 0 0 x x x x x x x x",
  180. "x x x x x x a1 a0 o o o o o o o o";
  181. ;
  182.  
  183. memory "calibration"
  184. size = 1;
  185.  
  186. read = "0 0 1 1 1 0 0 0 0 0 0 x x x x x",
  187. "0 0 0 0 0 0 0 0 o o o o o o o o";
  188. ;
  189. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement