Atmega328p

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://akekuqegify.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
----
 +
=[http://akekuqegify.co.cc CLICK HERE]=
 +
----
 +
</div>
 
Info on the ATMega328p hardware:
 
Info on the ATMega328p hardware:
  
<h2>data sheet</h2>
+
&lt;h2&gt;data sheet&lt;/h2&gt;
http://attie.co.uk/file/ATmega328p.pdf<br>
+
http://attie.co.uk/file/ATmega328p.pdf&lt;br&gt;
  
<h2>icsp pins</h2>
+
&lt;h2&gt;icsp pins&lt;/h2&gt;
  
<h3>connecting to [[bus pirate]] for use with [[avrdude]]</h3>
+
&lt;h3&gt;connecting to [[bus pirate]] for use with [[avrdude]]&lt;/h3&gt;
 
{|
 
{|
 
|-
 
|-
|align="right" |brown
+
|align=&quot;right&quot; |brown
|bgcolor="rgb(157,98,66)" width="18px" |
+
|bgcolor=&quot;rgb(157,98,66)&quot; width=&quot;18px&quot; |
 
|miso
 
|miso
 
|1
 
|1
|width="10px" |
+
|width=&quot;10px&quot; |
 
|2
 
|2
|align="right" |vcc (3.3v)
+
|align=&quot;right&quot; |vcc (3.3v)
|bgcolor="rgb(255,255,255)" style="border:solid 1px #000;" width="18px" |
+
|bgcolor=&quot;rgb(255,255,255)&quot; style=&quot;border:solid 1px #000;&quot; width=&quot;18px&quot; |
 
|white
 
|white
 
|-
 
|-
|align="right" |yellow
+
|align=&quot;right&quot; |yellow
|bgcolor="rgb(255,250,47)" |
+
|bgcolor=&quot;rgb(255,250,47)&quot; |
 
|sck
 
|sck
 
|3
 
|3
 
|
 
|
 
|4
 
|4
|align="right" |mosi
+
|align=&quot;right&quot; |mosi
|bgcolor="rgb(254,156,24)" |
+
|bgcolor=&quot;rgb(254,156,24)&quot; |
 
|orange
 
|orange
 
|-
 
|-
|align="right" |red
+
|align=&quot;right&quot; |red
|bgcolor="rgb(255,13,13)" |
+
|bgcolor=&quot;rgb(255,13,13)&quot; |
 
|reset
 
|reset
 
|5
 
|5
 
|
 
|
 
|6
 
|6
|align="right" |gnd
+
|align=&quot;right&quot; |gnd
|bgcolor="rgb(0,0,0)" |
+
|bgcolor=&quot;rgb(0,0,0)&quot; |
 
|black
 
|black
 
|}
 
|}
 
pin 2 can use the gray wire for 5v instead of 3.3v if your circuit is okay with that
 
pin 2 can use the gray wire for 5v instead of 3.3v if your circuit is okay with that
  
<h2>pin mapping:</h2>
+
&lt;h2&gt;pin mapping:&lt;/h2&gt;
[[File:Atmega168PinMap2.png]]<br>
+
[[File:Atmega168PinMap2.png]]&lt;br&gt;
 
source: http://arduino.cc/en/Hacking/PinMapping168
 
source: http://arduino.cc/en/Hacking/PinMapping168
  
<h2>firmwares:</h2>
+
&lt;h2&gt;firmwares:&lt;/h2&gt;
The arduino environment comes with a few variations of the firmware (<code>&lt;path to arduino&gt;/hardware/arduino/bootloaders/atmega</code>)<br>
+
The arduino environment comes with a few variations of the firmware (&lt;code&gt;&amp;lt;path to arduino&amp;gt;/hardware/arduino/bootloaders/atmega&lt;/code&gt;)&lt;br&gt;
load them like this:<br>
+
load them like this:&lt;br&gt;
<pre>
+
&lt;pre&gt;
 
$ avrdude -c buspirate -P /dev/ttyUSB1 -p m328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex
 
$ avrdude -c buspirate -P /dev/ttyUSB1 -p m328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex
</pre>
+
&lt;/pre&gt;
This table shows which arduino (that I own...) uses which firmware<br>
+
This table shows which arduino (that I own...) uses which firmware&lt;br&gt;
 
{|
 
{|
 
!Filename
 
!Filename
Line 66: Line 74:
 
|}
 
|}
  
<h2>resources</h2>
+
&lt;h2&gt;resources&lt;/h2&gt;
https://www.mainframe.cx/~ckuethe/avr-c-tutorial/<br>
+
https://www.mainframe.cx/~ckuethe/avr-c-tutorial/&lt;br&gt;
http://hintshop.ludvig.co.nz/show/buspirate-avr-programming/<br>
+
http://hintshop.ludvig.co.nz/show/buspirate-avr-programming/&lt;br&gt;
http://itp.nyu.edu/physcomp/uploads/6pinAVRproghead.jpg<br>
+
http://itp.nyu.edu/physcomp/uploads/6pinAVRproghead.jpg&lt;br&gt;
http://dangerousprototypes.com/bus-pirate-manual/<br>
+
http://dangerousprototypes.com/bus-pirate-manual/&lt;br&gt;
 
http://www.ladyada.net/library/arduino/bootloader.html
 
http://www.ladyada.net/library/arduino/bootloader.html

Revision as of 01:24, 24 November 2010



Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


CLICK HERE


Info on the ATMega328p hardware:

<h2>data sheet</h2> http://attie.co.uk/file/ATmega328p.pdf<br>

<h2>icsp pins</h2>

<h3>connecting to bus pirate for use with avrdude</h3>

brown miso 1 2 vcc (3.3v) white
yellow sck 3 4 mosi orange
red reset 5 6 gnd black

pin 2 can use the gray wire for 5v instead of 3.3v if your circuit is okay with that

<h2>pin mapping:</h2> Atmega168PinMap2.png<br> source: http://arduino.cc/en/Hacking/PinMapping168

<h2>firmwares:</h2> The arduino environment comes with a few variations of the firmware (<code>&lt;path to arduino&gt;/hardware/arduino/bootloaders/atmega</code>)<br> load them like this:<br> <pre> $ avrdude -c buspirate -P /dev/ttyUSB1 -p m328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex </pre> This table shows which arduino (that I own...) uses which firmware<br>

Filename Processor Arduino Boards
ATmegaBOOT_168_diecimila.hex ATMega168 @ 16Mhz Diecimila, Duemilanove, Nano
ATmegaBOOT_168_atmega328_pro_8MHz.hex ATMega328p @ 8Mhz Pro Mini, Fio

<h2>resources</h2> https://www.mainframe.cx/~ckuethe/avr-c-tutorial/<br> http://hintshop.ludvig.co.nz/show/buspirate-avr-programming/<br> http://itp.nyu.edu/physcomp/uploads/6pinAVRproghead.jpg<br> http://dangerousprototypes.com/bus-pirate-manual/<br> http://www.ladyada.net/library/arduino/bootloader.html

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox