F271-BAG5-T-TR STMicroelectronics, F271-BAG5-T-TR Datasheet
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
F271-BAG5-T-TR
Specifications of F271-BAG5-T-TR
Available stocks
Related parts for F271-BAG5-T-TR
F271-BAG5-T-TR Summary of contents
Page 1
... Real time clock and 32 kHz on-chip oscillator ■ 111 general purpose I/O lines – Individually programmable as input, output or special function – Programmable threshold (hysteresis) ■ Idle, power down and stand-by modes ■ Single voltage supply: 5V ±10% Rev 1 ST10F271B ST10F271E TQFP144 ( 1.4mm) (Thin Quad Flat Package) 1/180 www.st.com 1 ...
Page 2
... Flash data register 1 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Flash address register low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Flash address register high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Flash error register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Protection registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Flash non volatile write protection I register . . . . . . . . . . . . . . . . . . . . . 37 Flash non volatile access protection register Flash non volatile access protection register 1 low . . . . . . . . . . . . . . . . Flash non volatile access protection register 1 high 39 ST10F271B/ST10F271E ...
Page 3
... ST10F271B/ST10F271E 5.5.6 5.5.7 5.5.8 5.5.9 5.6 Write operation examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 5.7 Write operation summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 6 Bootstrap loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.1 Selection among user-code, standard or selective bootstrap . . . . . . . . . . 45 6.2 Standard bootstrap loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 6.3 Alternate and selective boot mode (ABM and SBM 6.3.1 6.3.2 6.3.3 7 Central processing unit (CPU ...
Page 4
... Synchronous reset (warm reset 20.4 Software reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 20.5 Watchdog timer reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 20.6 Bidirectional reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 20.7 Reset circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 20.8 Reset application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 20.9 Reset summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 21 Power reduction modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 21.1 Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 4/180 Open drain mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Input threshold control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 ST10F271B/ST10F271E ...
Page 5
... ST10F271B/ST10F271E 21.2 Power down mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 21.2.1 21.2.2 21.3 Stand-by mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 21.3.1 21.3.2 21.3.3 21.3.4 22 Programmable output clock divider . . . . . . . . . . . . . . . . . . . . . . . . . . 111 23 Register set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 23.1 Special function registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 23.2 XBus registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 23.3 Flash registers ordered by name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 23.4 Identification registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 24 Electrical characteristics ...
Page 6
... CLKOUT and READY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 24.8.19 External bus arbitration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 24.8.20 High-speed synchronous serial interface (SSC) timing . . . . . . . . . . . . 173 25 Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 26 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 27 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 6/180 Phase Locked Loop (PLL 149 Voltage Controlled Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 PLL Jitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 ST10F271B/ST10F271E ...
Page 7
... Flash non volatile access protection register 1 low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Table 22. Flash non volatile access protection register 1 high . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Table 23. XBus flash volatile temporary access unprotection register . . . . . . . . . . . . . . . . . . . . . . . 39 Table 24. Flash write operations Table 25. ST10F271 boot mode selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Table 26. Standard instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Table 27. MAC instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Table 28. Interrupt sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Table 29. ...
Page 8
... Table 79. CLKOUT and READY timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 Table 80. External bus arbitration timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Table 81. SSC master mode timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Table 82. SSC slave mode timings 174 Table 83. Order codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 Table 84. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 8/180 = 5V ± –40 to +125° 153 ST10F271B/ST10F271E ...
Page 9
... Anti-aliasing filter and conversion rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Figure 43. Input / output waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Figure 44. Float waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Figure 45. Generation mechanisms for the CPU clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Figure 46. ST10F271 PLL jitter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Figure 47. Crystal oscillator and resonator connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Figure 48. 32kHz crystal oscillator connection diagram 154 List of figures 9/180 ...
Page 10
... External bus arbitration (releasing the bus 171 Figure 60. External bus arbitration (regaining the bus 172 Figure 61. SSC master timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Figure 62. SSC slave timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Figure 63. PQFP144 mechanical data and package dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 Figure 64. TQFP144 mechanical data and package dimension . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 10/180 ST10F271B/ST10F271E ...
Page 11
... These two derivatives slightly differ on the available RAM size and Analog Channel Input number. These points will be highlighted in the corresponding chapters. For all information that is common to the 2 derivatives, the generic ST10F271 name will be used. The ST10F271 combines high CPU performance ( million instructions per second) with high peripheral functionality and enhanced I/O-capabilities ...
Page 12
... Introduction Figure 1. Logic symbol 12/180 XTAL1 XTAL2 XTAL3 XTAL4 RSTIN RSTOUT V AREF V AGND ST10F271 NMI STBY READY ALE WRL Port 5 16-bit ST10F271B/ST10F271E Port 0 16-bit Port 1 16-bit Port 2 16-bit Port 3 15-bit Port 4 8-bit Port 6 8-bit Port 7 8-bit Port 8 8-bit RPD ...
Page 13
... P7.1 / POUT1 P7.2 / POUT2 P7.3 / POUT3 P7.4 / CC28IO P7.5 / CC29IO P7.6 / CC30IO P7.7 / CC31IO P5.0 / AN0 P5.1 / AN1 P5.2 / AN2 P5.3 / AN3 P5.4 / AN4 P5.5 / AN5 P5.6 / AN6 P5.7 / AN7 P5.8 / AN8 P5.9 / AN9 *: AN16 to AN23 are only available for the ST10F271E ...
Page 14
... CAPCOM2: CC20 capture input / compare output P8.5 CC21IO CAPCOM2: CC21 capture input / compare output P8.6 CC22IO CAPCOM2: CC22 capture input / compare output RxD1 ASC1: Data input (Asynchronous) or I/O (Synchronous) P8.7 CC23IO CAPCOM2: CC23 capture input / compare output ASC1: Clock / Data output TxD1 (Asynchronous/Synchronous) ST10F271B/ST10F271E Function ...
Page 15
... ST10F271B/ST10F271E Table 1. Pin description (continued) Symbol Pin Type 19-26 I P7.0 - P7.7 ... ... I/O ... ... 26 I/O 27-36 I 39- P5 P5.10 - P5. 47-54 I/O 57-64 47 I/O ... ... P2.0 - P2.7 54 I/O P2.8 - P2.15 I ... ... I 8-bit bidirectional I/O port, bit-wise programmable for input or output via direction bit. Programming an I/O pin as input forces the corresponding output driver to high impedance state ...
Page 16
... ASC0: data input (asynchronous) or I/O (synchronous) BHE External memory high byte enable signal P3.12 WRH External memory high byte write strobe P3.13 SCLK0 SSC0: master clock output / slave clock input System clock output (programmable divider on CPU P3.15 CLKOUT clock) ST10F271B/ST10F271E Function ...
Page 17
... ST10F271B/ST10F271E Table 1. Pin description (continued) Symbol Pin Type 85-92 I P4.0 –P4 WR/WRL 96 O READY READY ALE 98 O Port 8-bit bidirectional I/O port bit-wise programmable for input or output via direction bit. Programming an I/O pin as input forces the corresponding output driver to high impedance state. The input threshold is selectable (TTL or CMOS) ...
Page 18
... External access enable pin. A low level applied to this pin during and after Reset forces the ST10F271 to start the program from the external memory space. A high level forces ST10F271 to start in the internal memory space. This pin is also used (when Stand-by mode is ...
Page 19
... NMI trap routine. If bit PWDCFG = ‘0’ in SYSCON register, when the PWRDN (power down) instruction is executed, the NMI pin must be low in order to force the ST10F271 to go into power down mode. If NMI is high and PWDCFG =’0’, when PWRDN is executed, the part will continue to run in normal mode ...
Page 20
... Digital supply voltage = + 5V during normal operation, idle and power down modes. It can be turned off when Stand-by RAM mode is selected. Digital ground 1.8V decoupling pin: a decoupling capacitor (typical value of 10nF, max 100nF) must be connected between this pin and nearest V ST10F271B/ST10F271E Function pin. SS ...
Page 21
... ST10F271B/ST10F271E 3 Functional description The architecture of the ST10F271 combines advantages of both RISC and CISC processors and an advanced peripheral subsystem. The block diagram gives an overview of the different on-chip components and the high bandwidth internal bus structure of the ST10F271. Figure 3. Block diagram XRAM 16 2K ...
Page 22
... B0F7 (1) Note: : The ST10F271 being based on the same silicon as the ST10F272, 256 KByte of Flash are implemented on the device. The blocks B0F6 and B0F7 are not physically disabled but MUST be considered as reserved by the application software. IRAM: 2K Bytes of on-chip internal RAM (dual-port) is provided as a storage for data, system stack, general purpose register banks and code. A register bank is 16 Wordwide (R0 to R15) and / or Bytewide (RL0, RH0, … ...
Page 23
... The XRAM1 (2K Bytes) address range is 00’E000h - 00’E7FFh if enabled. The XRAM2 (4K Bytes) address range is after reset 09’0000h - 09’1FFFh and is mirrored every 16KByte boundary. ST10F271E XRAM: 8K+2K Bytes of XRAM The XRAM1 (2K Bytes) address range is 00’E000h - 00’E7FFh if enabled. The XRAM2 (16K Bytes) address range is after reset 09’0000h - 09’3FFFh and is mirrored every 16KByte boundary ...
Page 24
... Bytes of external memory can be connected to the microcontroller. Visibility of XBUS peripherals In order to keep the ST10F271 compatible with the ST10F168 / ST10F269, the XBUS peripherals can be selected to be visible on the external address / data bus. Different bits for X-peripheral enabling in XPERCON register must be set. If these bits are cleared before the ...
Page 25
... ST10F271B/ST10F271E Figure 4. ST10F271 on-chip memory mapping (ROMEN=1 / XADRS = 800Bh - Reset value) Code Page Segment Segment FF FFFF 1023 11 FFFF 255 17 Ext. Memory 11 0000 10 FFFF 16 Ext. Memory 10 0000 0F FFFF XRAM2 XRAM2 15 XRAM2 XRAM2 0F 0000 0E FFFF XRAM2 XRAM2 14 XRAM2 XRAM2 0E 0000 XRAM2 0D FFFF XRAM2 ...
Page 26
... Registers and Flash internal reserved area Note: 1 The ST10F271 being based on the same silicon as the ST10F272, 256 KByte of Flash are implemented on the device. The range 03’0000h - 04’FFFFh is not physically disabled even if not available for use. Therefore this address range MUST be reserved by the application ...
Page 27
... ST10F271B/ST10F271E mapping. Accesses to this address range will send back the content of the Flash cell (by default FFFFh, blank value when the device is delivered) 2 Accesses to the area will send back the value 009Bh. 5.2.2 Modules structure The IFLASH module is composed by a bank (Bank 0) of 256 Kbyte of Program Memory divided in 8 sectors (B0F0 ...
Page 28
... DFB0 - 0x0008 DFB1 0x0008 DFB8 - 0x0008 DFB9 0x0008 DFBC - 0x0008 DFBF 0x0000 EB50 - 0x0000 EB51 2 byte ST10F271B/ST10F271E Bus Addresses Size size 8 byte 8 byte 4 byte 2 byte 2 byte 16-bit ...
Page 29
... ST10F271B/ST10F271E 5.3 Write operation The Flash module have one single register interface mapped in the memory space of the IBUS (0x08 0000 to 0x08 0015). All the operations are enabled through four 16-bit control registers: Flash Control Register 1-0 High/Low (FCR1H/L-FCR0H/L). Eight other 16-bit registers are used to store Flash Address and Data for Program operations (FARH/L and FDR1H/L-FDR0H/L) and Write Operation Error flags (FERH/L) ...
Page 30
... FCR0L and all the other Flash registers are accessible by the user as well. Note that FER content can be read when LOCK is low, but its content is updated only when also BSY0 bit is reset. 30/180 FCR reserved ST10F271B/ST10F271E Reset Value: 0000h res. res. LOCK R Function : ...
Page 31
... ST10F271B/ST10F271E 5.4.2 Flash control register 0 high The Flash Control Register 0 High (FCR0H) together with the Flash Control Register 0 Low (FCR0L) is used to enable and to monitor all the write operations on the IFLASH. The user has no access in write mode to the Test-Flash (B0TF). Besides, Test-Flash block is seen by the user in Bootstrap Mode only ...
Page 32
... B0Fy bit for Sector y of Bank 0 is given by the next Table 4 Banks (BxS) and Sectors (BxFy) Status bits meaning. These bits are automatically reset at the end of a Write operation if no errors are detected. 32/180 FCR reserved B0F7 B0F6 B0F5 B0F4 B0F3 B0F2 B0F1 B0F0 RS ST10F271B/ST10F271E Function Reset value Function ...
Page 33
... ST10F271B/ST10F271E 5.4.4 Flash control register 1 high The Flash Control Register 1 High (FCR1H), together with Flash Control Register 1 Low (FCR1L), is used to select the Sectors to Erase, or during any write operation to monitor the status of each Sector and Bank. FCR1H (0x08 0006 reserved Table 10. ...
Page 34
... These bits must be written with the Data to program the Flash with the following DIN(31:16) operations: Word Program (32-bit), Double Word Program (64-bit) and Set Protection. 34/180 FCR FCR FCR ST10F271B/ST10F271E Reset value Function Reset value Function Reset value Function FFFFh FFFFh 1 ...
Page 35
... ST10F271B/ST10F271E 5.4.9 Flash address register low FARL (0x08 0010 ADD15ADD14ADD13ADD12ADD11ADD10 ADD9 ADD8 ADD7 ADD6 ADD5 ADD4 ADD3 ADD2 Table 16. Flash address register low Bit Address 15:2 These bits must be written with the Address of the Flash location to program in the ADD(15:2) following operations: Word Program (32-bit) and Double Word Program (64-bit). In Double Word Program bit ADD2 must be written to ‘ ...
Page 36
... In case of multiple Sector Erase, the not protected sectors are erased, while the protected sectors are not erased and bit WPF is set. This bit has to be software reset. 36/180 FCR WPF RESER SEQER RC RC ST10F271B/ST10F271E Reset value reserved 10ER PGER ERER Function 0000h ...
Page 37
... ST10F271B/ST10F271E 5.5 Protection strategy The protection bits are stored in Non Volatile Flash cells inside IFLASH module, that are read once at reset and stored in 4 Volatile registers. Before they are read from the Non Volatile cells, all the available protections are forced active during reset. ...
Page 38
... Bit PDS0 can be programmed at 0 only if both bits DBGP and ACCP have already been programmed at 0. Bit PDSx can be programmed at 0 only if bit PENx-1 has already been programmed at 0. 38/180 NVR reserved NVR ST10F271B/ST10F271E Reset value: ACFFh Function Delivery value:: FFFFh Function 1 0 DBGP ACCP RW RW ...
Page 39
... ST10F271B/ST10F271E 5.5.5 Flash non volatile access protection register 1 high FNVAPR1H (0x08 DFBE PEN15PEN14PEN13PEN12PEN11PEN10 PEN9 PEN8 PEN7 PEN6 PEN5 PEN4 PEN3 PEN2 PEN1 PEN0 Table 22. Flash non volatile access protection register 1 high Bit Protections Enable 15-0 If bit PENx is programmed at 0 and bit PDSx+1 is erased at 1, the action of bit PEN15-0 ACCP is enabled again ...
Page 40
... TAUB in XFVTAUR0. 40/180 Read XRAMS or Read IFLASH / Ext Mem / Jump to Jump to IFLASH XRAM or Ext Mem Yes / Yes Yes / Yes No / Yes Yes / Yes No / Yes Yes / Yes No / Yes Yes / Yes ST10F271B/ST10F271E Read FLASH Write FLASH Registers Registers Yes No Yes No Yes No Yes No Section 5.5.9 ). ...
Page 41
... ST10F271B/ST10F271E 5.6 Write operation examples In the following, examples for each kind of Flash write operation are presented. Note: The write operation commands must be executed from another memory (internal RAM or external memory ST10F269 device. In fact, due to IBus characteristics not possible to perform write operation in Flash while fetching code from Flash. ...
Page 42
... SUSP in FCR0H*/ /*Set SER in FCR0H*/ /*Operation resume*/ /*Set SER in FCR0H*/ /*Set B0F1*/ /*Operation start*/ /*Set SUSP in FCR0H*/ /*Loop to wait for LOCK=0 and WMS=0*/ /*Rst SUSP in FCR0H*/ /*Load Add in FARL*/ /*Load Add in FARH*/ /*Load Data in FDR0L*/ /*Load Data in FDR0H*/ /*Operation start*/ ST10F271B/ST10F271E ...
Page 43
... ST10F271B/ST10F271E A Sector Erase can be suspended by setting SUSP bit. ● To perform a Word Program operation during Erase Suspend, firstly bits SUSP and SER must be reset, then bit WPG and WMS can be set. ● To resume the Sector Erase operation bit SER must be set again. ...
Page 44
... Operation Word Program (32-bit) Double Word Program (64-bit) Sector Erase Set Protection Program/Erase Suspend 44/180 . Select bit Address and data FARL/FARH WPG FDR0L/FDR0H FARL/FARH DWPG FDR0L/FDR0H FDR1L/FDR1H SER FCR1L/FCR1H SPR FDR0L/FDR0H SUSP None ST10F271B/ST10F271E Start bit WMS WMS WMS WMS None ...
Page 45
... Standard bootstrap loader After entering the standard BSL mode and the respective initialization, the ST10F271 scans the RxD0 line and the CAN1_RxD line to receive either a valid dominant bit from CAN interface start condition from UART line. Start condition on UART RxD: ST10F271 starts standard bootstrap loader. This bootstrap loader is identical to other ST10 devices (example: ST10F269, ST10F168) ...
Page 46
... P0L.4 low at reset), additional check is made. Depending on the value at the User key location, following behavior will occur: ● A jump is performed to the Standard Bootstrap Loader ● Only UART is enabled for bootstraping ● Only CAN1 is enabled for bootstraping ● The device enters an infinite loop. 46/180 ST10F271B/ST10F271E ...
Page 47
... SFRs. Additional hardware has been added for a separate multiply and divide unit, a bit-mask generator and a barrel shifter. Most of the ST10F271’s instructions can be executed in one instruction cycle which requires 31.25ns at 64 MHz CPU clock. For example, shift and rotate instructions are processed in one instruction cycle independent of the number of bits to be shifted ...
Page 48
... Interrupt Controller ST10 CPU * Shared with standard ALU 48/180 Operand signed/unsigned Multiplier Concatenation 32 32 Mux Sign Extend MRW Scaler 0h 08000h Repeat Unit Mux 40 MCW A 40-bit Signed Arithmetic Unit MSW Flags MAE MAH Control Unit 8-bit Left/Right ST10F271B/ST10F271E Operand Mux MAL 40 Shifter ...
Page 49
... ST10F271B/ST10F271E 7.2 Instruction set summary The Table 26 lists the instructions of the ST10F271. The detailed description of each instruction can be found in the “ST10 Family Programming Manual”. Table 26. Standard instruction set summary Mnemonic ADD(B) ADDC(B) SUB(B) SUBC(B) MUL(U) DIV(U) DIVL(U) CPL(B) NEG(B) AND(B) ...
Page 50
... Enter Idle Mode Enter Power Down Mode (supposes NMI-pin being low) Service Watchdog Timer Disable Watchdog Timer Signify End-of-Initialization on RSTOUT-pin Begin ATOMIC sequence Begin EXTended Register sequence Begin EXTended Page (and Register) sequence Begin EXTended Segment (and Register) sequence Null operation ST10F271B/ST10F271E Bytes ...
Page 51
... ST10F271B/ST10F271E 7.3 MAC co-processor specific instructions The Table 27 lists the MAC instructions of the ST10F271. The detailed description of each instruction can be found in the “ST10 Family Programming Manual”. Note that all MAC instructions are encoded on 4 Bytes. Table 27. MAC instruction set summary ...
Page 52
... The active level of the READY pin can be set by bit RDYPOL in the BUSCONx registers. When the READY function is enabled for a specific address window, each bus cycle within the window must be terminated with the active level defined by bit RDYPOL in the associated BUSCON register. 52/180 ST10F271B/ST10F271E ...
Page 53
... When this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. PEC services are very well suited to perform the transmission or the reception of blocks of data. The ST10F271 has 8 PEC channels, each of them offers such fast interrupt-driven data transfer capabilities. ...
Page 54
... T1IE T1INT T7IR T7IE T7INT T8IR T8IE T8INT T2IR T2IE T2INT T3IR T3IE T3INT T4IR T4IE T4INT T5IR T5IE T5INT ST10F271B/ST10F271E Vector Trap Location Number 00’0058h 16h 00’005Ch 17h 00’0060h 18h 00’0064h 19h 00’0068h 1Ah 00’006Ch 1Bh 00’0070h 1Ch 00’0074h 1Dh 00’ ...
Page 55
... ST10F271B/ST10F271E Table 28. Interrupt sources (continued) Source of Interrupt or PEC Service Request GPT2 Timer 6 GPT2 CAPREL Register A/D Conversion Complete A/D Overrun Error ASC0 Transmit ASC0 Transmit Buffer ASC0 Receive ASC0 Error SSC Transmit SSC Receive SSC Error PWM Channel 0...3 See Paragraph 9 ...
Page 56
... X-interrupt vectors. Table 29. X-Interrupt detailed mapping CAN1 Interrupt CAN2 Interrupt I2C Receive I2C Transmit I2C Error SSC1 Receive SSC1 Transmit SSC1 Error ASC1 Receive ASC1 Transmit ASC1 Transmit Buffer 56/180 7 0 XIR x SEL[7: Flag[7:0] XIR x SEL[15: Enable[7: XP0INT ST10F271B/ST10F271E XP1INT XP2INT XP3INT ...
Page 57
... ST10F271B/ST10F271E Table 29. X-Interrupt detailed mapping (continued) ASC1 Error PLL Unlock / OWD PWM1 Channel 3...0 9.2 Exception and error traps list Table 30 shows all of the possible exceptions or error conditions that can arise during run- time. Table 30. Trap priorities Exception Condition Reset Functions: ...
Page 58
... Capture / compare (CAPCOM) units 10 Capture / compare (CAPCOM) units The ST10F271 has two 16-channel CAPCOM units which support generation and control of timing sequences channels with a maximum resolution of 125ns at 64 MHz CPU clock. The CAPCOM units are typically used to handle high speed I/O tasks such as pulse and waveform generation, pulse width modulation (PMW), Digital to Analog (D/A) conversion, software timing, or time recording relative to external events ...
Page 59
... ST10F271B/ST10F271E Table 31. Compare modes Compare Modes Interrupt-only compare mode; several compare interrupts per timer period are Mode 0 possible Pin toggles on each compare match; several compare events per timer period are Mode 1 possible Interrupt-only compare mode; only one compare interrupt per timer period is ...
Page 60
... Timer Input Selection T2I / T3I / T4I 000b 001b 010b 011b 1.25 2.5MHz 625 kHz MHz ST10F271B/ST10F271E 100b 101b 110b 111b 128 256 512 1024 312.5 156.25 78.125 39.1 kHz kHz ...
Page 61
... ST10F271B/ST10F271E Table 34. GPT1 timer input frequencies, resolutions and periods at 40 MHz MHz CPU Resolution 200ns Period 13.1ms maximum Table 35. GPT1 timer input frequencies, resolutions and periods at 64 MHz MHz CPU Pre-scaler factor Input Freq 8MHz Resolution 125ns Period 8.2ms maximum Figure 10. Block diagram of GPT1 ...
Page 62
... Timer Input Selection T5I / T6I 000b 001b 010b 011b 8MHz 4MHz 2MHz 125ns 250ns 0.5µs 8.2ms 16.4ms 32.8ms ST10F271B/ST10F271E 100b 101b 110b 64 128 256 312.5 156.25 78.125 625 kHz kHz kHz 1.6µs 3.2µs 6.4µs 12.8µs 104.8ms 209.7ms 419.4ms 838 ...
Page 63
... ST10F271B/ST10F271E Figure 11. Block diagram of GPT2 T5EUD CPU Clock T5IN CAPIN T6IN CPU Clock T6EUD T5 2n n=2...9 GPT2 Timer T5 Mode Control Clear Capture GPT2 CAPREL T6 GPT2 Timer T6 Mode 2n n=2...9 Control General purpose timer unit U/D Interrupt Request Interrupt Request Reload Interrupt Request ...
Page 64
... PWM modules 12 PWM modules Two pulse width modulation modules are available on ST10F271: standard PWM0 and XBus PWM1. They can generate up to four PWM output signals each, using edge-aligned or centre-aligned PWM. In addition, the PWM modules can generate PWM burst signals and single shot outputs. The resolutions ...
Page 65
... I/O’s special features 13.2.1 Open drain mode Some of the I/O ports of ST10F271 support the open drain capability. This programmable feature may be used with an external pull-up resistor, in order to get an AND wired logical function. This feature is implemented for ports P2, P3, P4, P6, P7 and P8 (see respective sections), and is controlled through the respective Open Drain Control Registers ODPx ...
Page 66
... Parallel ports 13.2.2 Input threshold control The standard inputs of the ST10F271 determine the status of input signals according to TTL levels. In order to accept and recognize noisy signals, CMOS input thresholds can be selected instead of the standard TTL thresholds for all the pins. These CMOS thresholds are defined above the TTL thresholds and feature a higher hysteresis to prevent the inputs from toggling while the respective input signal level is near the thresholds ...
Page 67
... ST10F271B/ST10F271E This is done by setting or clearing the direction control bit DPx.y of the pin before enabling the alternate function. There are port lines, however, where the direction of the port line is switched automatically. For instance, in the multiplexed external bus modes of PORT0, the direction must be switched several times for an instruction fetch in order to output the addresses and to input the data ...
Page 68
... The ST10F271B has 16 multiplexed input channels on Port 5. The ST10F271E has 16+8 multiplexed input channels on Port 5 and Port 1. The selection between Port 5 and Port 1 is made via a bit in a XBus register. Refer to the User Manual for a detailed description. ...
Page 69
... ST10F271B/ST10F271E register. The data can be transferred to the RAM by interrupt software management or using the PEC data transfer. ● Wait for ADDAT read mode: When using continuous modes, in order to avoid to overwrite the result of the current conversion by the next one, the ADWR bit of ADCON control register must be activated ...
Page 70
... SSC1 (XBus mapped). 15.1 Asynchronous / synchronous serial interfaces The asynchronous / synchronous serial interfaces (ASC0 and ASC1) provides serial communication between the ST10F271 and other microcontrollers, microprocessors or external peripherals. 15.2 ASCx in asynchronous mode In asynchronous mode 9-bit data transfer, parity generation and the number of stop bits can be selected ...
Page 71
... Baud rate crystal (providing a multiple of the ASC0 sampling frequency). 15.3 ASCx in synchronous mode In synchronous mode, data is transmitted or received synchronously to a shift clock which is generated by the ST10F271. Half-duplex communication Baud (at 40 MHz possible in this mode. Table 42. ASC synchronous baud rates by reload value and deviation errors (f S0BRS = ‘ ...
Page 72
... High speed synchronous serial interfaces The High-Speed Synchronous Serial Interfaces (SSC0 and SSC1) provides flexible high- speed serial communication between the ST10F271 and other microcontrollers, microprocessors or external peripherals. The SSCx supports full-duplex and half-duplex synchronous communication. The serial clock signal can be generated by the SSCx itself (master mode received from an external master (slave mode) ...
Page 73
... ST10F271B/ST10F271E Table 44 and Table 45 the resulting bit times for 40 MHz and 64 MHz CPU clock respectively. The maximum is anyway limited to 8Mbaud. Table 44. SSC synchronous baud rate and reload values (f Baud Rate Reserved Can be used only with f lower) 6.6M Baud 5M Baud 2.5M Baud ...
Page 74
... C cell is disabled (clearing bit XI2CEN), P4.4 and P4.7 pins are standard I/ O controlled by P4, DP4 and ODP4. The speed of the I 2 Fast I C mode (100 to 400 kHz). 74/180 2 C Bus specification. The bus modes are supported interface may be selected between Standard mode (0 to 100 kHz) and ST10F271B/ST10F271E 2 C Module can ...
Page 75
... XMISCEN of XPERCON register and bit XPEN of SYSCON register. 17.2 CAN bus configurations Depending on application, CAN bus configuration may be one single bus with a single or multiple interfaces or a multiple bus with a single or multiple interfaces. The ST10F271 is able to support these two cases. CAN modules . 75/180 ...
Page 76
... Figure 13. Connection to single CAN bus via separate CAN transceivers CAN_H CAN_L The ST10F271 also supports single CAN Bus multiple (dual) interfaces using the open drain option of the CANx_TxD output as shown in Connection, only one transceiver is required. In this case the design of the application must take in account the wire length and the noise environment ...
Page 77
... ST10F271B/ST10F271E Multiple CAN bus The ST10F271 provides two CAN interfaces to support such kind of bus configuration as Figure 15 shown in Figure 15. Connection to two different CAN buses (e.g. for gateway application) CAN_H CAN_L Parallel Mode In addition to previous configurations, a parallel mode is supported. This is shown in Figure 16 . Figure 16. Connection to one CAN bus with internal Parallel Mode enabled 1 ...
Page 78
... Vice versa, when at power on and after Reset, the 32 kHz is not present, the main STBY oscillator drives the RTC counter, and since it is powered by the main power supply, it cannot be maintained running in Stand-by mode, while in Power Down mode the main oscillator is maintained running to provide the reference to the RTC module (if not disabled). 78/180 ST10F271B/ST10F271E ...
Page 79
... ST10F271B/ST10F271E 19 Watchdog timer The Watchdog Timer is a fail-safe mechanism which prevents the microcontroller from malfunctioning for long periods of time. The Watchdog Timer is always enabled after a reset of the chip and can only be disabled in the time interval until the EINIT (end of initialization) instruction has been executed. ...
Page 80
... Status PONR Low Low LHWR High SHWR High 3) WDTR 3) SWR for more details on minimum reset pulse duration. and 20.6 ). ST10F271B/ST10F271E Table 48 Conditions Power- > RSTIN t > (1032 + 12) TCL + max(4 TCL, RSTIN 500ns) t > max(4 TCL, 500ns) RSTIN ≤ (1032 + 12) TCL + max(4 TCL, ...
Page 81
... Electrical Characteristics Section), with an already stable V of the ST10F271 does not need a stabilized clock signal to detect an asynchronous reset suitable for power-on conditions. To ensure a proper reset sequence, the RSTIN pin and the RPD pin must be held at low level until the device clock signal is stabilized and the system configuration value on Port0 is settled ...
Page 82
... Ampere, so the current shall be limited by the external hardware. The limit of current is imposed by power dissipation considerations (Refer to Electrical Characteristics Section). 18 and Asynchronous Power-on timing diagrams are reported, ST10F271B/ST10F271E pin should 18 ...
Page 83
... ST10F271B/ST10F271E Figure 17. Asynchronous power-on RESET ( XTAL1 RPD RSTIN RSTF (After Filter) P0[15:13] P0[12:2] P0[1:0] IBUS-CS (Internal) FLARST RST ≤ 1.2 ms (for resonator oscillation + PLL stabilization) ≤ 10.2 ms (for crystal oscillation + PLL stabilization) ≥ (for on-chip VREG stabilization) ≤ 2 TCL ... ≥ ≤ 500 ns 3 ...
Page 84
... Reset circuitry chapter and Figures It occurs when RSTIN is low and RPD is detected (or becomes) low as well. 84/180 ST10F271B/ST10F271E ≥ 1.2 ms (for resonator oscillation + PLL stabilization) ≥ 10.2 ms (for crystal oscillation + PLL stabilization) ≥ (for on-chip VREG stabilization ...
Page 85
... ST10F271B/ST10F271E Figure 19. Asynchronous hardware RESET ( RPD RSTIN RSTF (After Filter) P0[15:13] P0[12:2] P0[1:0] IBUS-CS (internal) FLARST RST Note 1. Longer than Port0 settling time + PLL synchronization (if needed, that is P0(15:13) changed) Longer than 500ns to take into account of Input Filter on RSTIN pin 1) ≥ ≤ 500 ns ≥ ...
Page 86
... FLASH is used, the restarting occurs after the embedded FLASH initialization routine is completed. The system configuration is latched from Port0: ALE, RD and WR/WRL pins are driven to their inactive level. The ST10F271 starts program execution from memory location 00'0000h in code segment 0. This starting location will typically point to the general initialization routine ...
Page 87
... FLASH initialization when EA=1 (internal memory selected). Then, the code execution restarts. The system configuration is latched from Port0, and ALE, RD and WR/WRL pins are driven to their inactive level. The ST10F271 starts program execution from memory location 00'0000h in code segment 0. This starting location will typically point to the general initialization routine ...
Page 88
... For a Software or Watchdog reset events, an active synchronous reset is completed regardless of the RPD status important to highlight that the signal that makes RPD status transparent under reset is the internal RSTF (after the noise filter). 88/180 Figure 19 . There is no effect if RPD comes again above ST10F271B/ST10F271E ...
Page 89
... ST10F271B/ST10F271E Figure 21. Synchronous short / long hardware RESET ( ≤ 4 TCL RSTIN ≥ ≤ 500 ns RSTF (After Filter) P0[15:13] P0[12:2] P0[1:0] IBUS-CS (Internal) FLARST RST RSTOUT RPD Notes: 1. RSTIN assertion can be released there. Refer also to Section 21.1 for details on minimum pulse duration during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5V for 5V operation), the asynchronous reset is then immediately entered ...
Page 90
... TCL 1) 4) ≥ ≤ 500 ns not transparent not t. transparent not transparent 1024 TCL 200mA Discharge ST10F271B/ST10F271E ≥ ≤ 500 ns not t. not t. 3..8 TCL3) 8 TCL 8 TCL At this time RSTF is sampled HIGH or LOW SHORT or LONG reset 2) VRPD > 2.5V Asynchronous Reset not entered ...
Page 91
... ST10F271B/ST10F271E Figure 23. Synchronous long hardware RESET ( RSTIN RSTF (After Filter) P0[15:13] P0[12:2] P0[1:0] IBUS-CS (Internal) FLARST RST RSTOUT RPD Notes during the reset condition (RSTIN low), RPD voltage drops below the threshold voltage (about 2.5V for 5V operation), the asynchronous reset is then immediately entered. Even if RPD returns above the threshold, the reset is defnitively taken as asynchronous ...
Page 92
... TCL At this time RSTF is sampled LOW LONG reset 200 µ A Discharge ST10F271B/ST10F271E 3..4 TCL not t. not t. not t. 3) 3..8 TCL 8 TCL 1) V > 2.5V Asynchronous Reset not entered RPD ...
Page 93
... ST10F271B/ST10F271E Refer to next Figures 29 for bidirectional. 20.5 Watchdog timer reset When the watchdog timer is not disabled during the initialization, or serviced regularly during program execution, it will overflow and trigger the reset sequence. Unlike hardware and software resets, the watchdog reset completes a running external bus cycle if this bus cycle either does not use READY READY is sampled active (low) after the programmed wait states ...
Page 94
... TCL periods (minimum time to recognize a Short Hardware reset) after the reset exiting (refer to or Watchdog Reset become a Short Hardware Reset. On the contrary, if RSTF remains low for less than 4 TCL, the device simply exits reset state. 94/180 ST10F271B/ST10F271E not transparent not t. transparent not transparent not t ...
Page 95
... ST10F271B/ST10F271E The Bidirectional reset is not effective in case RPD is held low, when a Software or Watchdog reset event occurs. On the contrary Software or Watchdog Bidirectional reset event is active and RPD becomes low, the RSTIN pin is immediately released, while the internal reset sequence is completed regardless of RPD status change (1024 TCL). ...
Page 96
... Figure 27 WDT bidirectional RESET (EA=1) RSTIN RSTF (After Filter) P0[15:13] P0[12:8] P0[7:2] P0[1:0] IBUS-CS (Internal) FLARST RST RSTOUT 96/180 ≥ ≥ ≤ 500 ns ≤ 500 ns not transparent transparent not transparent not transparent ≤ 1024 TCL ST10F271B/ST10F271E not t. not t. ≤ 2 TCL 7 TCL ...
Page 97
... ST10F271B/ST10F271E Figure 28 WDT bidirectional RESET ( RSTIN ≥ ≤ 500 ns RSTF (After Filter) P0[15:13] P0[12:8] P0[7:2] P0[1:0] ALE RST RSTOUT ≥ ≤ 500 ns not transparent transparent not t. not transparent not t. not transparent 1024 TCL At this time RSTF is sampled HIGH WDT Reset is flagged in WDTCON ...
Page 98
... If bit PWDCFG of SYSCON register is set, an internal pull-up resistor is activated at the end of the reset sequence. This pull-up will charge any capacitor connected on RPD pin. The simplest way to reset the ST10F271 is to insert a capacitor C1 between RSTIN pin and V , and a capacitor between RPD pin and V ...
Page 99
... This mechanism insures recovery from very catastrophic failure. Figure 30. Minimum external reset circuitry The minimum reset circuit of the ST10F271 itself during software or watchdog triggered resets, because of the capacitor C1 that will keep the voltage on RSTIN pin above V sequence, and thus will trigger an asynchronous reset sequence. Figure 31 shows an example of a reset circuit ...
Page 100
... C0 EINIT Instruction Clr Q Set Reset State Machine Clock SRST instruction Trigger watchdog overflow Clr Reset Sequence (512 CPU Clock Cycles) Asynchronous Reset From/to Exit Powerdown Circuit ST10F271B/ST10F271E External Reset Source RSTOUT V DD RSTIN BDRSTEN V DD RPD Weak Pulldown (~200µA) ...
Page 101
... ST10F271B/ST10F271E 20.8 Reset application examples Next two timing diagrams ( bidirectional internal reset events (Software and Watchdog) including in particular the external capacitances charge and discharge transients (refer also to external circuit scheme). Figure 33. Example of software or watchdog bidirectional reset ( Figure 33 and Figure 34 ) provides additional examples of ...
Page 102
... System reset Figure 34. Example of software or watchdog bidirectional reset ( 102/180 ST10F271B/ST10F271E ...
Page 103
... ST10F271B/ST10F271E 20.9 Reset summary A summary of the different reset events is reported in the table below. Table 49. Reset event Event Asynch. Power-on Reset Asynch Asynch Asynch. Hardware Reset (Asynchronous Asynch Asynch Synch Synch. Short Hardware Reset Synch. (1) (Synchronous Synch Synch Synch. Long Hardware Reset ...
Page 104
... Not activated Not activated Activated by internal logic for 1024 TCL Not activated Not activated Not activated Activated by internal logic for 1024 TCL Figure 35 and . summarizes the state of bits of PORT0 latched in RP0H, SYSCON ST10F271B/ST10F271E WDTCON Flags max Section 20.3 for details). PORT0 ...
Page 105
... ST10F271B/ST10F271E Figure 35. PORT0 bits latched into the different registers after reset H.7 H.6 H.5 CLKCFG RP0H CLKCFG Clock Generator P0L.7 ROMEN BYTDIS 10 9 PORT0 H.4 H.3 H.2 H.1 H.0 L.7 L.6 SALSEL CSSEL WRC BUSTYP CSSEL WRC SALSEL Bootstrap Loader Port 4 ...
Page 106
... Power reduction modes Three different power reduction modes with different levels of power reduction have been implemented in the ST10F271. In Idle mode only CPU is stopped, while peripheral still operate. In Power Down mode both CPU and peripherals are stopped. In Stand-by mode the main power supply (V ...
Page 107
... A dedicated embedded low-power voltage regulator is implemented to generate the internal low voltage supply (about 1.65V in Stand-by mode) to bias all those circuits that shall remain active: the portion of XRAM (16Kbytes for ST10F271E), the RTC counters and 32 kHz on- chip oscillator amplifier. Chapter 20: System reset on page 80 ...
Page 108
... V 18SB from ST10F271 Core (active low signal) is low enough to be recognized as a logic “0” by the RAM interface (due to V for the RAM and an unwanted data corruption could occur. For this reason, an extra interface, powered by the switched supply, is used to prevent the RAM from this kind of potential corruption mechanism ...
Page 109
... ST10F271B/ST10F271E Warning: 21.3.2 Exiting stand-by mode After the system has entered the Stand-by Mode, the procedure to exit this mode consists of a standard Power-on sequence, with the only difference that the RAM is already powered through V internal reference (derived from V 18SB It is recommended to held the device under RESET (RSTIN pin forced low) until external V voltage pin is stable ...
Page 110
... ST10F271B/ST10F271E , a summary of the different off run off biased on run on biased off off off biased on on off biased on off on biased off off off biased on off ...
Page 111
... ST10F271B/ST10F271E 22 Programmable output clock divider A specific register mapped on the XBUS allows to choose the division factor on the CLKOUT signal (P3.15). This register is mapped on X-Miscellaneous memory address range. When CLKOUT function is enabled by setting bit CLKEN of register SYSCON, by default the CPU clock is output on P3.15. Setting bit XMISCEN of register XPERCON and bit XPEN of register SYSCON possible to program the clock prescaling factor: in this way on P3 ...
Page 112
... This section summarizes all registers implemented in the ST10F271, ordered by name. 23.1 Special function registers The following table lists all SFRs which are implemented in the ST10F271 in alphabetical order. Bit-addressable SFRs are marked with the letter “b” in column “Name”. SFRs within the Extended SFR-Space (ESFRs) are marked with the letter “E” in column “ ...
Page 113
... ST10F271B/ST10F271E Table 52. List of special function registers (continued) Physical Name address CC4 FE88h CC4IC b FF80h CC5 FE8Ah CC5IC b FF82h CC6 FE8Ch CC6IC b FF84h CC7 FE8Eh CC7IC b FF86h CC8 FE90h CC8IC b FF88h CC9 FE92h CC9IC b FF8Ah CC10 FE94h CC10IC b FF8Ch CC11 FE96h CC11IC ...
Page 114
... CAPCOM Mode Control register 6 94h CAPCOM Mode Control register 7 08h CPU Context Pointer register B5h GPT2 CAPREL interrupt control register 04h CPU Code Segment Pointer register (read only) 80h P0L direction control register ST10F271B/ST10F271E Reset value 0000h - - 00h 0000h - - 00h 0000h - - 00h 0000h - - 00h ...
Page 115
... ST10F271B/ST10F271E Table 52. List of special function registers (continued) Physical Name address DP0H b F102h E DP1L b F104h E DP1H b F106h E DP2 b FFC2h DP3 b FFC6h DP4 b FFCAh DP6 b FFCEh DP7 b FFD2h DP8 b FFD6h DPP0 FE00h DPP1 FE02h DPP2 FE04h DPP3 FE06h EMUCON FE0Ah EXICON b F1C0h E EXISEL ...
Page 116
... CPU program status word 18h PWM module up/down counter 0 19h PWM module up/down counter 1 1Ah PWM module up/down counter 2 1Bh PWM module up/down counter 3 18h PWM module pulse width register 0 ST10F271B/ST10F271E Reset value - - 00h - - 00h FFFFh - - 00h - - 00h - - 00h - - 00h 0000h ...
Page 117
... ST10F271B/ST10F271E Table 52. List of special function registers (continued) Physical Name address PW1 FE32h PW2 FE34h PW3 FE36h PWMCON0 b FF30h PWMCON1 b FF32h PWMIC b F17Eh E QR0 F004h E QR1 F006h E QX0 F000h E QX1 F002h E RP0H b F108h E S0BG FEB4h S0CON b FFB0h S0EIC b FF70h S0RBUF FEB2h S0RIC ...
Page 118
... Watchdog timer control register 0Eh XPER address select register 3 Section 9.1 C3h See C7h See Section 9.1 Section 9.1 CBh See CFh See Section 9.1 ST10F271B/ST10F271E Reset value 0000h - - 00h 0000h 0000h 0000h - - 00h 0000h 0000h - - 00h 0000h 0000h - - 00h 0000h ...
Page 119
... Some software controlled interrupt requests may be generated by setting the XPnIR bits (of XPnIC register) of the unused X-Peripheral nodes. 23.2 XBus registers The following table lists all XBus registers which are implemented in the ST10F271 ordered by their name. Note: The XBus registers are not bit-addressable. ...
Page 120
... EE20h CAN2: IF1 data A 2 EE22h CAN2: IF1 data B 1 EE24h CAN2: IF1 data B 2 EE14h CAN2: IF1 mask 1 EE16h CAN2: IF1 mask 2 EE1Ch CAN2: IF1 message control ST10F271B/ST10F271E Reset value 0001h 0000h 0000h 0000h 0000h FFFFh FFFFh 0000h 0000h 0000h ...
Page 121
... ST10F271B/ST10F271E Table 53. List of XBus registers (continued) Name CAN2IF2A1 CAN2IF2A2 CAN2IF2CM CAN2IF2CR CAN2IF2DA1 CAN2IF2DA2 CAN2IF2DB1 CAN2IF2DB2 CAN2IF2M1 CAN2IF2M2 CAN2IF2MC CAN2IP1 CAN2IP2 CAN2IR CAN2MV1 CAN2MV2 CAN2ND1 CAN2ND2 CAN2SR CAN2TR CAN2TR1 CAN2TR2 I2CCCR1 I2CCCR2 I2CCR I2CDR I2COAR1 I2COAR2 I2CSR1 I2CSR2 RTCAH RTCAL RTCCON RTCDH ...
Page 122
... XPWM module period register 1 EC24h XPWM module period register 2 EC26h XPWM module period register 3 EC10h XPWM module up/down counter 0 EC12h XPWM module up/down counter 1 EC14h XPWM module up/down counter 2 ST10F271B/ST10F271E Reset value XXXXh XXXXh XXXXh XXXXh XXXXh - - 00h XXXXh XXXXh XXXXh ...
Page 123
... ST10F271B/ST10F271E Table 53. List of XBus registers (continued) Name XPT3 XPW0 XPW1 XPW2 XPW3 XPWMCON0 XPWMCON0CLR XPWMCON0SET XPWMCON1 XPWMCON1CLR XPWMCON1SET XPWMPORT XS1BG XS1CON XS1CONCLR XS1CONSET XS1PORT XS1RBUF XS1TBUF XSSCBR XSSCCON XSSCCONCLR XSSCCONSET XSSCPORT XSSCRB XSSCTB Physical Description address EC16h XPWM module up/down counter 3 ...
Page 124
... Register set 23.3 Flash registers ordered by name The following table lists all Flash Control Registers which are implemented in the ST10F271 ordered by their name. These registers are physically mapped on the IBus, except for XFVTAUR0, which is mapped on XBus. Note: These registers are not bit-addressable. ...
Page 125
... Internal memory size MEMSIZE Internal memory size (MEMSIZE) (in Kbyte) 040h for 256 Kbytes (ST10F272) Internal memory type ‘0h’: ROM-Less ‘1h’: (M) ROM memory MEMTYP ‘2h’: (S) Standard Flash memory ‘3h’: (H) High performance Flash memory (ST10F271) ‘4h...Fh’: Reserved ESFR ...
Page 126
... IDMEM ● IDPROG 126/180 ESFR PROGVPP R voltage DD voltage when programming EPROM or FLASH devices is calculated using the = 20 x [PROGVDD] / 256 (volts) - 40h for ST10F271 (5V). DD voltage (no need of external V PP 0403h 110xh (x = silicon revision) F040h 0040h ST10F271B/ST10F271E Reset Value: 0040h PROGVDD R Function ...
Page 127
... ST10F271B/ST10F271E 24 Electrical characteristics 24.1 Absolute maximum ratings Table 59. Absolute maximum ratings Symbol V Voltage on V pins with respect to ground ( Voltage on V pin with respect to ground (V STBY STBY V Voltage on V pins with respect to ground (V AREF AREF V Voltage on V pins with respect to ground (V AGND ...
Page 128
... INT I/O and V , expressed in Watt. This is the Chip Internal Power < P and may be neglected. On the other hand, I/O INT and Using this value of K, the values ST10F271B/ST10F271E Value Min Max 4.5 5.5 4.5 5.5 -40 +125 -40 +150 Section 24 neglected) is given by: I Unit V V ° ...
Page 129
... Controller Characteristics, is included in the “Symbol” column. Where the external system must provide signals with their respective timing characteristics to the ST10F271, the symbol “SR” for System Requirement, is included in the “Symbol” column. Description Ambient temperature range ° ...
Page 130
... HYS V CC 750 HYSS V CC 750 HYS1 HYS2 V CC 400 HYS3 V CC 500 HYS4 V CC – – OL1 V CC – OL2 ST10F271B/ST10F271E Unit Test Condition max. 0.8 V – 0 – – Direct Drive mode DD 0.8 V – 0.3 V – 0.3 V – ...
Page 131
... ST10F271B/ST10F271E Table 63. DC characteristics (continued) Parameter Output high voltage (P6[7:0], ALE, RD, WR/WRL, BHE/WRH, CLKOUT, RSTOUT) (2) Output high voltage (P0[15:0], P1[15:0], P2[15:0], P3[15,13:0], P4[7:0], P7[7:0], P8[7:0]) Output high voltage RPD (3) Input leakage current (P5[15:0]) Input leakage current (all except P5[15:0], P2[0], RPD, P3[12], ...
Page 132
... V). The absolute sum of input overload currents on all port pins may OV is expressed in MHz). This dependency is CPU and at maximum CPU clock frequency with all outputs DDmax RSTIN pin this implies I/O current is not considered. The device is IH IH1min ST10F271B/ST10F271E Unit Test Condition max. µA 200 T = 25°C A 400 µ 25° ...
Page 133
... ST10F271B/ST10F271E 10. The power supply current is a function of the operating frequency (f illustrated in the Figure 38 below. This parameter is tested at V disconnected and all inputs doing the following: - Fetching code from all sectors of IFlash, accessing in read (few fetches) and write to XRAM - Watchdog Timer is enabled and regularly serviced - RTC is running with main oscillator clock as reference, generating a tick interrupts every 192 clock cycles - Four channel of XPWM are running (waves period ...
Page 134
... Electrical characteristics Figure 38. Supply current versus the operating frequency (RUN and IDLE modes) 150 100 134/180 [MHz] CPU ST10F271B/ST10F271E CC1 CC2 ...
Page 135
... Word or Double Word Programming time could be longer than the average value. 3. Bank Erase is obtained through a multiple Sector Erase operation (setting bits related to all sectors of the Bank). As ST10F271 implements only one bank, the Bank Erase operation is equivalent to Module and Chip Erase operations. 4. Not 100% tested, guaranteed by Design Characterization. ...
Page 136
... OFS CC –1.5 +1.5 –2.0 +2.0 TUE CC –5.0 +5.0 –7.0 +7 – – – – 3.5 S ST10F271B/ST10F271E 64Kbyte (EEPROM emulation) > 20 years > 20 years 10 years 1 year ≤ AREF DD Unit Test Condition max 0 AREF mA Running mode µA Power Down mode 4) µs µs 5) LSB No overload ...
Page 137
... The time that the two different actions during conversion take (sampling, and converting) can be programmed within a certain range in the ST10F271 relative to the CPU clock. The absolute time that is consumed by the different conversion steps therefore is independent from the general speed of the controller ...
Page 138
... TCL * 560 TCL * 480 TCL * 960 TCL * 560 TCL * 1120 TCL * 800 TCL * 1120 TCL * 1600 TCL * 1120 ) and converts it into 10-bit digital data. The AREF ST10F271B/ST10F271E = 1/2TCL. A complete CPU Extra Total conversion TCL * 28 TCL * 388 TCL * 16 TCL * 436 TCL * 52 TCL * 532 ...
Page 139
... ST10F271B/ST10F271E These four error quantities are explained below using characteristic . Offset error Offset error is the deviation between actual and ideal A/D conversion characteristics when the digital output value changes from the minimum (zero voltage OFS). Gain error Gain error is the deviation between the actual and ideal A/D conversion characteristics when the digital output value changes from the 3FE to the maximum 3FF, once offset error is subtracted ...
Page 140
... AREF and V pins represents also the power supply of the analog AREF AGND could introduce error under certain conditions: for this AREF ST10F271B/ST10F271E Offset Error OFS Gain Error GE Bisector Characteristic (1) (1) Example of an actual transfer curve (2) The ideal transfer curve (3) Differential Non-Linearity Error (DNL) ...
Page 141
... ST10F271B/ST10F271E besides, it sources charge during the sampling phase, when the analog signal source is a high-impedance source. A real filter, can typically be obtained by using a series resistance with a capacitor on the input pin (simple RC Filter). The RC filtering may be limited according to the value of source impedance of the transducer or circuit supplying the analog signal to be measured. The filter at the input pins must be designed taking into account the dynamic characteristics of the input signal (bandwidth) ...
Page 142
... C S and C is redistributed also ⋅ (that is typically bigger than the on-chip F : again considering the worst case in which C L (since the time constant in reality would be faster), the P1 τ 2 < ⋅ ST10F271B/ST10F271E (refer to the A ∆V < 0.5 LSB τ < << τ and the two capacitance C P2 ⋅ ...
Page 143
... ST10F271B/ST10F271E R sizing is obtained course combination with R definitively bigger than C charge transfer transient) will be much higher than V respected (charge balance assuming now The two transients above are not influenced by the voltage source that, due to the presence of the R C filter, is not able to provide the extra charge to compensate the voltage drop on ...
Page 144
... Maximum Analog Source Voltage (V ● Analog Source Impedance (R ● Channel Switch Resistance (R ● Sampling Switch Resistance (R 144/180 is maximum, that is for instance 5V), A value: > ⋅ 2048 10kHz 0 ): 25kHz C ): 1µ 5pF P1 ): 1pF P2 ): 4pF S ): 3mA INJ :12V AM) ): 100Ω 500Ω 200Ω AD ST10F271B/ST10F271E ...
Page 145
... V The other conditions to be verified is the time constants of the transients are really and significantly shorter than the sampling period duration T For complete set of parameters characterizing the ST10F271 A/D Converter equivalent circuit, refer to Section 24.7: A/D converter characteristics on page 136 ...
Page 146
... It begins to float when a 100mV change from the loaded V 24.8.2 Definition of internal timing The internal operation of the ST10F271 is controlled by the internal CPU clock f edges of the CPU clock can trigger internal (for example pipeline) or external (for example bus cycles) operations. The specification of the external timing (AC Characteristics) therefore depends on the time between two consecutive edges of the CPU clock, called “ ...
Page 147
... ST10F271B/ST10F271E Figure 45. Generation mechanisms for the CPU clock Phase locked loop operation f XTAL f CPU Direct Clock Drive f XTAL f CPU Prescaler Operation f XTAL f CPU 24.8.3 Clock generation modes Next Table 68 associates the combinations of these three bits with the respective clock generation mode. ...
Page 148
... Oscillator Watchdog. If bit OWDDIS is set, then the PLL is switched off. 24.8.6 Oscillator watchdog (OWD) An on-chip watchdog oscillator is implemented in the ST10F271. This feature is used for safety operation with external crystal oscillator (available only when using direct drive mode with or without prescaler, so the PLL is not used to generate the CPU clock multiplying the frequency of the external crystal oscillator) ...
Page 149
... Baud rates, etc.) the deviation caused by the PLL jitter is negligible. Refer to next 24.8.8 Voltage Controlled Oscillator The ST10F271 implements a PLL which combines different levels of frequency dividers with a Voltage Controlled Oscillator (VCO) working as frequency multiplier. In the following table, a detailed summary of the internal settings and VCO frequency is reported. Table 69. ...
Page 150
... Jitter at the PLL output can be due to the following reasons: ● Jitter in the input clock ● Noise in the PLL loop. 150/180 PLL Input Prescaler Multiply by Divide XTAL – PLL bypassed XTAL ST10F271B/ST10F271E Output CPU Frequency Prescaler CPU 2 – F XTAL PLL XTAL 2 – F XTAL and T ...
Page 151
... ST10F271B/ST10F271E Jitter in the input clock PLL acts like a low pass filter for any jitter in the input clock. Input Clock jitter with the frequencies within the PLL loop bandwidth is passed to the PLL output and higher frequency jitter (frequency > PLL bandwidth) is attenuated @20dB/decade. ...
Page 152
... Electrical characteristics Figure 46. ST10F271 PLL jitter ±5 ±4 ±3 ±2 ±1 T JIT 0 0 24.8.10 PLL lock / unlock During normal operation, if the PLL gets unlocked for any reason, an interrupt request to the CPU is generated, and the reference clock (oscillator) is automatically disconnected from the PLL input: in this way, the PLL goes into free-running mode, providing the system with a ...
Page 153
... T = –40 to +125° Value min. max. – 300 – 250 –500 +500 250 2000 500 4000 Value Unit min. typ. max. 1.4 2.6 4.2 mA/V – 1.5 – – 0.8 – – – ST10F271 Resonator 153/180 Unit µs µs ps kHz ...
Page 154
... SS A Parameter Conditions Start-up 1) Normal run 2) Peak to Peak 2) Sine wave middle 2) Stable V DD ST10F271 crystal C A ST10F271B/ST10F271E C = 35pF A max. min. typ. max. 430 Ω 850 Ω – 120 Ω 250 Ω – ) and the package capacitance 0 Value min. typ. ...
Page 155
... ST10F271B/ST10F271E Table 74. Minimum values of negative resistance (module) for 32kHz oscillator C = 6pF A 32kHz - The given values of C printed circuit board: the negative resistance values are calculated assuming additional 5pF to the values in the table. The crystal shunt capacitance (C between XTAL3 and XTAL4 pins is globally assumed equal to 4pF. The external resistance between XTAL3 and XTAL4 is not necessary, since already present on the silicon ...
Page 156
... In these cases necessary to relax the speed of the bus setting properly and Note: All External Memory Bus Timings and SSC Timings reported in the following tables are granted by Design Characterization and not fully tested in production. 156/180 t3 t1 VIH2 t2 Symbol ST10F271B/ST10F271E t4 VIL2 t OSC Values TCL x [ALECTL] 2TCL x (15 - [MCTC]) 2TCL [MTTC]) ...
Page 157
... ST10F271B/ST10F271E 24.8.16 Multiplexed bus ± 10 ALE cycle time = 6 TCL + 2t Table 77. Multiplexed bus timings Symbol Parameter t CC ALE high time Address setup to ALE Address hold after ALE 7 ALE falling edge to RD (with RW-delay) ALE falling edge to RD (no RW-delay) Address float after RD, WR ...
Page 158
... C – 16 – – 2TCL – 9 – 3TCL – 9 – 2TCL – – 0 – 16 – – 2TCL – – 2TCL – ST10F271B/ST10F271E max. 3TCL – – – – 1.5 ns TCL + 1.5 ns 2TCL – 3TCL – – – – – ...
Page 159
... ST10F271B/ST10F271E Figure 50. External memory cycle: Multiplexed bus, with/without read/write delay, normal ALE t ALE t 6 CSx A23-A16 (A15-A8) BHE Read cycle Address/data bus (P0) RD Write cycle Address/data bus (P0) WR WRL WRH Address Address Address Electrical characteristics Data in Address Data out 159/180 ...
Page 160
... Figure 51. External memory cycle: Multiplexed bus, with/without read/write delay, extended ALE t 5 ALE t 6 CSx t 6 A23-A16 (A15-A8) BHE Read cycle t 6 Address/Data Bus (P0) RD Write cycle Address/Data Bus (P0) WR WRL WRH 160/180 Address t 7 Address Address ST10F271B/ST10F271E Data Data out ...
Page 161
... ST10F271B/ST10F271E Figure 52. External memory cycle: Multiplexed bus, with/without r/w delay, normal ALE, r/w CS CLKOUT ALE A23-A16 (A15-A8) BHE Read Cycle Address/Data Bus (P0) RdCSx Write Cycle Address/Data Bus (P0) WrCSx Address Address Address Electrical characteristics Address Data Data Out 161/180 ...
Page 162
... Electrical characteristics Figure 53. External memory cycle: Multiplexed bus, with/without r/w delay, extended ALE, r/w CS CLKOUT t 5 ALE t 6 A23-A16 (A15-A8) BHE Read cycle t 6 Address/Data Bus (P0) RdCSx Write cycle Address/data bus (P0) WrCSx 162/180 Address t 7 Address Address ST10F271B/ST10F271E Data Data out ...
Page 163
... ST10F271B/ST10F271E 24.8.17 Demultiplexed bus ± 10 ALE cycle time = 4 TCL + 2t Table 78. Demultiplexed bus timings Symbol Parameter t CC ALE high time Address setup to ALE 6 Address/Unlatched CS setup RD (with RW-delay) Address/Unlatched CS setup RD (no RW-delay) RD, WR low time (with RW-delay) RD, WR low time (no RW-delay valid data in ...
Page 164
... C – – 2TCL – 9 – 3TCL – 9 – 2TCL – – – 16 – – 8 – – 8 – TCL – 10 ST10F271B/ST10F271E Variable CPU Clock max. 6 – 3TCL – – – – – – 2TCL – – 3TCL – – – ...
Page 165
... ST10F271B/ST10F271E Figure 54. External memory cycle: Demultiplexed bus, with/without r/w delay, normal ALE CLKOUT ALE CSx A23-A16 A15-A0 (P1) BHE Read cycle Data bus (P0) (D15-D8) D7-D0 RD Write cycle Data bus (P0) (D15-D8) D7-D0 WR WRL WRH Address Data out Electrical characteristics 41u t ( 28h t 18 Data in ...
Page 166
... Electrical characteristics Figure 55. Exteral memory cycle: Demultiplexed bus, with/without r/w delay, extended ALE CLKOUT t ALE t 6 CSx A23-A16 A15-A0 (P1) BHE Read cycle Data bus (P0) (D15-D8) D7-D0 RD Write cycle Data bus (P0) (D15-D8) D7-D0 WR WRL WRH 166/180 Address ST10F271B/ST10F271E Data Data out ...
Page 167
... ST10F271B/ST10F271E Figure 56. External memory cycle: Demultipl. bus, with/without r/w delay, normal ALE, r/w CS CLKOUT ALE A23-A16 A15-A0 (P1) BHE Read cycle Data bus (P0) (D15-D8) D7-D0 RdCSx Write cycle Data bus (P0) (D15-D8) D7-D0 WrCSx Address Data out Electrical characteristics Data 167/180 ...
Page 168
... Electrical characteristics Figure 57. External memory cycle: Demultiplexed bus, without r/w delay, extended ALE, r/w CS CLKOUT t 5 ALE A23-A16 A15-A0 (P1) BHE Read cycle Data bus (P0) (D15-D8) D7-D0 RdCSx Write cycle Data bus (P0) (D15-D8) D7-D0 WrCSx 168/180 Address ST10F271B/ST10F271E Data Data out ...
Page 169
... ST10F271B/ST10F271E 24.8.18 CLKOUT and READY ± 10 Table 79. CLKOUT and READY timings Symbol Parameter t CC CLKOUT cycle time CLKOUT high time CLKOUT low time CLKOUT rise time CLKOUT fall time 33 CLKOUT rising edge ALE falling edge Synchronous READY setup time to CLKOUT Synchronous READY ...
Page 170
... For a multiplexed bus with MTTC wait state this delay is two CLKOUT cycles, for a demultiplexed bus without MTTC wait state this delay is zero. 7. The next external bus cycle may start here. 170/180 READY Running cycle 1) wait state ST10F271B/ST10F271E MUX / Tri-state order to be safely synchronized. This is ...
Page 171
... Figure 59. External bus arbitration (releasing the bus) CLKOUT HOLD HLDA BREQ CSx (P6.x) Others 1. The ST10F271 will complete the currently running bus cycle before granting bus access. 2. This is the first possibility for BREQ to become active. 3. The CS outputs will be resistive high (pull-up) after -40 to +125° ...
Page 172
... This is the last chance for BREQ to trigger the indicated regain-sequence. Even if BREQ is activated earlier, the regain-sequence is initiated by HOLD going high. Please note that HOLD may also be deactivated without the ST10F271 requesting the bus. 2. The next ST10F271 driven bus cycle may start here. 172/180 2) ...
Page 173
... ST10F271B/ST10F271E 24.8.20 High-speed synchronous serial interface (SSC) timing Master mode ±10 Table 81. SSC master mode timings Symbol Parameter t CC SSC clock cycle time 300 t CC SSC clock high time 301 t CC SSC clock low time 302 t CC SSC clock rise time ...
Page 174
... T = -40 to +125° Max. Baudrate (1) 6.6 MBd @F = 40MHz CPU (<SSCBR> = 0002h) min. (2) 150 63 63 – – – ST10F271B/ST10F271E 2) t 305 306 Last out bit t t 307 308 Last in bit = 50pF L Variable Baudrate ) (<SSCBR> = 0001h - FFFFh) max. min. max. 150 8TCL 262144 TCL – ...
Page 175
... ST10F271B/ST10F271E Table 82. SSC slave mode timings Symbol Parameter Read data setup time before latch t SR edge, phase error detection off 317 (SSCPEN = 0) Read data hold time after latch t SR edge, phase error detection off 318 (SSCPEN = 0) 1. Maximum Baudrate is in reality 8Mbaud, that can be reached with 64MHz CPU clock and <SSCBR> set to ‘3h’, or with 48MHz CPU clock and < ...
Page 176
... PQFP144 ST10F271B/ST10F271E OUTLINE AND MECHANICAL DATA PQFP144 0.10mm .004 Seating Plane C K ...
Page 177
... ST10F271B/ST10F271E Figure 64. TQFP144 mechanical data and package dimension DIM. MIN 0.05 A2 1.35 B 0. Note 1: Exact shape of each corner is optional. mm inch TYP. MAX. MIN. TYP. MAX. 1.60 0.063 0.15 0.002 0.006 1.40 1.45 0.053 0.055 0.057 0.22 0.27 0.007 0.009 0.011 ...
Page 178
... Ordering information 26 Ordering information pecific Table 83. Order codes Part number F271-AEA-P F271-AEA-P-TR F271-AEA-T F271-AEA-T-TR F271-AEA5-T-TR F271-BAG-P F271-BAG-T F271-BAG-T-TR F271-BAG5-T F271-BAG5-T-TR 178/180 B/E Package Packing Type Tray PQFP144 Tape and reel Tray TQFP144 Tape and reel TQFP144 Tape and reel PQFP144 Tray ...
Page 179
... ST10F271B/ST10F271E 27 Revision history Table 84. Document revision history Date 12-Jul-2006 Revision 1 Initial release. Revision history Changes 179/180 ...
Page 180
... Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America 180/180 Please Read Carefully: © 2006 STMicroelectronics - All rights reserved STMicroelectronics group of companies www.st.com ST10F271B/ST10F271E ...