at89lp216-20xi ATMEL Corporation, at89lp216-20xi Datasheet - Page 67

no-image

at89lp216-20xi

Manufacturer Part Number
at89lp216-20xi
Description
At89lp216 8-bit Microcontroller With 2k Bytes Flash
Manufacturer
ATMEL Corporation
Datasheet
23.3
3621B–MICRO–11/07
Command Format
Figure 23-2. AT89LP216 Memory Organization
Programming commands consist of an opcode byte, two address bytes, and zero or more data
bytes. In addition, all command packets must start with a two-byte preamble of AAH and 55H.
The preamble increases the noise immunity of the programming interface by making it more dif-
ficult to issue unintentional commands.
a command sequence.
A sample command packet is shown in
frame. SS must be brought low before the first byte in a command is sent and brought back high
after the final byte in the command has been sent. The command is not complete until SS
returns high. Command bytes are issued serially on MOSI. Data output bytes are received seri-
ally on MISO. Packets of variable length are supported by returning SS high when the final
required byte has been transmitted. In some cases command bytes have a don’t care value.
Don’t care bytes in the middle of a packet must be transmitted. Don’t care bytes at the end of a
packet may be ignored.
Page oriented instructions always include a full 16-bit address. The higher order bits select the
page and the lower order bits select the byte within that page. The AT89LP216 allocates 5 bits
for byte address and 6 bits for page address. The page to be accessed is always fixed by the
page address as transmitted. The byte address specifies the starting address for the first data
byte. After each data byte has been transmitted, the byte address is incremented to point to the
next data byte. This allows a page command to linearly sweep the bytes within a page. If the
byte address is incremented past the last byte in the page, the byte address will roll over to the
first byte in the same page. While loading bytes into the page buffer, overwriting previously
loaded bytes will result in data corruption.
For a summary of available commands, see
Atmel Signature Array
User Signature Array
Code Memory
User Fuse Row
Figure 23-3 on page 68
Figure 23-4 on page
Table 23-2 on page
00
Page 63
Page 62
Page 0
Page 1
Page 0
Page 0
Page 1
Page 0
68. The SS pin defines the packet
shows a simplified flow chart of
69.
1F
07FF
0000
AT89LP216
67

Related parts for at89lp216-20xi