
110
8126F–AVR–05/12
ATtiny13A
The minimum period for the Serial Clock Input (SCI) during High-voltage Serial Programming is
220 ns.
17.7.1
High-Voltage Serial Programming Algorithm
To program and verify the ATtiny13A in the High-voltage Serial Programming mode, the follow-
ing sequence is recommended (See instruction formats in
The following algorithm puts the device in High-voltage Serial Programming mode:
1.
Set Prog_enable pins listed in
to “000”, RESET pin to “0” and Vcc to 0V.
2.
Apply 4.5 - 5.5V between VCC and GND. Ensure that Vcc reaches at least 1.8V within
the next 20 µs.
3.
Wait 20 - 60 µs, and apply 11.5 - 12.5V to RESET.
4.
Keep the Prog_enable pins unchanged for at least 10µs after the High-voltage has
been applied to ensure the Prog_enable Signature has been latched.
5.
Release the Prog_enable[2] pin to avoid drive contention on the Prog_enable[2]/SDO
pin.
6.
Wait at least 300µs before giving any serial instructions on SDI/SII.
7.
Exit Programming mode by power the device down or by bringing RESET pin to 0V.
If the rise time of the Vcc is unable to fulfill the requirements listed above, the following alterna-
tive algorithm can be used.
1.
Set Prog_enable pins listed in
to “000”, RESET pin to “0” and Vcc to 0V.
2.
Apply 4.5 - 5.5V between VCC and GND.
3.
Monitor Vcc, and as soon as Vcc reaches 0.9 - 1.1V, apply 11.5 - 12.5V to RESET.
4.
Keep the Prog_enable pins unchanged for at least 10µs after theHigh-voltage has been
applied to ensure the Prog_enable Signature has been latched.
5.
Release the Prog_enable[2] pin to avoid drive contention on the Prog_enable[2]/SDO
pin.
Table 17-10.
Pin Name Mapping
Signal Name in High-voltage
Serial Programming Mode
Pin Name
I/O
Function
SDI
PB0
I
Serial Data Input
SII
PB1
I
Serial Instruction Input
SDO
PB2
O
Serial Data Output
SCI
PB3
I
Serial Clock Input (min. 220ns period)
Table 17-11.
Pin Values Used to Enter Programming Mode
Pin
Symbol
Value
SDI
Prog_enable[0]
0
SII
Prog_enable[1]
0
SDO
Prog_enable[2]
0