Microcontroll ers for emb edd ed app licat ions tend to int egra te mo re a nd mo re p eriphe ral s as
well as larger memories. Providing the right products with the right features such as Flash, emulated EEPROM and a wide range of peripherals at the right cost is always a challenge. That
is why it is mandatory to shrink the microcontroll er die size regularly as soon as the technology
will allow it. This major step applies to the ST92F120.
The purpose of this document is to present the differences between the ST92F120 microcontroller in 0.50 micron technology versus the ST92F124/F150/F250 in 0.35 micron technology.
It provides some guidelines for upgrading applications for both its software and hardware aspects.
In the first part of this document, the differences between the ST92F120 and ST92F124/F150/
F250 devices are listed. In the second part, the modifications required for the application hardware and software are described.
AN977/02031/17
1
GUIDELINES FOR UPGRADING FRO M THE ST92F120 (0.50 µm) TO TH E ST92F124...
1 UPGRADING FROM THE ST92F120 TO THE ST92F124/F150/F 250
ST92F124/F150/F250 microcontrollers using 0.35 micron technology are similar to ST92F120
microcon trollers using 0.50 mi cron tec hnolo gy, but s hrinki ng is used to add s ome ne w features and to improve th e p erforma nce s of ST 92F1 24/F15 0/F 250 d evic es. A lm ost a ll p eripherals keep the same features, which is why this document focuses only on the modified sections. If there is no difference between the 0.50 micron peripheral compared to the 0.35 one,
other than its technology and design methodology, the peripheral is not presented. The new
analog to digital converter (ADC) is the m ajor change. This ADC uses a single 16 channel A/
D converter with 10 bits resolution instead of two 8-channel A/D converters with 8-bit resolution. The new memory organization, ne w rese t and clock control unit, internal voltage regulators and new I/O buffers will almost be transparent changes for the application. The new peripherals are the Controller Area Network (CAN) and the asynchronous Serial Communication
Interface (SCI-A).
1.1 PINOUT
The ST92F124/F150/F250 was designed in order to be able to replace the ST92F120. Thus,
pinouts are nearly the same. The few differences are described below:
– Clock2 was remapped from port P9.6 to P4.1
– Analog input channels were remapped according to the table below.
Unless otherwise stated, typical data are based on TA= 25°C and VDD= 5V. They are only reported
for design guide lines not tested in production.
1.4 MEMORY ORGANIZATION
1.4.1 External memory
On the ST92F120, only 16 bits were externally available. Now, on the ST92F124/F150/F250
device, the 22 b its o f th e MM U are exter nally avai lable. This o rgani zation is used to mak e it
3/17
GUIDELINES FOR UPGRADING FRO M THE ST92F120 (0.50 µm) TO TH E ST92F124...
easier to address up to 4 external Mbytes. But segments 0h to 3h and 20h to 23h are not externally available.
1.4.2 Flash Sector Organization
Sectors F 0 to F3 ha ve a ne w organi zatio n in the 12 8K and 60K Fl ash dev ices as s hown in
Table 5 and Table 6. Table 3. and Table 4 show the previous organization.
Table 3. Memory Structure for 128K Fla sh ST92F120 Flash Device
SectorAddressesMax Size
TestFlash (TF) (Reserved)230000h to 231F7Fh8064 bytes
OTP Area
Protection Registers (reserved)
Flash 0 (F0)000000h to 00FFFFh64 Kbytes
Flash 1 (F1)010000h to 01BFFFh48 Kbytes
Flash 2 (F2)01C000h to 01DFFFh8 Kbytes
Flash 3 (F3)01E000h to 01FFFFh8 Kbytes
EEPROM 0 (E0)228000h to 228FFFh4 Kbytes
EEPROM 1 (E1)22C000h to 22CFFFh4 Kbytes
Emulated EEPROM220000h to 2203FFh1 Kbyte
231F80h to 231FFBh
231FFCh to 231FFFh
124 bytes
4 bytes
Table 4. Memory Structure for 60K Flas h ST92F120 Flash Device
SectorAddressesMax Size
TestFlash (TF) (Reserved)230000h to 231F7Fh8064 bytes
OTP Area
Protection Registers (reserved)
Flash 0 (F0)000000h to 000FFFh4 Kbytes
Reserved001000h to 00FFFFh60 Kbytes
Flash 1 (F1)010000h to 01BFFFh48 Kbytes
Flash 2 (F2)01C000h to 01DFFFh8 Kbytes
EEPROM 0 (E0)228000h to 228FFFh4 Kbytes
EEPROM 1 (E1)22C000h to 22CFFFh4 Kbytes
Emulated EEPROM220000h to 2203FFh1Kbyte
231F80h to 231FFBh
231FFCh to 231FFFh
Table 5. Memory Structure for 128K ST 92F124/F150/F250 Flash device
SectorAddressesMax Size
TestFlash (TF) (Reserved)230000h to 231F7Fh8064 bytes
OTP Area
Protection Registers (reserved)
Flash 0 (F0)000000h to 001FFFh8 Kbytes
Flash 1 (F1)002000h to 003FFFh8 Kbytes
Flash 2 (F2)004000h to 00FFFFh48 Kbytes
Flash 3 (F3)010000h to 01FFFFh64 Kbytes
231F80h to 231FFBh
231FFCh to 231FFFh
124 bytes
4 bytes
124 bytes
4 bytes
4/17
GUIDELINES FOR UPGRADING FROM THE ST92F120 (0.50 µm) TO THE ST92F124...
SectorAddressesMax Size
Hardware Emulated EEPROM sec-
tors
(reserved)
Emulated EEPROM220000h to 2203FFh1 Kbyte
228000h to 22CFFFh8 Kbytes
Table 6. Memory Structure for 64K ST 92F124/F150/F250 Flash device
SectorAddressesMax Size
TestFlash (TF) (Reserved)230000h to 231F7Fh8064 bytes
OTP Area
Protection Registers (reserved)
Flash 0 (F0)000000h to 001FFFh8 Kbytes
Flash 1 (F1)002000h to 003FFFh8 Kbytes
Flash 2 (F2)004000h to 00BFFFh32 Kbytes
Flash 3 (F3)010000h to 013FFFh16 Kbytes
Hardware Emulated EEPROM sec-
tors
(reserved)
Emulated EEPROM220000h to 2203FFh1 Kbyte
231F80h to 231FFBh
231FFCh to 231FFFh
228000h to 22CFFFh8 Kbytes
124 bytes
4 bytes
Since the user reset vector location is set at address 0x000000, the application can use sector
F0 as an 8-Kbyte user bootloader area, or sectors F0 and F1 as a 16-Kbyte area.
1.4.3 Flash & E
In order to save a data po inter register (DPR), the Flash and E
control registers are remapped from page 0x89 to page 0x88 where the E
cated. Thi s way, only one DPR is us ed to poi nt to both the E
2
E
PROM control registers. But the registers are still accessible at the previous address. The
In the application, these register locations are usually defined in the linker script file.
5/17
GUIDELINES FOR UPGRADING FRO M THE ST92F120 (0.50 µm) TO TH E ST92F124...
Fi
ST92F120 I
ill
Fi
ST92F124/F150/F250 I
ill
1.5 RESET AND CLOC K CONTROL UNIT (RCCU)
1.5.1 Oscillator
A new low power oscillator is implemented with the following target specifications:
– Max. 200 µamp. consumption in Running mode,
– 0 amp. in Halt mode,
gure 1.
OSCOUT
OSCIN
nternal Osc
ator
HALT
CLOCK
BUFFER
REF
INPUT
gure 2.
R
POL
OSCIN
I
LOAD
nternal Osc
V
DD
ator
CLOCK1
VR02086A
OSCOUT
1.5.2 PLL
One bit (bit7 FREEN) has been added to the PLLCONF register (R246, page 55), this is to enable Fre e Runn ing mode . The r eset value for th is re gister is 0x0 7. Wh en th e FREE N b it is
reset, it has the same behaviour as in the ST92F120, meaning that the PLL is turned off when:
– entering stop mode,
– DX(2:0) = 111 in the PLLCONF register,
– entering low power modes (Wait For Interrupt or Low Power Wait for Interrupt) foll owing the
WFI instruction.
When the FREEN bit is set and any of the conditions listed above occur, the PLL enters Free
Running mode, and oscillates at a low frequency which is typically about 50 kHz.
In addition, when the PLL provides the internal clock, if the clock signal disappears (for instance du e to a bro ken or disc onnect ed res onat or...), a s afety c loc k sig nal is au tomat icall y
provided, allowing the ST9 to perform some rescue operations.
The frequency of this clock signal depends on the DX[0..2] bits of the PLLC ONF register
(R246, page55).
Refer to the ST92F124/F150/F250 datasheet for more details.
6/17
Loading...
+ 11 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.