AN1335
APPLICATION NOTE
Using the ST10F280
By André ROGER
1 - INTRODUCTION
ST10F280 is a new member of ST10 family. This device has been specifically designed for application
based on C167 an d that now requires signal processing: a timer has been added for signal sampling
(automatic triggering of ADC requests on a pre-defined time period).
This application note is showing how to design an application using ST10F280. The following aspects are
covered and detailed :
– Emulation,
– Porting from ST10F269,
– Peripheral configuration.
1/10April 2001
AN1335 - APPLICATION NOTE
TABLE CONTENTS PAGE
1 INTRODUCTION ........................................................................................................ 1
2 ST10F280 NEW FEATURES FULLY SUPPORTED BY EMULATOR S ................... 3
2.1 XPORT9...................................................................................................................... 3
2.2 XPORT10.................................................................................................................... 3
2.3 XTIMER....................................................................................................................... 3
2.4 XPWM ......................................................................................................................... 3
3 ST10F280 REGISTERS NOT SUPPOR TED BY THE EMULATO R ......................... 3
3.1 SOFTWARE ADVICE FOR NOT IMPLEMENTED REGISTERS................................ 3
3.2 PORT4 REGISTERS................................................................................................... 3
3.3 PORT5 REGISTERS................................................................................................... 4
3.4 POCON REGISTERS.................................................................................................. 4
3.5 XPERCON REGISTER............................................................................................... 4
3.6 EXISEL REGISTER..................................................................................................... 4
4 ST10F280 REGISTERS PARTLY SUPPORTED BY THE EMULATOR ................... 5
4.1 PICON REGISTER...................................................................................................... 5
4.2 WDTCON REGISTER................................................................................................ 5
5 ST10F280 PERIPHERALS NOT SUPPORTED BY THE EMULATORS .................. 5
5.1 ST10F280 FLAS H ....................................................................................................... 5
5.2 BOOSTRAP................................................................................................................. 5
6 DC/AC PARAMETER DIFFERENCES ............. ......... .......................... .......... ......... ... 6
7 PORTING AN APPLICATION FROM ST10F269 TO ST10F2 80 .............................. 6
7.1 DIFFERENCES IN PERIPHERAL SET....................................................................... 6
7.2 DIFFERENCES IN MEMORY MAPPING.................................................................... 6
7.2.1 Differences on the RAM ............................................................................................. 6
7.2.1.1 Differences in Flash..................................................................................................... 6
8 ST10F280 PERIPHERAL CONFIGURATION ........................................................... 6
8.1 XPORT9...................................................................................................................... 6
8.2 XPORT10.................................................................................................................... 6
8.2.1 ADC Software Driver Considerations ......................................................................... 7
8.3 XTIMER....................................................................................................................... 7
8.3.1 Manual Injection Convers ion Reque st ........................................................................ 7
8.3.2 Proposal of ADC Driver When Converting All Channels Regularly ............................ 7
8.3.3 Example ...................................................................................................................... 7
8.3.3.1 Software Configuration................................................................................................ 8
8.3.3.2 Hardware Configuration............................................................................................... 8
8.4 XPWM ......................................................................................................................... 8
8.4.1 Bit Addressability and Interrupt Requests .................................................................. 9
8.4.2 XPWM Software Advice Summary ............................................................................. 9
9 APPLICATION NOTE VERSION INFORMATION ..................................................... 9
9.1 REVISION OF 29TH OF APRIL 2001 ......................................................................... 9
2/10
AN1335 - APPLICAT ION NOTE
2 - ST10F280 NEW FEATURES FULLY SUPPORTED BY EMULATORS
This paragraph describes the features that are fully supported by the ST10F280 emulator.
2.1 - XPort9
XPort9 and its associated features can be fully supported by the emulators.
Note: XPort9 register9 is not addressable as a standard ST10 port register; care should be taken when
accessing the Xport9 registers. For simplicity, 2 registers have been added : one to set and
another one to clear specific pins.
2.2 - XPort10
Xport 10 and the associated 16 new ADC analog channel s can be fully supported by the emulator.
XP10DISDIS, is also fully supported (this is not the case for P5DIDIS; see Section 3.3 - Port5 Registers).
2.3 - XTimer
Xtimer, which allows to activate an external pin, which in the end can t ri gger an A DC conversion request
can also be fully suppor ted by the emulator.
2.4 - XPWM
XPWM, and its ass ociated features are fully suppor ted by the e mulators. Alltough those PWM channels
are identical to the one of other ST1 0 variants, users are advised to check the chapter des cribing F280
peripheral configuration.
3 - ST10F280 REGISTERS NOT SUPPORTED BY THE EMULATOR
This paragraph describes all the issues caused by ST10F280 registers that are not implem ented in the
emulator.
3.1 - Software Advice for not Implemented Registers
When a ST10F280 register is not implemented in the bond-out :
– Avoid unnecessary read and c heck of the value in this register,
– If read accesses in user mode are necessary, use the CPU IDCHIP register to detect which CPU is run-
ning the code. Then, allow the check on this register only for the ST10F280. If running from the
bond-out, use a pre-defined, but non initialised, memory variab le to set which configuration you want
during emulation.
3.2 - Port4 Registers
Description
ST10F280 register OD P4 is not implemen ted on the ST1 0 bond-out. T his register allows setting t he pin
that handles CAN-TX alternate functions in push-pull or in open-drain.
Software Impact
Application software only shall write to this register.
Hardware Impact
No hardware impact if ST advices are implemented by the emulator party (check with your emulator
supplier).
ST10F280 Emulation Impact
No impact if ST advi ces are implemented and if t he content of the register is fixed at initialisation (ie :
never changed during run time) and if the emulator is properly configured.
3/10