Rainbow-electronics ATtiny10 Uživatelský manuál Strana 98

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 166
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 97
98
8127B–AVR–08/09
ATtiny4/5/9/10
14.3.2 Disabling
Provided that the NVM enable bit has been cleared, the TPI is automatically disabled if the
RESET
pin is released to inactive 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 106.
14.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 14-4. Serial frame format.
Symbols used in Figure 14-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)
14.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
14.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 14-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
Zobrazit stránku 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 165 166

Komentáře k této Příručce

Žádné komentáře