•
Wait for the ACK character which signifies a successful write to the bus matrix
When used with the REPEAT, it is recommended to set up the address register with the start address for
the block to be written and use the Pointer Post Increment register to automatically increase the address
for each repeat cycle. When using REPEAT, the data frame of SizeD data bytes can be sent after each
received ACK.
29.3.3.5
LCDS
- Load Data from Control and Status Register Space
The LCDS instruction is used to load data from the UPDI and ASI CS-space. LCDS is based on direct
addressing, where the address is part of the instruction opcode. The total address space for LCDS is 16
bytes and can only access the internal UPDI register space. This instruction only supports byte access
and the data size is not configurable.
Figure 29-12. LCDS Instruction Operation
L DCS
The figure above shows a typical example of LCDS data transmission. A data byte from the LCDS space is
transmitted from the UPDI after the Guard Time is completed.
29.3.3.6 STCS (Store Data to Control and Status Register Space)
The STCS instruction is used to store data to the UPDI and ASI CS-space. STCS is based on direct
addressing, where the address is part of the instruction opcode. The total address space for STCS is 16
bytes, and can only access the internal UPDI register space. This instruction only supports byte access,
and data size is not configurable.
©
2018 Microchip Technology Inc.
OPCODE
CS Address
1
0
0
0
Unified Program and Debug Interface (UPDI)
CS Address (CS - Control/Status reg.)
0
0 0
0
0 0
0
0 1
0
0 1
0
1 0
1
1 1
Synch
LDCS
(0x55)
Data
Δgt
Datasheet Preliminary
®
megaAVR
0-Series
0
Reg 0
1
Reg 1
0
Reg 2
1
Reg 3
0
Reg 4 (ASI CS Space)
......
1
Reserved
Rx
Tx
DS40002015A-page 452
Need help?
Do you have a question about the megaAVR 0 Series and is the answer not in the manual?
Questions and answers