beautypg.com

Serial programming pin mapping, Atmega169v/l – Rainbow Electronics Atmega169L User Manual

Page 270

background image

270

ATmega169V/L

2514A–AVR–08/02

Serial Programming Pin
Mapping

Table 124. Command Byte Bit Coding

Command Byte

Command Executed

1000 0000

Chip Erase

0100 0000

Write Fuse bits

0010 0000

Write Lock bits

0001 0000

Write Flash

0001 0001

Write EEPROM

0000 1000

Read Signature Bytes and Calibration byte

0000 0100

Read Fuse and Lock bits

0000 0010

Read Flash

0000 0011

Read EEPROM

Table 125. No. of Words in a Page and No. of Pages in the Flash

Flash Size

Page Size

PCWORD

No. of Pages

PCPAGE

PCMSB

8K words (16K bytes)

64 words

PC[5:0]

128

PC[12:6]

12

Table 126. No. of Words in a Page and No. of Pages in the EEPROM

EEPROM Size

Page Size

PCWORD

No. of Pages

PCPAGE

EEAMSB

512 bytes

4 bytes

EEA[1:0]

128

EEA[8:2]

8

Table 127. Pin Mapping Serial Programming

Symbol

Pins

I/O

Description

MOSI

PB2

I

Serial Data in

MISO

PB3

O

Serial Data out

SCK

PB1

I

Serial Clock