Advertisement
Guest User

Untitled

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