PM0018 STMICROELECTRONICS | Alldatasheet

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 10

Technical content

Datasheet sections

  • 1 Device specific information
  • 1.1 Flash technology types
  • 1.2 RC calibration value addresses
  • 1.3 Implemented ICC features
  • 1.4 System memory addresses
  • 2 Revision history

This quick reference manual is intended for users of ST7 Flash microcontrollers. It is a central source for all device-specific data related to Flash programming for the following documents: ■ Flash programming reference manual ■ ICC protocol reference manual The latest document revisions can be obtained on-line at http://www.st.com.

1 Device specific information

1.1 Flash technology types

as shown in Table 1: ST7 Flash microcontroller types.

  • XFlash (Extended): Flash memory based on a EEPROM technology
  • HDFlash (High Density): Flash memory based on Flash technology
  • CFlash (ST72Cxxx): Flash memory based on a EEPROM technology (see AN1179 for more details) For further information on XFlash and HDFlash, refer to the Flash programming reference manual.

Table 1. ST7 Flash microcontroller types

1.2 RC calibration value addresses

Table 2. List of RC calibration value addresses

Device specific information ST7 Flash Programming

1.3 Implemented ICC features

Table 3 defines the implemented ICC features and their main characteristics for each ST7 device. The data mentioned in this table is described in detail in the ICC protocol reference manual. Description of legends for Table 3 ICC monitor: Three different ICC monitors can be implemented: basic (for ST7 with HDFlash and small XFlash), medium (for ST7 ROM) and advanced (for ST7 XFlash with debug module). Refer to the ICC protocol reference manual for more details. ICC mode entry: Different methods exists for entering ICC mode. Refer to the ICC protocol reference manual for more details. IAP:IAP is not available on 4K HDFlash versions. ICD: ICD can be managed with or without a debug module, refer to the ICC protocol reference manual for more details DM: The Debug Module (DM) is an ST7 hardware peripheral able to manage instruction stepping, complex breakpoints and abort for ICD development tools. The ST72F325, ST7FSuperlite, ST7FLite2 and ST7FHUB Debug Modules do not feature the WP bit capability and the register protection when MTR=0. Refer to the ICC protocol reference manual for more details. Ext clock: If this number of pulses is generated, the ST7 does not take into account the option byte configuration stored in the Flash memory, and an external clock has to be provided. In this case, the microcontroller configuration corresponds to the factory default option byte values, see product datasheet for more details. Note that in this mode, reserved Flash locations (which may contain internal oscillator calibration data for example) are not write protected, and could be corrupted if you program the device using a wrong address. Caution: To know on which pin the external clock must be provided please refer to the section related to the ICC interface in the product datasheet. Appli clock: If this number of pulses is generated, the ST7 takes into account the option byte configuration (except the watchdog which is always software in this condition). In this case, be sure that the selected clock source is available in the application (see product datasheet for more details). Note that in this mode, reserved Flash locations are write protected, so this mode is safer than external clock mode.

ST7 Flash Programming Device specific information Table 3. Implemented ICC features in ST7 devices

applications

DM Ext. clock Appli clock ST7FLITE0/ST7FL0, ST7FLITES2/S5(1) basic X X X X Controlled ICCCLK (2) ICCDATA ST7FLITE2/1/ST7DALI advanced X X X X 1 ST7FLITE4M/3/1B, ST7FL3/1B advanced X X X X 1 38 (3) ST7FLITEUS(4), ST7LITEU0 advanced X X X X 1 38 (5) ST72F34x (6) advanced X X X X 1 ICCSEL (7) ST72F26x advanced X X X X 38 (8) ST7226x(9) medium X ST72F561/F361 basic X X X X ST7FHUB basic X X X X 1 38 (10) ST72F325/F321B basic X X X 1 ST72F321/F521 ST72F324BJ6/K6 basic X X X ST7232x/521(9) (incl. L and B versions) medium X ST72F32A ST72F324L ST72F324BJ2/J2 ST72F324BK4/K4 basic X X X Not supported ST72F60x/F62x/F63x/ F63Bx/ST7FSCR basic X X X Fixed 256.tCPU Not applicable ICCSEL 38 (10)ST72F651(1) basic X X X ST7260/61x/62x/63x/ 63Bx/65/ ST7SCR(9) medium X ST7FMC basic X X X X 1 Controlled VPP/ ICCSEL(7) ICCDATA 38(11) 1. For these devices, the ST7 has to enter external clock mode in order to be able to reprogram devices with hardware watchdog enabled. Refer to the External Clock/Application Clock ICC modes section of the ICC protocol reference manual for more details. 2. The pulse counter is reset when RESET is low and ICCCLK is high. 3. In 38-pulse ICC mode, the inter nal RC oscillator is forced as a clock source, regardless of the selection in the option byte.

Device specific information ST7 Flash Programming 4. In the ST7FLITEUS, an interrupt is generated in ICC mode due to ICCCLK on PA1, configured as pull-up interrupt by default. The workaround is to enable the interrupt mask before the IRET of the ICC monitor, when executing the GO command. 5. Contrary to the behavior described in “appli clock” legend, the ST7FLITEUS takes into account the option byte configuration including the hardware watchdog if it is enabled. Consequently, 35-pulse mode must be used if hardware watchdog is enabled. In addition, when ST7FLITEUS is used in 38-pulse mode, the internal 8 MHz RC is selected as clock source if option CKSEL[1:0]=00h, otherwise, if CKSEL is not 00h, AWU RC is selected as clock source. External clock can not be selected when using 38-pulse mode. Limitation: In ST7FLITEUS when programming the LVD option from OFF to ON in 38-pulse mode and if the AVD is OFF, a spurious reset is generated and ICC communication is lost. The workaround is either to use 35-pulse mode or to ensure that the programming tool generates a reset after programming the Option Byte. 6. There are 4 option bytes in this device: Option byte 0 and 1 starting at address E000h and Option byte 2 and 3 starting at C000h. Take care to program Option byte 0, 1, 2 and 3 in the same routine. Then the following steps must be followed to modify the option bytes: -Read the 4 bytes in the device -Modify as desired -Write the 4 bytes in the device 7. The pulse counter is reset when RESET and ICCSEL are both low. 8. If ICC mode is entered using this pulse sequence, the clo ck source option bits must not be modified during the ICC session. To modify the clock source option bits, use the “external clock” pulse sequence. 9. All ROM devices support the medium variant of the ICC monitor. Hence these devices can be read if the Read-out protection has not been enabled. However it must be noted that only the program memory of these devices can be read but not the option bytes. 10. For these devices, if this number of pulses is generated, the ST7 can be supplied by an external clock source or a resonator. In this case, legends on “ext clock” and “applil clock” are not relevant. 11. For these devices, if this number of pulses is generated, the ST7 will be supplied by its internal clock. No external clock is required in ICC mode.

1.4 System memory addresses

address is given in Table 4 below. Table 4. System memory addresses

  1. For more details, refer to the ICC protocol reference manual.

analog comparator with a threshold of 3.8V. Figure 1. Entering ICC mode with fixed t CPU window

  1. Hold the TM pin at high level.
  2. Reset the chip by applying a low level pulse on PA6
  3. Apply 38 pulses on the PA0 pin as shown in Figure 1.
  4. When the mode entry window is finished, the PA0 port acts as the ICCDATA function.

3.8 V Threshold

2 Revision history

Table 5. Document revision history 02-May-2005 1 Initial release. ST7LITEU0 added in Table 3. and Table 4. Added note 11 to Table 3. Changed orders of the notes. devices and Table 4: System memory addresses.