![](http://datasheet.mmic.net.cn/120000/ST7FLITEUS5U6_datasheet_3576998/ST7FLITEUS5U6_95.png)
ST7LITEUSx
95/108
14 DEVICE CONFIGURATION AND ORDERING INFORMATION
Each device is available for production in user pro-
grammable versions (FLASH) as well as in factory
coded versions (FASTROM).
ST7PLITEUS2 and ST7PLITEUS5 devices are
Factory Advanced Service Technique ROM (FAS-
TROM) versions: they are factory-programmed
XFlash devices.
ST7FLITEUS2 and ST7FLITEUS5 XFlash devices
are shipped to customers with a default program
memory content (FFh).
The FASTROM factory coded parts contain the
code supplied by the customer. This implies that
FLASH devices have to be configured by the cus-
tomer using the Option Bytes while the FASTROM
devices are factory-configured.
14.1 OPTION BYTES
The two option bytes allow the hardware configu-
ration of the microcontroller to be selected.
The option bytes can be accessed only in pro-
gramming mode (for example using a standard
ST7 programming tool).
OPTION BYTE 1
Bit 7:6 = CKSEL[1:0] Start-up clock selection.
This bit is used to select the startup frequency. By
default, the Internal RC is selected.
Bit 5 = Reserved, must always be 1.
Bit 4 = Reserved, must always be 0.
Bits 3:2 = LVD[1:0] Low Voltage Detection selec-
tion
These option bits enable the LVD block with a se-
Table 23. LVD Threshold Configuration
Bit 1 = WDG SW Hardware or software watchdog
This option bit selects the watchdog type.
0: Hardware (watchdog always enabled)
1: Software (watchdog to be enabled by software)
Bit 0 = WDG HALT Watchdog Reset on Halt
This option bit determines if a RESET is generated
when entering HALT mode while the Watchdog is
active.
0: No Reset generation when entering Halt mode
1: Reset generation when entering Halt mode
OPTION BYTE 0
Bits 7:4 = Reserved, must always be 1.
Bit 3 = Reserved, must always be 0.
Bit 2 = SEC0 Sector 0 size definition
This option bit indicates the size of sector 0 ac-
cording to the following table.
Bit 1 = FMP_R Read-out protection
Readout protection, when selected provides a pro-
tection against program memory content extrac-
tion and against write access to Flash memory.
Erasing the option bytes when the FMP_R option
is selected will cause the whole memory to be
erased first, and the device can be reprogrammed.
ming Reference Manual for more details.
0: Read-out protection off
1: Read-out protection on
Bit 0 = FMP_W FLASH write protection
This option indicates if the FLASH program mem-
ory is write protected.
Warning: When this option is selected, the pro-
gram memory (and the option bit itself) can never
be erased or programmed again.
0: Write protection off
1: Write protection on
Configuration
CKSEL1 CKSEL0
Internal RC as Startup Clock
0
AWU RC as a Startup Clock
0
1
Reserved
1
0
External Clock on pin PA5
1
Configuration
LVD1 LVD0
LVD Off
1
Highest Voltage Threshold
1
0
Medium Voltage Threshold
0
1
Lowest Voltage Threshold
0
Sector 0 Size
SEC0
0.5k
0
1k
1