English
Language : 

ST10F276_06 Datasheet, PDF (54/229 Pages) STMicroelectronics – 16-bit MCU with MAC unit, 832 Kbyte Flash memory and 68 Kbyte RAM
Bootstrap loader
ST10F276
Figure 9. UART bootstrap loader sequence
RSTIN
P0L.4
RxD0
TxD0
1)
2)
4)
3)
5)
CSP:IP
6) Int. Boot ROM / Test-Flash BSL-routine
32 bytes
user software
1) BSL initialization time, > 1ms @ fCPU = 40 MHz.
2) Zero byte (1 start bit, eight ‘0’ data bits, 1 stop bit), sent by host.
3) Acknowledge byte, sent by ST10F276.
4) 32 bytes of code / data, sent by host.
5) Caution: TxD0 is only driven a certain time after reception of the zero byte (1.3ms @ fCPU = 40 MHz).
6) Internal Boot ROM / Test-Flash.
5.3.2
Entering bootstrap via UART
The ST10F276 enters BSL mode if pin P0L.4 is sampled low at the end of a hardware reset.
In this case, the built-in bootstrap loader is activated independently of the selected bus
mode. The bootstrap loader code is stored in a special Test-Flash; no part of the standard
mask ROM or Flash memory area is required for this.
After entering BSL mode and the respective initialization, the ST10F276 scans the RxD0
line to receive a zero byte, that is, 1 start bit, eight ‘0’ data bits and 1 stop bit. From the
duration of this zero byte, it calculates the corresponding baud rate factor with respect to the
current CPU clock, initializes the serial interface ASC0 accordingly and switches pin TxD0 to
output. Using this baud rate, an acknowledge byte is returned to the host that provides the
loaded data.
The acknowledge byte is D5h for the ST10F276.
54/229