Porting an application from the ST10F269 to the ST10F272B/E
Introduction
The ST10F272B and ST10F272E are members of the STMicroelectronics ST10 family of
16-bit single-chip CMOS microcontrollers. They are functionally upward compatible with the
ST10F269.
The ST10F272B and the ST10F272E devices differ only in terms of XRAM memory size
and XPeripherals. In this application note, the ST10F272B and ST10F272E will be referred
to as ST10F272 for all aspects that are applicable to both products. For points specific to
each product, the full name with the B or E extension will be used.
The goal of this document is to highlight the differences between ST10F269 and ST10F272
devices. It is intended for hardware or software designers who are adapting an existing
application based on the ST10F269 to the ST10F272.
This document presents the ST10F272’s modified functionalities and the new ones, and
goes on to describe the modified and the new registers. For each part, the differences with
the ST10F269 that may have an impact when replacing the ST10F269 by the ST10F272 are
stressed and some advice is given on the way they can be handled.
Ta bl e 1 summarizes the modifications made to the pinout.
Table 1.Pinout modifications
Pin
number
17DC2
56DC1
99EA
143V
144V
ST10F269ST10F272
NameFunctionNameFunction
Internal voltage regulator decoupling.
SS
DD
Connect to nearest V
capacitor.
Internal voltage regulator decoupling.
Connect to nearest VSS via a 330nF
capacitor.
Selects code execution out of internal
Flash memory or external memory
according to level during reset.
Ground pinXTAL3
5V power supply pinXTAL4
via a 330nF
SS
V
V
EA-V
DD
18
STBY
5V power supply pin
Internal voltage regulator decoupling.
Connect to nearest V
10 - 100nF capacitor.
Selects code execution out of internal
Flash memory or external memory
according to level during reset. Power
supply input for the standby mode.
Input to the 32 kHz oscillator amplifier
circuit. When not used, must be tied to
ground to avoid consumption.
Additionally, bit OFF32 in RTCCON
register must be set.
Output of the 32 kHz oscillator
amplifier circuit. When not used, must
be left open to avoid spurious
consumption.
SS
via a
1.1.2 Pin 17
On the ST10F269, a decoupling capacitor of 330nF minimum has to be connected between
the pin 17 (named DC2) and the nearest V
This is no longer the case for the ST10F272 device where pin 17 is a V
Hardware impact
PCB must be adapted.
Software impact
None.
pin.
SS
pin.
DD
7/39
Modified featuresAN2021
1.1.3 Pin 56
On the ST10F269, a decoupling capacitor of 330nF minimum has to be connected between
the pin 56 (named DC1) and the nearest V
On the ST10F272, pin 56 is named V
18
and 100nF maximum must be connected between it and the nearest V
pin.
SS
and a capacitor of value between 10nF minimum
pin.
SS
Hardware impact
Change on the capacitor value. As the value is much lower, the footprint of the capacitor
might be smaller and then a modification of the PCB is needed.
Software impact
None.
1.1.4 Pin 99
On the ST10F269, pin 99 is EA and used upon reset to select the start from the internal
Flash memory or the external memory.
On the ST10F272, pin 99 has the additional function of providing the 5V power supply to the
device in standby mode (new power-saving mode), it is called E
A-V
STBY
.
Hardware impact
The modification depends on the previous use of the ST10F269 and on whether the
Standby mode is used or not.
For an application where the Standby mode is not used, no change to the PCB is required. If
the new application uses the Standby mode, the EA
common 5V and have a specific supply path.
Software impact
None.
1.1.5 Pins 143 and 144
These pins are VSS and VDD, respectively, in the ST10F269. On the ST10F272 they are
used as XTAL3 and XTAL4 for connection to an optional 32 kHz crystal to clock the Real
Time Clock during power-down.
Hardware impact
PCB must be redesigned.
If the optional 32 kHz is not used:
●Pin 143 (XTAL3) must be linked to ground like on the ST10F269
●Pin 144 (XTAL4) must be left open. It can also be connected to ground via a capacitor
to reduce the potential RF noise that might be propagated inside the device if the pin is
left floating.
-V
pin must be separated from the
STBY
8/39
AN2021Modified features
Software impact
In case the optional 32 kHz is not used, the OFF32 bit of the RTCCON register must be set.
Prior to setting the OFF32 bit in the RTCCON register, the RTC must be enabled by setting
RTCEN, bit 4 of XPERCON, and XPEN, bit 2 of SYSCON.
1.2 XRAM
The ST10F272B and ST10F272E devices do not have the same size of XRAM. Each
configuration is detailed hereafter.
1.2.1 ST10F272B’s XRAM
The ST10F269 and the ST10F272B have the same size of extension XRAM: 10 Kbytes.
The XRAM of the ST10F269 is divided into two ranges being XRAM1 of 2 Kbytes and
XRAM2 of 8 Kbytes:
●The XRAM1 address range is 00’E000h - 00’E7FFh if enabled (XPEN and XRAM1EN,
bit 2 of SYSCON register and of XPERCON register, respectively, must both be set).
●The XRAM2 address range is 00’C000h - 00’DFFFh if enabled (XPEN and XRAM2EN,
bit 2 of SYSCON register and bit 3 of XPERCON register, respectively, must both be
set).
The XRAM of the ST10F272 is divided into two ranges, XRAM1 of 2 Kbytes (compatible with
the ST10F269) and XRAM2 of 8 Kbytes with a user re-programmable address range and
the StandBy mode.
●The XRAM1 address range is 00’E000h - 00’E7FFh if enabled (XPEN and XRAM1EN,
bit 2 of SYSCON register and bit 2 of XPERCON register must both be set).
●The XRAM2 address range is 09’0000h - 09’1FFFh, by default (mirrored every
16 Kbytes in the range 09’0000h -0F’FFFFh), if enabled (XPEN and XRAM2EN, bit 2 of
SYSCON register and bit 3 of XPERCON register, must both be set).
Hardware impact
None.
Software impact
There is no change in the enabling of the XRAM blocks: XPERCON register bits, XRAM1EN
and XRAM2EN, and SYSCON register bit, XPEN, are used to enable them.
The memory mapping of the application is impacted by the difference in XRAM2 location. A
new register has been created in order to allow the user to remap XRAM2 (please refer to
Section 4.1: XADRS3 register on page 28 for details).
9/39
Modified featuresAN2021
1.2.2 ST10F272E’s XRAM
The ST10F269 has 10 Kbytes of extension RAM whereas the ST10F272E has 18 Kbytes.
The XRAM of the ST10F269 is divided into two ranges being XRAM1 of 2 Kbytes and
XRAM2 of 8 Kbytes:
●The XRAM1 address range is 00’E000h - 00’E7FFh if enabled.
●The XRAM2 address range is 00’C000h - 00’DFFFh if enabled.
The XRAM of the ST10F272E is divided into two ranges being XRAM1 of 2 Kbytes
(compatible with the ST10F269) and XRAM2 of 16 Kbytes with a user reprogrammable
address range:
●The XRAM1 address range is 00’E000h - 00’E7FFh if enabled (XPEN and XRAM1EN,
bit 2 of SYSCON register and bit 2 of XPERCON register, respectively, must be set).
●The XRAM2 address range is 09’0000h - 09’3FFFh, by default (mirrored every
16 Kbytes in the range 09’0000h -0F’FFFFh), if enabled (XPEN and XRAM2EN, bit 2 of
SYSCON register and bit 3 of XPERCON register, respectively, must be set).
Hardware impact
None.
Software impact
There is no change in the enabling of the XRAM blocks: XPERCON register bits, XRAM1EN
and XRAM2EN, and SYSCON register bit, XPEN, are used to enable them.
The memory mapping of the application is impacted by the difference in XRAM size and by
the location of XRAM2. A new register has been created in order to allow the user to remap
the XRAM2 (please refer to Section 4.1: XADRS3 register on page 28 for details).
As the first 32 Kbytes of Flash memory are now divided into four sectors of 8 Kbytes each in
the ST10F272 whereas the ST10F269 had only three sectors, the mapping of the
application is impacted.
Moreover, the Flash memory Write/Erase controller is different and therefore the
programming routines must be updated.
When the bit ROMEN of the SYSCON register is set, that is, when the internal Flash
memory is enabled, accesses to the address range 05’0000h - 07’FFFFh are not redirected
to external memory. The linker-locator configuration of the toolchain should be checked in
order to prevent any use of this memory range.
11/39
Modified featuresAN2021
1.4 A/D converter
In the ST10F272, the analog/digital converter has been redesigned (compared to the A/D
converter in the ST10F269). The ST10F272 still provides an analog/digital converter with
10-bit resolution and an on-chip sample and hold circuit.
1.4.1 Hardware / Software impact: conversion timing control
The A/D converter in the ST10F272 is not fully compatible with that of the ST10F269 (timing
and programming model).
In the ST10F269, the sample time (to charge the capacitors) and the conversion time are
programmable and can be adjusted to the external circuitry. The total conversion time is
compatible with the formula used for ST10F269, whereas the meanings of the ADCTC and
ADSTC bit fields are no longer compatible.
Table 4.ST10F272 conversion timing table
ADCTCADSTCSampleComparisonExtraTotal conversion
0000TCL * 120TCL * 240TCL * 28TCL * 388
0001TCL * 140TCL * 280TCL * 16TCL * 436
0010TCL * 200TCL * 280TCL * 52TCL * 532
0011TCL * 400TCL * 280TCL * 44TCL * 724
1100TCL * 240TCL * 120TCL * 52TCL * 772
1101TCL * 280TCL * 560TCL * 28TCL * 868
1110TCL * 400TCL * 560TCL * 100TCL * 1060
1111TCL * 800TCL * 560TCL * 52TCL * 1444
1000TCL * 480TCL * 960TCL * 100TCL * 1540
1001TCL * 560TCL * 1120TCL * 52TCL * 1732
1010TCL * 800TCL * 1120TCL * 196TCL * 2116
1011TCL * 1600TCL * 1120TCL * 164TCL * 2884
The user should take care of the Sample time parameter: This is the time during which the
capacitances of the converter are chargedvia the respective analog input pins. Ta bl e 5
shows the differences in sample time.
12/39
Loading...
+ 27 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.