
Obsolete Product(s) - Obsolete Product(s)
Obsolete Product(s) - Obsolete Product(s)
ST7LITEUS2, ST7LITEUS5
Flash program memory
19/136
the I
2
C protocol routine. This routine enables the ST7 to receive bytes from the I
2
C
interface.
●
Download ICP driver code in RAM from the ICCDATA pin
●
Execute ICP driver code in RAM to program the FLASH memory
Depending on the ICP driver code downloaded in RAM, FLASH memory programming can
be fully customized (number of bytes to program, program locations, or selection of the
serial communication interface for downloading).
4.3.2
In application programming (IAP)
This mode uses an IAP driver program previously programmed in Sector 0 by the user (in
ICP mode).
This mode is fully controlled by user software. This allows it to be adapted to the user
application, (user-defined strategy for entering programming mode, choice of
communications protocol used to fetch the data to be stored etc).
IAP mode can be used to program any memory areas except Sector 0, which is write/erase
protected to allow recovery in case errors occur during the programming operation.
4.4 I
2
C interface
ICP needs a minimum of 4 and up to 6 pins to be connected to the programming tool. These
pins are:
●
RESET: device reset
●
V
SS
: device power supply ground
●
ICCCLK: I
2
C output serial clock pin
●
ICCDATA: I
2
C input serial data pin
●
CLKIN: main clock input for external source
●
V
DD
: application board power supply
Refer to
for a description of the I
2
C interface.
If the ICCCLK or ICCDATA pins are only used as outputs in the application, no signal
isolation is necessary. As soon as the programming tool is plugged to the board, even if an
I
2
C session is not in progress, the ICCCLK and ICCDATA pins are not available for the
application. If they are used as inputs by the application, isolation such as a serial resistor
has to be implemented in case another device forces the signal. Refer to the programming
tool documentation for recommended resistor values.
During the ICP session, the programming tool must control the RESET pin. This can lead to
conflicts between the programming tool and the application reset circuit if it drives more than
5 mA at high level (push pull output or pull-up resistor<1 k
Ω
). A schottky diode can be used
to isolate the application RESET circuit in this case. When using a classical RC network with
R>1 k
Ω
or a reset management IC with open drain output and pull-up resistor>1 k
Ω
, no
additional components are needed. In all cases the user must ensure that no external reset
is generated by the application during the I
2
C session.
The use of Pin 7 of the I
2
C connector depends on the programming tool architecture. This
pin must be connected when using most ST programming tools (it is used to monitor the
application power supply). Please refer to the programming tool manual.
Obsolete Product(s) - Obsolete Product(s)