Serial.begin( 57600 ); Serial.print ( _AVR_IOXXX_H_);outputs the name of the include file (ex: iom328p.h )
PINB, PINB0, DDRB, DDB0, PORTB,PORTB0 … TIFR0 … PCIFR, EISMK, INT0, GPIOR0 …, EECR, …
EE_READY_vect, RAMEND, E2END, FLASHEND,
FUSE_BODLEVEL0 ,
SIGNATURE_0, 1,2
nFF | stack . . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FF | . reserved . | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C6 | USART Data | UDR0 | 7 | 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C5 | baud | UBRR0H | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C4 | rate | UBRR0L | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
C2 | UCSR0C | RXC0 RcvCmplt Character ready | TXC0 Trnsmit Complete | UDRE0 UDR0 is empty | FE Frame error | DOR0 Data OverRun | UPE0 Parity Error | U2X0 Double speed | MPCM0 Multi-processor Communication Mode
| B4 | Timer/Counter2 | OCR2B | Output Compare Register B
| B3 | OCR2A | Output Compare Register A
| B2 | TCNT2 | Counter
| AF |
| 8C
| 8B | Timer/Counter1 | OCR1BH | Output Compare Register B
| 8A | OCR1BL
| 89 | OCR1AH | Output Compare Register A
| 88 | OCR1AL
| 87 | ICR1H | Input Capture
| 86 | ICR1L
| 85 | TCNT1H | Counter
| 84 | TCNT1L
| 83 |
| 82 | | TCCR1C | FOC1A | FOC1B | - | -
| - | - | - | -
| 81 | | TCCR1B | ICNC1 | ICES1 | - | WGM13
| WGM12 | CS12 | CS11 | CS10
| 80 | | TCCR1A | COM1A1 | COM1A1 | COM1B1 | COM1B1
| - | - | WGM11 | WGM10
| 64 | Power Reduction | PRR
| PRTWI | PRTIM2 | PRTIM0 |
| PRTIM1 | PRSPI
| PRUSART0 | PRADC
| 60 | WatchDog control | WDTCSR
| WDIF | WDIE | WDP3 | prescaler
| WDCE | change WDE | sysResEna WDP2 | prescaler WDP0 | prescaler 35 55 | Reset source | MCUSR
|
| WDRF | WatchDog BORF | BrownOut EXTRF | PORF | PowerOn
| 2E 4E | SPI data | SPDR
| 7 | 0
| 2D 4D | SPI status | SPSR
| SPIF | int flag WCOL | |
| | | | SPI2X
| 2C 4C | SPI Control | SPCR
| SPIE | interrupt enabled SPE | module enable DORD | order MSTR | CPOL | CPHA | SPR1 | SPR0
| 2B 4B | | GPIOR2 | Gen Purpose I/O register 2
| 2A 4A | | GPIOR1 | Gen Purpose I/O register 1
|
|
| 28 48 | | OCR0B | Used by arduino lib | delay(ms) Timer/Counter0 Output Compare Register B 27 47 | | OCR0A | Timer/Counter0 Output Compare Register A
| 26 46 | | OCR0A | Timer/Counter0 (8-bit)
| 25 45 | | TCCR0B | FOC0A | FOC0B | - | -
| WGM02 | CS02 | CS00 | CS00
| 24 44 | | TCCR0A | COM0A1 | COM0A0 | COM0B1 | COM0B0
| - | - | WGM01 | WGM00
| 23 43 | | GTCCR | TSM | - | - | -
| - | - | PSRASY | PSRSYNC
| | | | TSM=1 halt Timer/Counters | TSM=0 start |
| Reset Timer/Counter prescalers
|
| 1E 3E | | GPIOR0 | Gen Purpose I/O register 0
| 1F | R31 | ZH |
| 1E | R30 | ZL
| 1D | R29 | YH |
| 1C | R28 | YL
| 1B | R27 | XH |
| 1A | R26 | XL
| 19 |
| 18 |
| 17 37 | Timer | interrupt controls TIFR2 | - | - | - | -
| - | OCF2B | OCF2A | TOV2
| 16 36 | TIFR1 | - | - | ICF1 | -
| - | OCF1B | OCF1A | TOV1
| 15 35 | TIFR0 | - | - | - | -
| - | OCF0B | OCF0A | TOV0
|
| ATmega | Section 13 reading | i = PINB Set using SBI or
| DDRD = DDRD | B11111100;
toggle pins | SBI PINxn I think
0B 25 | Port D PORTD | PORTD7 | PORTD6 | PORTD5 | PORTD4 | PORTD3 | PORTD2 | PORTD1 | PORTD0
| 0A 24 | DDRD | direction DDRD7 | DDRD6 | DDRD5 | DDRD4 | DDRD3 | DDRD4 | DDRD3 | DDRD7
| 09 23 | PIND | PIND7 | PIND6 | PIND5 | PIND4 | PIND3 | PIND2 | PIND1 | PIND0
| 08 25 | Port C PORTC | na PORTC6 | PORTC5 | PORTC4 | PORTC3 | PORTC2 | PORTC1 | PORTC0
| 07 24 | DDRC | direction DDRC6 | DDRC5 | DDRC4 | DDRC3 | DDRC4 | DDRC3 | DDRC7
| 06 23 | PINC | PINC6 | PINC5 | PINC4 | PINC3 | PINC2 | PINC1 | PINC0
| 05 25 | Port B PORTB | PORTB7 | PORTB6 | PORTB5 | PORTB4 | PORTB3 | PORTB2 | PORTB1 | PORTB0
| 04 24 | DDRB | direction DDRB7 | DDRB6 | DDRB5 | DDRB4 | DDRB3 | DDRB4 | DDRB3 | DDRB7
| 03 23 | PINB | PINB7 | PINB6 | PINB5 | PINB4 | PINB3 | PINB2 | PINB1 | PINB0
| | no Port A
| |
27.7.14 0000 1000 Read Signature Bytes and Calibration byte 1. A: Load Command 0000 1000. 2. B: Load Address Low Byte, 0x00. 3. Set OE to 0, BS1 to 1. The Calibration byte can now be read at DATA. 4. Set OE to 1. 0000 0100 Read Fuse and Lock bits 27.7.5 EEPROM, the program data is latched into a page buffer. This allows one page of data to be programmed simultaneously.