Datasheet

2018 Microchip Technology Inc. Data Sheet Complete DS40002060A-page 106
ATtiny4/5/9/10
15.3.2 Disabling
Provided that the NVM enable bit has been cleared, the TPI is automatically disabled if the RESET
pin is released to inac-
tive high state or, alternatively, if V
HV
is no longer applied to the RESET pin.
If the NVM enable bit is not cleared a power down is required to exit TPI programming mode.
See NVMEN bit in “TPISR – Tiny Programming Interface Status Register” on page 114.
15.3.3 Frame Format
The TPI physical layer supports a fixed frame format. A frame consists of one character, eight bits in length, and one start
bit, a parity bit and two stop bits. Data is transferred with the least significant bit first.
Figure 15-4. Serial frame format.
Symbols used in Figure 15-4:
ST: Start bit (always low)
D0-D7: Data bits (least significant bit sent first)
P: Parity bit (using even parity)
SP1: Stop bit 1 (always high)
SP2: Stop bit 2 (always high)
15.3.4 Parity Bit Calculation
The parity bit is always calculated using even parity. The value of the bit is calculated by doing an exclusive-or of all the
data bits, as follows:
P = D0
D1 D2 D3 D4 D5 D6 D7 0
where:
P: Parity bit using even parity
D0-D7: Data bits of the character
15.3.5 Supported Characters
The BREAK character is equal to a 12 bit long low level. It can be extended beyond a bit-length of 12.
Figure 15-5. Supported characters.
TPIDATA
TPICLK
SP1ST SP2 IDLE/STIDLE PD1D0 D7
IDLE/STIDLE
BREAK CHARACTER
DATA CHARACTER
SP1ST SP2 IDLE/STIDLE PD1D0 D7
TPIDATA
TPIDATA