St7263Bdx St7263Bhx St7263Bkx St7263Be
St7263Bdx St7263Bhx St7263Bkx St7263Be
ST7263BKx ST7263BE
Low speed USB 8-bit MCU family with up to 32K Flash/ROM,
DFU capability, 8-bit ADC, WDG, timer, SCI & I²C
■ Memories
– 4, 8, 16 or 32 Kbytes program memory: high
density Flash (HDFlash), FastROM or ROM
with Read-Out and Write protection
– In-application programming (IAP) and in-cir- PSDIP32 LQFP48 (7x7)
cuit programming (ICP)
– 384, 512 or 1024 bytes RAM memory (128-
byte stack)
■ Clock, reset and supply management
– Run, Wait, Slow and Halt CPU modes
– 12 or 24 MHz oscillator SO34(Shrink) SO24 QFN40 (6x6)
– RAM Retention mode
■ 2 timers
– Optional low voltage detector (LVD)
■ USB (universal serial bus) Interface – Programmable watchdog
– DMA for low speed applications compliant – 16-bit timer with 2 Input Captures, 2 Output
with USB 1.5 Mbs (version 2.0) and HID spec- Compares, PWM output and clock input
ifications (version 1.0) ■ 2 communication Interfaces
– Integrated 3.3 V voltage regulator and trans- – Asynchronous serial communications Inter-
ceivers face
– Supports USB DFU class specification – I²C multimaster Interface up to 400 kHz
– Suspend and Resume operations ■ Instruction Set
– 3 endpoints with programmable Input/Output – 63 basic instructions
configuration – 17 main addressing modes
■ Up to 27 I/O ports – 8 x 8 unsigned multiply instruction
– Up to 8 high sink I/Os (10 mA at 1.3 V) – True bit manipulation
– 2 very high sink true open drain I/Os (25 mA ■ Development tools
at 1.5 V) – Versatile development tools (under Windows)
– Up to 8 lines individually programmable as in- including assembler, linker, C-compiler, ar-
terrupt inputs chiver, source level debugger, software li-
■ 1 analog peripheral brary, hardware emulator, programming
– 8-bit A/D converter with 8 or 12 channels boards and gang programmers, HID and DFU
software layers
Table 1. Device summary
ST7263BH2, ST7263BK1, ST7263BK2, ST7263BK4, ST7263BE1, ST7263BE2,
Features ST7263BD6
ST7263BH6 ST7263BK6 ST7263BE4, ST7263BE6
Program memory
32K 16K 8K 32K 32K 16K 8K 4K 32K 16K 8K 4K
(Flash / ROM) - bytes
1024 512 384 1024 1024 512 384 384 1024 512 384 384
RAM (stack) - bytes
(128) (128) (128) (128) (128) (128) (128) (128) (128) (128) (128) (128)
Standard peripherals Watchdog timer, 16-bit timer, USB
Other peripherals SCI, I²C, ADC SCI, ADC ADC SCI, I²C
I/Os (high current) 27 (10) 19 (10) 14 (6)
Operating supply 4.0 V to 5.5 V
CPU frequency 8 MHz (with 24 MHz oscillator) or 4 MHz (with 12 MHz oscillator)
Operating temp. 0 °C to +70 °C
QFN40 SDIP32/ QFN40
Packages LQFP48 (7x7) SDIP32/SO34 SO24
(6x6) SO34 (6x6)
Rev. 7.0
2/145
Table of Contents
12.1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
12.1.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
12.1.3 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
12.1.4 Software Watchdog option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
12.1.5 Hardware Watchdog option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
12.1.6 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
12.1.7 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
12.1.8 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
12.2 16-bit timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
12.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
12.2.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
12.2.3 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
12.2.4 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.2.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.2.6 Summary of timer modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
12.2.7 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
12.3 Serial communications interface (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
12.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
12.3.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
12.3.3 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
12.3.4 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
12.3.5 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
12.3.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
12.3.7 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
12.4 USB interface (USB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
12.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
12.4.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
12.4.3 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
12.4.4 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
12.4.5 Programming considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
12.5 I²C bus interface (I²C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.5.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.5.3 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
12.5.4 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
12.5.5 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
12.5.6 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
12.5.7 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
12.6 8-bit A/D converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.6.2 Main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.6.3 Functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.6.4 Low power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
12.6.5 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
12.6.6 Register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
13 Instruction set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
. . . 102
13.1 ST7 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
13.1.1 Inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
3/145
Table of Contents
13.1.2 Immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
13.1.3 Direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
13.1.4 Indexed (No Offset, Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
13.1.5 Indirect (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
13.1.6 Indirect Indexed (Short, Long) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
13.1.7 Relative mode (Direct, Indirect) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
13.2 insTruction groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
14 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.2.1 Voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.2.2 Current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.2.3 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
14.3.1 General operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
14.3.2 Operating conditions with Low Voltage Detector (LVD) . . . . . . . . . . . . . . . . . . . 110
14.4 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
14.5 Clock and timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
14.5.1 General timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
14.5.2 Control timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
14.5.3 External clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
14.6 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
14.6.1 RAM and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
14.6.2 Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
14.7 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
14.7.1 Functional EMS (Electromagnetic susceptibility) . . . . . . . . . . . . . . . . . . . . . . . . . 115
14.7.2 Electromagnetic interference (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
14.7.3 Absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . . . . . . . . 116
14.8 I/O port pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
14.8.1 General characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
14.8.2 Output driving current . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
14.9 Control pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
14.9.1 Asynchronous RESET pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
14.10Communication interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
14.10.1 USB - universal bus interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
14.10.2 SCI - serial communication interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
14.10.3 I2C - Inter IC control interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
14.118-bit ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
15 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
15.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145. . . 128
15.2 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
4/145
Table of Contents
15.3 Soldering and glueability information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
16 Device configuration and ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
16.1 Option Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
16.2 Device ordering information and transfer of customer code . . . . . . . . . . . . . . . . . . . . . . . 134
16.3 Development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
16.3.1 Evaluation tools and starter kits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
16.3.2 Development and debugging tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
16.3.3 Programming tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
16.3.4 Order codes for ST7263B development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
16.4 ST7 application notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
17 Known limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.1 PA2 limitation with OCMP1 enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.2 Unexpected reset fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.3 USB behavior with LVD disabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.4 I2C multimaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.5 Halt mode power consumption with ADC on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
17.6 SCI wrong break duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
18 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
145
5/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
1 Introduction
The ST7263B microcontrollers form a sub-family regulator and transceivers (no external compo-
of the ST7 MCUs dedicated to USB applications. nents are needed).
The devices are based on an industry-standard 8- – 8-bit analog-to-digital converter (ADC) with 12
bit core and feature an enhanced instruction set. multiplexed analog inputs
They operate at a 24 MHz or 12 MHz oscillator fre-
quency. Under software control, the ST7263B – Industry standard asynchronous SCI serial inter-
MCUs may be placed in either Wait or Halt modes, face
thus reducing power consumption. The enhanced – Watchdog
instruction set and addressing modes afford real
– 16-bit timer featuring an external clock input, 2
programming potential. In addition to standard 8-
Input Captures, 2 Output Compares with Pulse
bit data management, the ST7263B MCUs feature Generator capabilities
true bit manipulation, 8x8 unsigned multiplication
and indirect addressing modes. The devices in- – Fast I²C multimaster interface
clude an ST7 Core, up to 32Kbytes of program – Low voltage reset (LVD) ensuring proper power-
memory, up to 1024 bytes of RAM, 27 I/O lines on or power-off of the device
and the following on-chip peripherals:
The ST72F63B devices are Flash versions. They
– USB low speed interface with 3 endpoints with support programming in IAP mode (in-application
programmable in/out configuration using the programming) via the on-chip USB interface.
DMA architecture with embedded 3.3V voltage
Figure 1. General block diagram
INTERNAL
CLOCK
OSCIN OSC/3
OSCILLATOR
OSCOUT
I²C
OSC/4 or OSC/2
for USB2)
VDD PA[7:0]
POWER PORT A
(8 bits)
VSS SUPPLY
16-BIT TIMER
WATCHDOG
PORT B
ADDRESS AND DATA BUS
PB[7:0]
RESET CONTROL (8 bits)
ADC1)
8-BIT CORE PD[7:0]
ALU (8 bits)
PORT D
LVD
SCI PC[2:0]
VPP/TEST PROGRAM (3 bits)
(UART)
MEMORY
VDDA (32K bytes)
USB SIE USBDP
VSSA RAM USBDM
(1024 bytes) USBVCC
1) ADC channels:
12 on 48-pin devices (Port B and Port D[3:0])
8 on 34 and 32-pin devices (Port B)
None on 24-pin devices
2) 12 or 24 MHz OSCIN frequency required to generate 6 MHz USB clock.
3) The drive from USBVCC is sufficient to only drive an external pull-up in additoin to the internal transceiver
6/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
2 Pin description
Figure 2. 48-pin LQFP package pinout
PA1(25mA)/SDA/ICCDATA
PA2(25mA)/SCL/ICCCLK
PD3/AIN11
PD2/AIN10
PA0/MCO
PD1/AIN9
PD0/AIN8
PD7
PD6
PD5
PD4
NC
48 47 46 45 44 43 42 41 40 39 38 37
VSSA 1 36 PA3/EXTCLK
USBDP 2 35 PA4/ICAP1/IT1
USBDM 3 34 PA5/ICAP2/IT2
USBVCC 4 33 PA6/OCMP1/IT3
VDDA 5 32 PA7/OCMP2/IT4
VDD 6 31 PB0(10mA)/AIN0
OSCOUT 7 30 PB1(10mA)/AIN1
OSCIN 8 29 PB2(10mA)/AIN2
VSS 9 28 PB3(10mA)/AIN3
USBOE/PC2 10 27 PB4(10mA)/AIN4/IT5
NC 11 26 PB5(10mA)/AIN5/IT6
NC 12 25 VPP/TEST
13 14 15 16 17 18 19 20 21 22 23 24
RESET
AIN6/IT7/PB6(10mA)
TDO/PC1
RDI/PC0
NC
NC
NC
NC
NC
NC
NC
AIN7/IT8/PB7(10mA)
7/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
PA1(25mA)/SDA/ICCDATA
PA2(25mA)/SCL/ICCCLK
PD31)/AIN11
PD21)/AIN10
PD11)/AIN9
PD01)/AIN8
PD71)
PD61)
PD51)
PD41)
40 39 38 37 36 35 34 33 32 31
PA0/MCO 1 30 PA3/EXTCLK
VSSA 2 29 PA4/ICAP1/IT1
USBDP 3 28 PA5/ICAP2/IT2
USBDM 4 27 PA6/OCMP1/IT3
USBVCC 5 26 PA7/OCMP2/IT4
VDDA 6 25 PB0(10mA)/AIN0
VDD 7 24 PB1(10mA)/AIN1
OSCOUT 8 23 PB2(10mA)/AIN2
OSCIN 9 22 PB3(10mA)/AIN3
VSS 10 21 PB4(10mA)/AIN4/IT5
11 12 13 14 15 16 17 18 19 20
VPP/TEST
IT6/AIN5/PB5(10mA)
IT7/AIN6/PB6(10mA)
USBOE/PC2
RDI/PC0
TDO/PC1
NC
NC
RESET
IT8/AIN7/PB7(10mA)
Note:
1. Port D functions are not available on the 8K version of the QFN40 package (ST7263BK2)
and should not be connected.
8/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
VDD 34 VDDA
1
OSCOUT 33 USBVCC
2
OSCIN 32 USBDM
3
VSS 4 31 USBDP
PC2/USBOE 5 30 VSSA
PC1/TDO 6 29 PA0/MCO
PC0/RDI 7 28 PA1(25mA)/SDA/ICCDATA
RESET 8 27 NC
NC 9 26 NC
AIN7/IT8/PB7(10mA) 10 25 NC
AIN6/PB6/IT7(10mA) 11 24 PA2(25mA)/SCL/ICCCLK
VPP/TEST 12 23 PA3/EXTCLK
AIN5/IT6/PB5(10mA) 13 22 PA4/ICAP1/IT1
AIN4/IT5/PB4(10mA) 14 21 PA5/ICAP2/IT2
AIN3/PB3(10mA) 15 20 PA6/OCMP1/IT3
AIN2/PB2(10mA) 16 19 PA7/OCMP2/IT4
AIN1/PB1(10mA) 17 18 PB0(10mA)/AIN0
VDD 1 VDDA
32
OSCOUT 2 31 USBVCC
OSCIN 3 30 USBDM
VSS 4 29 USBDP
PC2/USBOE 5 28 VSSA
PC1/TDO 6 27 PA0/MCO
PC0/RDI 7 26 PA1(25mA)/SDA/ICCDATA
RESET 8 25 NC
AIN7/IT8/PB7(10mA) 9 24 NC
AIN6/IT7/PB6(10mA) 10 23 PA2(25mA)/SCL/ICCCLK
VPP/TEST 11 22 PA3/EXTCLK
AIN5/IT6/PB5(10mA) 12 21 PA4/ICAP1/IT1
AIN4/IT5/PB4(10mA) 13 20 PA5/ICAP2/IT2
AIN3/PB3(10mA) 14 19 PA6/OCMP1/IT3
AIN2/PB2(10mA) 15 18 PA7/OCMP2/IT4
AIN1/PB1/(10mA) 16 17 PB0(10mA)/AIN0
9/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
VDD 1 24 USBVcc
OSCOUT 2 23 USBDM
OSCIN 3 22 USBDP
VSS 4 21 VSSA
TDO/PC1 5 20 PA0/MCO
RDI/PC0 6 19 PA1(25mA)/SDA/ICCDATA
RESET/ 7 18 PA2(25mA)/SCL/ICCCLK
IT7/PB6(10mA) 8 17 PA3/EXTCLK
VPP/TEST 9 16 PA4/ICAP1/IT1
PB3(10mA) 10 15 PA5/ICAP2/IT2
PB2(10mA) 11 14 PA7/OCMP2/IT4
USBOE/PB1(10mA) 12 13 PB0(10mA)
RESET (see Note 1): bidirectional. This active low Note 1: Adding two 100 nF decoupling capacitors
signal forces the initialization of the MCU. This on the Reset pin (respectively connected to VDD
event is the top priority non maskable interrupt. and VSS) will significantly improve product electro-
This pin is switched low when the Watchdog is trig- magnetic susceptibility performance.
gered or the VDD is low. It can be used to reset ex- Note 2: To enhance the reliability of operation, it is
ternal peripherals. recommended that VDDA and VDD be connected to-
OSCIN/OSCOUT: input/output oscillator pin. gether on the application board. This also applies
These pins connect a parallel-resonant crystal, or to VSSA and VSS.
an external source, to the on-chip oscillator. Note 3: The USBOE alternate function is mapped
VDD/VSS (see Note 2): main power supply and on port C2 in 32/34/48 pin devices. In SO24 devic-
Ground voltages. es it is mapped on Port B1.
VDDA/VSSA (see Note 2): power supply and Note 4: The timer OCMP1 alternate function is
ground voltages for analog peripherals. mapped on Port A6 in 32/34/48 pin devices. In
Alternate Functions: Several pins of the I/O ports SO24 devices it is not available.
assume software programmable alternate func-
tions as shown in the pin description.
10/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Type
function
LQFP48
Input Output
SDIP32
Output
QFN40
Input
(after
float
wpu
ana
OD
PP
reset)
int
1 1 7 6 VDD S Power supply voltage (4V - 5.5V)
2 2 8 7 OSCOUT O Oscillator output
3 3 9 8 OSCIN I Oscillator input
4 4 10 9 VSS S Digital ground
5 5 11 10 PC2/USBOE I/O CT X X Port C2 USB Output Enable
SCI Transmit Data Out-
6 6 12 13 PC1/TDO I/O CT X X Port C1
put
7 7 13 14 PC0/RDI I/O CT X X Port C0 SCI Receive Data Input
8 8 14 15 RESET I/O X X Reset
- 9 15 16 NC -- Not connected
- - 16 17 NC -- Not connected
- - - 18 NC -- Not connected
- - - 19 NC -- Not connected
- - - 20 NC -- Not connected
- - - 21 NC -- Not connected
- - - 22 NC -- Not connected
9 10 17 23 PB7/AIN7/IT8 I/O CT 10mA X X X X Port B7 ADC analog input 7
10 11 18 24 PB6/AIN6/IT7 I/O CT 10mA X X X X Port B6 ADC analog input 6
11 12 19 25 VPP/TEST S Programming supply
12 13 20 26 PB5/AIN5/IT6 I/O CT 10mA X X X X Port B5 ADC analog input 5
13 14 21 27 PB4/AIN4/IT5 I/O CT 10mA X X X X Port B4 ADC analog input 4
14 15 22 28 PB3/AIN3 I/O CT 10mA X X X Port B3 ADC analog input 3
15 16 23 29 PB2/AIN2 I/O CT 10mA X X X Port B2 ADC analog input 2
16 17 24 30 PB1/AIN1 I/O CT 10mA X X X Port B1 ADC analog input 1
17 18 25 31 PB0/AIN0 I/O CT 10mA X X X Port B0 ADC analog Input 0
Timer Output Compare
18 19 26 32 PA7/OCMP2/IT4 I/O CT X X X Port A7
2
Timer Output Compare
19 20 27 33 PA6/OCMP1/IT3 I/O CT X X X Port A6
1
20 21 28 34 PA5/ICAP2/IT2 I/O CT X X X Port A5 Timer Input Capture 2
21 22 29 35 PA4/ICAP1/IT1 I/O CT X X X Port A4 Timer Input Capture 1
22 23 30 36 PA3/EXTCLK I/O CT X X Port A3 Timer External Clock
I²C serial clock, ICC
23 24 31 38 PA2/SCL/ICCCLK I/O CT 25mA X T Port A2
Clock
- - 32 39 PD01)/AIN8 I/O CT X X X Port D0 ADC analog Input 8
11/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Type
function
LQFP48
Input Output
SDIP32
Output
QFN40
Input
(after
float
wpu
ana
OD
PP
reset)
int
- - 33 40 PD11)/AIN9 I/O CT X X X Port D1 ADC analog Input 9
- - 34 41 PD21) /AIN10 I/O CT X X X Port D2 ADC analog Input 10
- - 35 42 PD31)/AIN11 I/O CT X X X Port D3 ADC analog Input 11
1)
- - 36 43 PD4 I/O CT X X Port D4
- - 37 44 PD51) I/O CT X X Port D5
1)
- - 38 45 PD6 I/O CT X X Port D6
- - 39 46 PD71) I/O CT X X Port D7
- 25 - - NC -- Not connected
24 26 - - NC -- Not connected
25 27 - - NC -- Not connected
I²C serial data, ICC
26 28 40 47 PA1/SDA/ICCDATA I/O CT 25mA X T Port A1
Data
27 29 1 48 PA0/MCO I/O CT X X Port A0 Main Clock Output
28 30 2 1 VSSA S Analog ground
29 31 3 2 USBDP I/O USB bidirectional data (data +)
30 32 4 3 USBDM I/O USB bidirectional data (data -)
31 33 5 4 USBVCC 2) O USB power supply 2)
32 34 6 5 VDDA S Analog supply voltage
Note:
1. Port D functions are not available on the 8K version of the QFN40 package (ST7263BK2) and should not be connect-
ed.
2. The drive from USBVcc is sufficient to only drive an external pull-up in addition to the internal transceiver.
Input Output
Output
Input
(after reset)
float
wpu
ana
OD
PP
int
12/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Type
Input Output
Output
Pin Name Function Alternate Function
SO24
Input
(after reset)
float
wpu
ana
OD
PP
int
8 PB6/IT7 I/O CT 10mA X X X X Port B6
9 VPP/TEST S Programming supply
10 PB3 I/O CT 10mA X X X Port B3
11 PB2 I/O CT 10mA X X X Port B2
12 PB1/USBOE I/O CT 10mA X X X Port B1 USB Output Enable
13 PB0 I/O CT 10mA X X X Port B0
14 PA7/OCMP2/IT4 I/O CT X X X Port A7 Timer Output Compare 2
15 PA5/ICAP2/IT2 I/O CT X X X Port A5 Timer Input Capture 2
16 PA4/ICAP1/IT1 I/O CT X X X Port A4 Timer Input Capture 1
17 PA3/EXTCLK I/O CT X X Port A3 Timer External Clock
PA2/SCL/ I²C serial clock,
18 I/O CT 25mA X T Port A2
ICCCLK ICC Clock
19 PA1/SDA/ICCDATA I/O CT 25mA X T Port A1 I²C serial data, ICC Data
20 PA0/MCO I/O CT X X Port A0 Main Clock Output
21 VSSA S Analog ground
22 USBDP I/O USB bidirectional data (data +)
23 USBDM I/O USB bidirectional data (data -)
24 USBVCC O USB power supply
13/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
14/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
15/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
16/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
4.1 Introduction
The ST7 dual voltage High Density Flash be erased independently to avoid unnecessary
(HDFlash) is a non-volatile memory that can be erasing of the whole Flash memory when only a
electrically erased as a single block or by individu- partial erasing is required.
al sectors and programmed on a byte-by-byte ba- The first two sectors have a fixed size of 4 Kbytes
sis using an external VPP supply. (see Figure 8). They are mapped in the upper part
The HDFlash devices can be programmed and of the ST7 addressing space so the reset and in-
erased off-board (plugged in a programming tool) terrupt vectors are located in Sector 0 (F000h-
or on-board using ICP (in-circuit programming) or FFFFh).
IAP (in-application programming).
Table 6. Sectors available in Flash devices
The array matrix organisation allows each sector
to be erased and reprogrammed without affecting Flash size (bytes) Available sectors
other [Link] features
4K Sector 0
■ 3 Flash programming modes:
8K Sectors 0,1
– Insertion in a programming tool. In this mode,
all sectors including option bytes can be pro- > 8K Sectors 0,1, 2
grammed or erased.
– ICP (in-circuit programming). In this mode, all 4.2.1 Read-Out protection
sectors including option bytes can be pro-
grammed or erased without removing the de- Read-Out protection, when selected, provides a
vice from the application board. protection against Program Memory content ex-
– IAP (in-application programming) In this traction and against write access to Flash memo-
mode, all sectors except Sector 0, can be pro- ry. Even if no protection can be considered as to-
grammed or erased without removing the de-
vice from the application board and while the tally unbreakable, the feature provides a very high
application is running. level of protection for a general purpose microcon-
■ ICT (in-circuit testing) for downloading and troller.
executing user application test patterns in RAM In Flash devices, this protection is removed by re-
■ Read-Out protection programming the option. In this case, the entire
■ Register access security system (RASS) to
program memory is first automatically erased and
prevent accidental programming or erasing the device can be reprogrammed.
Read-Out protection selection depends on the de-
4.2 Structure vice type:
– In Flash devices it is enabled and removed
The Flash memory is organised in sectors and can through the FMP_R bit in the option byte.
be used for both code and data storage.
– In ROM devices it is enabled by mask option
Depending on the overall Flash memory size in the specified in the Option List.
microcontroller device, there are up to three user
sectors (see Table 6). Each of these sectors can
17/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
18/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ICC Cable
APPLICATION BOARD
10 8 6 4 2
APPLICATION
RESET SOURCE
See Note 2
10kΩ
APPLICATION
RESET
ICCCLK
ICCDATA
OSC1
ICCSEL/VPP
OSC2
VSS
VDD
I/O
ST7
Notes:
1. If the ICCCLK or ICCDATA pins are only used agement IC with open drain output and pull-up
as outputs in the application, no signal isolation is resistor > 1K, no additional components are need-
necessary. As soon as the Programming Tool is ed. In all cases the user must ensure that no exter-
plugged to the board, even if an ICC session is not nal reset is generated by the application during the
in progress, the ICCCLK and ICCDATA pins are ICC session.
not available for the application. If they are used as 3. The use of Pin 7 of the ICC connector depends
inputs by the application, isolation such as a serial on the Programming Tool architecture. This pin
resistor has to implemented in case another de- must be connected when using most ST Program-
vice forces the signal. Refer to the Programming ming Tools (it is used to monitor the application
Tool documentation for recommended resistor val- power supply). Please refer to the Programming
ues. Tool manual.
2. During the ICC session, the programming tool 4. Pin 9 has to be connected to the OSC1 or OS-
must control the RESET pin. This can lead to con- CIN pin of the ST7 when the clock is not available
flicts between the programming tool and the appli- in the application or if the selected clock option is
cation reset circuit if it drives more than 5mA at not programmed in the option byte. ST7 devices
high level (push pull output or pull-up resistor<1K). with multioscillator capability need to have OSC2
A schottky diode can be used to isolate the appli- grounded in this case.
cation RESET circuit in this case. When using a
classical RC network with R > 1K or a reset man-
19/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
4.5 IAP (in-application programming) This register is reserved for use by programming
This mode uses a BootLoader program previously tool software. It controls the Flash programming
stored in Sector 0 by the user (in ICP mode or by and erasing operations.
plugging the device in a programming tool).
This mode is fully controlled by user software. This
allows it to be adapted to the user application, (us-
er-defined strategy for entering programming
mode, choice of communications protocol used to
fetch the data to be stored, etc.). For example, it is
possible to download code from the SPI, SCI or
other type of serial interface and program it in the
Flash. IAP mode can be used to program any of
the Flash sectors except Sector 0, which is write/
erase protected to allow recovery in case errors
occur during the programming operation.
20/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
15 PCH 8 7 PCL 0
PROGRAM COUNTER
RESET VALUE = RESET VECTOR @ FFFEh-FFFFh
7 0
1 1 1 H I N Z C CONDITION CODE REGISTER
RESET VALUE = 1 1 1 X 1 X X X
15 8 7 0
STACK POINTER
RESET VALUE = STACK HIGHER ADDRESS
X = Undefined value
21/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Bit 2 = N Negative
The 8-bit Condition Code register contains the in- This bit is set and cleared by hardware. It is repre-
terrupt mask and four flags representative of the sentative of the result sign of the last arithmetic,
result of the instruction just executed. This register logical or data manipulation. It is a copy of the 7th
can also be handled by the PUSH and POP in- bit of the result.
structions. 0: The result of the last operation is positive or null.
These bits can be individually tested and/or con- 1: The result of the last operation is negative
trolled by specific instructions. (that is, the most significant bit is a logic 1).
This bit is accessed by the JRMI and JRPL instruc-
Bit 4 = H Half carry tions.
This bit is set by hardware when a carry occurs be-
tween bits 3 and 4 of the ALU during an ADD or Bit 1 = Z Zero
ADC instruction. It is reset by hardware during the
same instructions. This bit is set and cleared by hardware. This bit in-
0: No half carry has occurred. dicates that the result of the last arithmetic, logical
1: A half carry has occurred. or data manipulation is zero.
0: The result of the last operation is different from
This bit is tested using the JRH or JRNH instruc- zero.
tion. The H bit is useful in BCD arithmetic subrou- 1: The result of the last operation is zero.
tines.
This bit is accessed by the JREQ and JRNE test
instructions.
Bit 3 = I Interrupt mask
This bit is set by hardware when entering in inter-
rupt or by software to disable all interrupts except Bit 0 = C Carry/borrow
the TRAP software interrupt. This bit is cleared by This bit is set and cleared by hardware and soft-
software. ware. It indicates an overflow or an underflow has
0: Interrupts are enabled. occurred during the last arithmetic operation.
1: Interrupts are disabled. 0: No overflow or underflow has occurred.
1: An overflow or underflow has occurred.
This bit is controlled by the RIM, SIM and IRET in-
structions and is tested by the JRM and JRNM in- This bit is driven by the SCF and RCF instructions
structions. and tested by the JRC and JRNC instructions. It is
also affected by the “bit test and branch”, shift and
Note: Interrupts requested while I is set are rotate instructions.
latched and can be processed when I is cleared.
By default an interrupt routine is not interruptible
22/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
@ 0100h
SP
SP SP
Y
CC CC CC
A A A
X X X
PCH PCH PCH
SP SP
PCL PCL PCL
PCH PCH PCH PCH PCH
SP
@ 017Fh PCL PCL PCL PCL PCL
23/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
7.1 Reset
The Reset procedure is used to provide an orderly 7.1.3 External reset
software start-up or to exit low power modes. The external reset is an active low input signal ap-
Three reset modes are provided: a low voltage plied to the RESET pin of the MCU.
(LVD) reset, a watchdog reset and an external re- As shown in Figure 15, the RESET signal must
set at the RESET pin. stay low for a minimum of one and a half CPU
A reset causes the reset vector to be fetched from clock cycles.
addresses FFFEh and FFFFh in order to be loaded An internal Schmitt trigger at the RESET pin is pro-
into the PC and with program execution starting vided to improve noise immunity.
from this point. Figure 12. Low voltage detector functional diagram
An internal circuitry provides a 4096 CPU clock cy-
cle delay from the time that the oscillator becomes RESET
active.
VDD LOW VOLTAGE
7.1.1 Low voltage detector (LVD) DETECTOR
INTERNAL
Low voltage reset circuitry generates a reset when RESET
VDD is: FROM
■ below VIT+ when VDD is rising, WATCHDOG
RESET
■ below VIT- when VDD is falling.
VIT+
VDD
Addresses $FFFE
24/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Reset (Cont’d)
Figure 15. Reset timing diagram
tDDR
VDD
OSCIN
tOXOV
fCPU
PC FFFE FFFF
Note: Refer to Section 14, "Electrical characteristics" for values of tDDR, tOXOV, VIT+, VIT- and Vhys
25/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
26/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
8 Interrupts
The ST7 core may be interrupted by one of two dif-
ferent methods: maskable hardware interrupts as Interrupts and low power mode
listed in Table 8, "Interrupt mapping" and a non-
maskable software interrupt (TRAP). The Interrupt All interrupts allow the processor to leave the Wait
processing flowchart is shown in Figure 19. low power mode. Only external and specific men-
tioned interrupts allow the processor to leave the
Halt low power mode (refer to the “Exit from Halt“
The maskable interrupts must be enabled clearing column in Table 8, "Interrupt mapping").
the I bit in order to be serviced. However, disabled
interrupts may be latched and processed when
they are enabled (see external interrupts subsec- External interrupts
tion). The pins ITi/PAk and ITj/PBk (i=1,2; j= 5,6; k=4,5)
When an interrupt has to be serviced: can generate an interrupt when a rising edge oc-
– Normal processing is suspended at the end of curs on this pin. Conversely, the ITl/PAn and ITm/
the current instruction execution. PBn pins (l=3,4; m= 7,8; n=6,7) can generate an
interrupt when a falling edge occurs on this pin.
– The PC, X, A and CC registers are saved onto
the stack. Interrupt generation will occur if it is enabled with
the ITiE bit (i=1 to 8) in the ITRFRE register and if
– The I bit of the CC register is set to prevent addi- the I bit of the CCR is reset.
tional interrupts.
– The PC is then loaded with the interrupt vector of
the interrupt to service and the first instruction of Peripheral interrupts
the interrupt service routine is fetched (refer to Different peripheral interrupt flags in the status
Table 8, "Interrupt mapping" for vector address- register are able to cause an interrupt when they
es). are active if both:
The interrupt service routine should finish with the – The I bit of the CC register is cleared.
IRET instruction which causes the contents of the
– The corresponding enable bit is set in the control
saved registers to be recovered from the stack.
register.
Note: As a consequence of the IRET instruction,
If any of these two conditions is false, the interrupt
the I bit will be cleared and the main program will is latched and thus remains pending.
resume.
Clearing an interrupt request is done by one of the
two following operations:
Priority management – Writing “0” to the corresponding bit in the status
By default, a servicing interrupt cannot be inter- register.
rupted because the I bit is set by hardware enter-
– Accessing the status register while the flag is set
ing in interrupt routine.
followed by a read or write of an associated reg-
In the case several interrupts are simultaneously ister.
pending, a hardware priority defines which one will
Notes:
be serviced first (see Table 8, "Interrupt map-
ping"). 1. The clearing sequence resets the internal latch.
A pending interrupt (i.e. waiting to be enabled) will
therefore be lost if the clear sequence is executed.
Non-maskable software interrupts
2. All interrupts allow the processor to leave the
This interrupt is entered when the TRAP instruc- Wait low power mode.
tion is executed regardless of the state of the I bit.
3. Exit from Halt mode may only be triggered by an
It will be serviced according to the flowchart on
External Interrupt on one of the ITi ports (PA4-PA7
Figure 19.
and PB4-PB7), an end suspend mode Interrupt
coming from USB peripheral, or a reset.
27/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Interrupts (Cont’d)
Figure 19. Interrupt processing flowchart
FROM RESET
N
BIT I SET
Y N
INTERRUPT
N
IRET
STACK PC, X, A, CC
Y SET I BIT
LOAD PC FROM INTERRUPT VECTOR
EXECUTE INSTRUCTION
Exit Vector
Source Register Priority
N° Description from
block label order address
Halt
RESET Reset Highest yes FFFEh-FFFFh
N/A
TRAP Software Interrupt Priority no FFFCh-FFFDh
FLASH Flash Start Programming Interrupt yes FFFAh-FFFBh
USB End Suspend mode ISTR FFF8h-FFF9h
yes
1 ITi External Interrupts ITRFRE FFF6h-FFF7h
2 TIMER Timer Peripheral Interrupts TIMSR FFF4h-FFF5h
I²CSR1
3 I²C I²C Peripheral Interrupts FFF2h-FFF3h
I²CSR2 Lowest no
4 SCI SCI Peripheral Interrupts SCISR Priority FFF0h-FFF1h
5 USB USB Peripheral Interrupts ISTR FFEEh-FFEFh
28/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Interrupts (Cont’d)
29/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
9.1 Introduction
To give a large measure of flexibility to the applica- Figure 20. Halt mode flowchart
tion in terms of power consumption, two main pow-
er saving modes are implemented in the ST7.
After a RESET, the normal operating mode is se- HALT INSTRUCTION
lected by default (Run mode). This mode drives
the device (CPU and embedded peripherals) by
means of a master clock which is based on the
main oscillator frequency divided by 3 (fCPU). OSCILLATOR OFF
PERIPH. CLOCK OFF
From Run mode, the different power saving
modes may be selected by setting the relevant CPU CLOCK OFF
register bits or by calling the specific ST7 software I-BIT CLEARED
instruction whose action depends on the oscillator
status.
30/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
OR SERVICE INTERRUPT
31/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
10 I/O ports
10.1 Introduction
The I/O ports offer different functional modes: tivity is given independently according to the de-
– Transfer of data through digital inputs and out- scription mentioned in the ITRFRE interrupt regis-
puts and for specific pins ter.
– Analog signal input (ADC) Each pin can independently generate an Interrupt
request.
– Alternate signal input/output for the on-chip pe-
ripherals Each external interrupt vector is linked to a dedi-
cated group of I/O port pins (see Interrupts sec-
– External interrupt generation tion). If more than one input pin is selected simul-
An I/O port consists of up to 8 pins. Each pin can taneously as an interrupt source, this is logically
be programmed independently as a digital input ORed. For this reason if one of the interrupt pins is
(with or without interrupt generation) or a digital tied low, the other ones are masked.
output. Output mode
The pin is configured in output mode by setting the
10.2 Functional description corresponding DDR register bit (see Table 7).
Each port is associated to 2 main registers: In this mode, writing “0” or “1” to the DR register
– Data Register (DR) applies this digital value to the I/O pin through the
latch. Therefore, the previously saved value is re-
– Data Direction Register (DDR) stored when the DR register is read.
Each I/O pin may be programmed using the corre- Note: The interrupt function is disabled in this
sponding register bits in DDR register: bit X corre- mode.
sponding to pin X of the port. The same corre-
spondence is used for the DR register.
Digital alternate function
Table 9. I/O pin functions
When an on-chip peripheral is configured to use a
DDR MODE
pin, the alternate function is automatically select-
ed. This alternate function takes priority over
0 Input standard I/O programming. When the signal is
1 Output coming from an on-chip peripheral, the I/O pin is
automatically configured in output mode (push-pull
or open drain according to the peripheral).
Input modes
When the signal is going to an on-chip peripheral,
The input configuration is selected by clearing the the I/O pin has to be configured in input mode. In
corresponding DDR register bit. this case, the pin’s state is also digitally readable
In this case, reading the DR register returns the by addressing the DR register.
digital value applied to the external I/O pin. Notes:
Note 1: All the inputs are triggered by a Schmitt 1. Input pull-up configuration can cause an unex-
trigger. pected value at the input of the alternate peripher-
Note 2: When switching from input mode to output al input.
mode, the DR register should be written first to 2. When the on-chip peripheral uses a pin as input
output the correct value as soon as the port is con- and output, this pin must be configured as an input
figured as an output. (DDR = 0).
Interrupt function Warning: The alternate function must not be acti-
vated as long as the pin is configured as an input
When an I/O is configured as an Input with Inter-
rupt, an event on this I/O can generate an external with interrupt in order to avoid generating spurious
interrupts.
Interrupt request to the CPU. The interrupt sensi-
32/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
33/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 22. PA0, PA3, PA4, PA5, PA6, PA7 and PD[7:4] configuration
ALTERNATE ENABLE
ALTERNATE 1 VDD
OUTPUT
0 P-BUFFER
DR VDD
PULL-UP
LATCH
DATA BUS
ALTERNATE ENABLE
DDR
LATCH PAD
DDR SEL
N-BUFFER
1 DIODES
DR SEL
ALTERNATE ENABLE
VSS
ALTERNATE INPUT 0
CMOS SCHMITT TRIGGER
34/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ALTERNATE ENABLE
ALTERNATE 1
OUTPUT
0
DR
LATCH
DDR
LATCH
DATA BUS
PAD
DDR SEL
N-BUFFER
DR SEL 1
ALTERNATE ENABLE
0 VSS
CMOS SCHMITT TRIGGER
35/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
PB0 without pull-up push-pull Analog input (ADC) CH[3:0] = 000 (ADCCSR)
PB3 without pull-up push-pull Analog input (ADC) CH[3:0]= 011 (ADCCSR)
36/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ANALOG ENABLE
DATA BUS
(ADC)
1
DR SEL
ALTERNATE ENABLE
DIGITAL ENABLE
0 VSS
ALTERNATE INPUT
37/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ALTERNATE ENABLE
ALTERNATE 1 VDD
OUTPUT
0
P-BUFFER
DR VDD
PULL-UP
LATCH
ALTERNATE ENABLE
DATA BUS
DDR
LATCH PAD
DDR SEL
N-BUFFER
DR SEL 1 DIODES
ALTERNATE ENABLE
0 VSS
ALTERNATE INPUT
38/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
10.3.4 Port D
Table 14. Port D description
*Reset State
39/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Related documentation
AN 970: SPI communication between ST7 and EEPROM
AN1045: S/W implementation of I2C bus master
AN1048: Software LCD driver
40/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
11 Miscellaneous register
Address: 0009h — Read/Write 1: Divide-by-2 enabled and CPU clock frequency is
Reset value: 0000 0000 (00h) halved.
7 0 Bit 1 = USBOE USB enable.
If this bit is set, the port PC2 (PB1 on SO24) out-
- - - - - SMS USBOE MCO puts the USB output enable signal (at “1” when the
ST7 USB is transmitting data).
Bit 7:3 = Reserved Unused bits 7-4 are set.
Bit 2 = SMS Slow Mode Select. Bit 0 = MCO Main Clock Out selection
This bit is set by software and only cleared by hard- This bit enables the MCO alternate function on the
ware after a reset. If this bit is set, it enables the use PA0 I/O port. It is set and cleared by software.
of an internal divide-by-2 clock divider (refer to Fig- 0: MCO alternate function disabled (I/O pin free for
ure 18 on page 26). The SMS bit has no effect on general-purpose I/O)
the USB frequency. 1: MCO alternate function enabled (fCPU on I/O
port)
0: Divide-by-2 disabled and CPU clock frequency
is standard
41/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
12 On-chip peripherals
RESET
WDGA T6 T5 T4 T3 T2 T1 T0
7-BIT DOWNCOUNTER
42/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
43/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
WDGCR WDGA T6 T5 T4 T3 T2 T1 T0
0Ch
Reset value 0 1 1 1 1 1 1 1
44/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
45/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
fCPU
MCU-PERIPHERAL INTERFACE
8 high 8 low
8-bit 8 8 8 8 8 8 8 8
buffer
high
high
high
high
low
low
low
low
EXEDG
16
OVERFLOW
OUTPUT COMPARE EDGE DETECT ICAP1
DETECT
CIRCUIT CIRCUIT1 pin
CIRCUIT
LATCH1 OCMP1
pin
ICF1 OCF1 TOF ICF2 OCF2 TIMD 0 0
(Control/Status Register) LATCH2 OCMP2
CSR pin
ICIE OCIE TOIE FOLV2 FOLV1 OLVL2 IEDG1 OLVL1 OC1E OC2E OPM PWM CC1 CC0 IEDG2 EXEDG
(See note)
TIMER INTERRUPT Note: If IC, OC and TO interrupt requests have separate vectors
then the last OR is not present (See device Interrupt Vector Table)
46/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
47/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
Note: The MCU is in reset state when the internal reset signal is high, when it is low the MCU is running.
48/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
49/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
TIMER CLOCK
ICAPi PIN
ICAPi FLAG
50/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
51/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
52/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
TIMER CLOCK
TIMER CLOCK
53/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
54/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ICAP1
Figure 37. Pulse Width Modulation mode timing example with 2 Output Compare functions
COUNTER 34E2 FFFC FFFD FFFE 2ED0 2ED1 2ED2 34E2 FFFC
Note: On timers with only one Output Compare register, a fixed frequency PWM signal can be generated
using the output compare and the counter overflow to define the pulse length.
55/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
56/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
12.2.5 Interrupts
Enable Exit Exit
Event
Interrupt event control from from
flag
bit Wait Halt
Input Capture 1 event/Counter reset in PWM mode ICF1
ICIE
Input Capture 2 event ICF2
Output Compare 1 event (not available in PWM mode) OCF1 Yes No
OCIE
Output Compare 2 event (not available in PWM mode) OCF2
Timer Overflow event TOF TOIE
Note: The 16-bit timer interrupt events are connected to the same interrupt vector (see Interrupts chap-
ter). These events generate an interrupt if the corresponding Enable Control Bit is set and the interrupt
mask in the CC register is reset (RIM instruction).
57/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
58/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Bit 6 = OC2E Output Compare 2 Pin Enable. Note: If the external clock pin is not available, pro-
This bit is used only to output the signal from the gramming the external clock configuration stops
timer on the OCMP2 pin (OLV2 in Output Com- the counter.
pare mode). Whatever the value of the OC2E bit,
the Output Compare 2 function of the timer re-
Bit 1 = IEDG2 Input Edge 2.
mains active.
This bit determines which type of level transition
0: OCMP2 pin alternate function disabled (I/O pin
on the ICAP2 pin will trigger the capture.
free for general-purpose I/O).
0: A falling edge triggers the capture.
1: OCMP2 pin alternate function enabled.
1: A rising edge triggers the capture.
59/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
60/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
7 0 MSB LSB
MSB LSB
61/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Output Compare 2 Low Register (OC2LR) Alternate Counter Low Register (ACLR)
Read/Write Read Only
Reset value: 0000 0000 (00h) Reset value: 1111 1100 (FCh)
This is an 8-bit register that contains the low part of This is an 8-bit register that contains the low part of
the value to be compared to the CLR register. the counter value. A write to this register resets the
counter. An access to this register after an access
7 0 to CSR register does not clear the TOF bit in the
CSR register.
MSB LSB
7 0
MSB LSB
62/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
63/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
64/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
TDO
RDI
CR1
R8 T8 SCID M WAKE PCE PS PIE
WAKE
TRANSMIT UP RECEIVER RECEIVER
CONTROL UNIT CONTROL CLOCK
CR2 SR
TIE TCIE RIE ILIE TE RE RWU SBK TDRE TC RDRF IDLE OR NF FE PE
SCI
INTERRUPT
CONTROL
TRANSMITTER
CLOCK
TRANSMITTER RATE
CONTROL
fCPU
/16 /PR
BRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
65/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Start
Idle Frame Bit
Start
Idle Frame Bit
66/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
67/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
68/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
69/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
70/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
RDI LINE
sampled values
Sample
clock 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
6/16
7/16 7/16
One bit time
71/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
72/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
73/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
74/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
75/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
76/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
77/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ENDPOINT
REGISTERS CPU
USBDM
Transceiver Address,
SIE DMA
USBDP data buses
and interrupts
3.3V
USBVCC Voltage INTERRUPT
Regulator REGISTERS MEMORY
USBGND
78/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
101111
Endpoint 2 TX
101000
100111
Endpoint 2 RX
100000
011111
Endpoint 1 TX
011000
010111
Endpoint 1 RX
010000
001111
Endpoint 0 TX
001000
000111
Endpoint 0 RX
DA15-6,000000 000000
79/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
7 0 7 0
80/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
7 0
Bit 0 = FRES Force reset.
SUS DOV CTR ERR IOVR ESU RES SOF
This bit is set by software to force a reset of the
PM RM M M M SPM ETM M
USB interface, just as if a RESET sequence came
from the USB.
0: Reset not forced
Bits 7:0 = These bits are mask bits for all interrupt 1: USB interface reset forced.
condition bits included in the ISTR. Whenever one The USB is held in RESET state until software
of the IMR bits is set, if the corresponding ISTR bit clears this bit, at which point a “USB-RESET” in-
is set, and the I bit in the CC register is cleared, an terrupt will be generated if enabled.
interrupt request is generated. For an explanation
81/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Bits 6:0 = ADD[6:0] Device address, 7 bits. Bits 5:4 = STAT_TX[1:0] Status bits, for transmis-
Software must write into this register the address sion transfers.
sent by the host during enumeration. These bits contain the information about the end-
Note: This register is also reset when a USB reset point status, which are listed below:
is received from the USB bus or forced through bit STAT_TX1 STAT_TX0 Meaning
FRES in the CTLR register. DISABLED: transmission
0 0
transfers cannot be executed.
Endpoint n Register A (EPnRA) STALL: the endpoint is stalled
0 1 and all transmission requests
Read / Write result in a STALL handshake.
Reset value: 0000 xxxx (0xh) NAK: the endpoint is naked
1 0 and all transmission requests
7 0 result in a NAK handshake.
VALID: this endpoint is ena-
ST_ DTOG STAT STAT TBC TBC TBC TBC 1 1
bled for transmission.
OUT _TX _TX1 _TX0 3 2 1 0
82/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Bits 5:4 = STAT_RX [1:0] Status bits, for reception Bit 7 = Forced by hardware to 1.
transfers.
These bits contain the information about the end- Bits 6:4 = Refer to the EPnRB register for a de-
point status, which are listed below: scription of these bits.
STAT_RX1 STAT_RX0 Meaning
DISABLED: reception Bits 3:0 = Forced by hardware to 0.
0 0 transfers cannot be exe-
cuted.
STALL: the endpoint is
stalled and all reception
0 1
requests result in a
STALL handshake.
83/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
84/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
85/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
SDA
MSB ACK
SCL
1 2 8 9
START STOP
CONDITION CONDITION
VR02119B
86/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
COMPARATOR
INTERRUPT
87/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
88/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
89/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
sion. The resetting of the BUSY bit can then be to correctly handle a second interrupt during the
handled in a similar manner as the BERR flag 9th pulse of a transmitted byte.
being set. – ARLO: Detection of an arbitration lost condition.
– AF: Detection of a non-acknowledge bit. In this In this case the ARLO bit is set by hardware (with
case, the EVF and AF bits are set by hardware an interrupt if the ITE bit is set and the interface
with an interrupt if the ITE bit is set. To resume, goes automatically back to slave mode (the M/SL
set the START or STOP bit. bit is cleared).
The AF bit is cleared by reading the I2CSR2 reg- Note: In all these cases, the SCL line is not held
ister. However, if read before the completion of low; however, the SDA line can remain low if the
the transmission, the AF flag will be set again, last bits transmitted are all 0. While AF=1, the SCL
thus possibly generating a new interrupt. Soft- line may be held low due to SB or BTF flags that
ware must ensure either that the SCL line is back are set at the same time. It is then necessary to re-
at 0 before reading the SR2 register, or be able lease both lines by software.
90/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Slave Transmitter
S Address A Data1 A Data2 A DataN NA P
.....
EV1 EV3 EV3 EV3 EV3-1 EV4
Master Receiver
S Address A Data1 A Data2 A DataN NA P
.....
EV5 EV6 EV7 EV7 EV7
Master Transmitter
S Address A Data1 A Data2 A DataN A P
.....
EV5 EV6 EV8 EV8 EV8 EV8
Legend:
S=Start, P=Stop, A=Acknowledge, NA=Non-acknowledge
EVx=Event (with interrupt if ITE=1)
EV1: EVF=1, ADSL=1, cleared by reading the SR1 register.
EV2: EVF=1, BTF=1, cleared by reading the SR1 register followed by reading the DR register.
EV3: EVF=1, BTF=1, cleared by reading the SR1 register followed by writing the DR register.
EV3-1: EVF=1, AF=1, BTF=1; AF is cleared by reading the SR1 register. The BTF is cleared
by releasing the lines (STOP=1, STOP=0) or by writing the DR register (DR=FFh).
Note: If lines are released by STOP=1, STOP=0, the subsequent EV4 is not seen.
EV4: EVF=1, STOPF=1, cleared by reading the SR2 register.
EV5: EVF=1, SB=1, cleared by reading the SR1 register followed by writing the DR register.
EV6: EVF=1, cleared by reading the SR1 register followed by writing the CR register
(for example PE=1).
EV7: EVF=1, BTF=1, cleared by reading the SR1 register followed by reading the DR register.
EV8: EVF=1, BTF=1, cleared by reading the SR1 register followed by writing the DR register.
91/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
12.5.6 Interrupts
Figure 46. Event flags and interrupt generation
BTF ITE
ADSL
SB
AF INTERRUPT
STOPF
ARLO
BERR EVF
*
* EVF can also be set by EV6 or an error from the SR2 register.
The I²C interrupt events are connected to the They generate an interrupt if the corresponding
same interrupt vector (see Interrupts chapter). Enable Control Bit is set and the I-bit in the CC
register is reset (RIM instruction).
92/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
93/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
94/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Bit 0 = SB Start bit (Master mode). es the arbitration of the bus to another master. An
This bit is set by hardware as soon as the Start interrupt is generated if ITE=1. It is cleared by soft-
condition is generated (following a write ware reading SR2 register or by hardware when
START=1). An interrupt is generated if ITE=1. It is the interface is disabled (PE=0).
cleared by software reading SR1 register followed After an ARLO event the interface switches back
by writing the address byte in DR register. It is also automatically to Slave mode (M/SL=0).
cleared by hardware when the interface is disa-
bled (PE=0). The SCL line is not held low while ARLO=1.
0: No Start condition 0: No arbitration lost detected
1: Start condition generated 1: Arbitration lost detected
Note:
– In a Multimaster environment, when the interface
I²C Status Register 2 (SR2) is configured in Master Receive mode it does not
Read Only perform arbitration during the reception of the
Reset value: 0000 0000 (00h) Acknowledge Bit. Mishandling of the ARLO bit
from the I2CSR2 register may occur when a sec-
7 0 ond master simultaneously requests the same
data from the same slave and the I2C master
0 0 0 AF STOPF ARLO BERR GCAL does not acknowledge the data. The ARLO bit is
then left at 0 instead of being set.
95/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
96/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Note: Refer to Section 17, "Known limitations" for information regarding a limitation on the alternate func-
tion on pin PA2 (SCL).
97/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
fCPU fADC
DIV 4
AIN0
HOLD CONTROL
AIN1 RADC
ANALOG ANALOG TO DIGITAL
MUX CONVERTER
AINx CADC
ADCDR D7 D6 D5 D4 D3 D2 D1 D0
98/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
99/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
100/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Address Register
7 6 5 4 3 2 1 0
(Hex.) Name
0Ah DR AD7 .. AD0
0Bh CSR COCO 0 ADON 0 CH3 CH2 CH1 CH0
101/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
13 Instruction set
13.1 ST7 addressing modes so, most of the addressing modes may be subdi-
vided in two sub-modes called long and short:
The ST7 Core features 17 different addressing
modes which can be classified in 7 main groups: – Long addressing mode is more powerful be-
cause it can use the full 64 Kbyte address space,
Addressing mode Example however it uses more bytes and more CPU cy-
Inherent nop cles.
Immediate ld A,#$55 – Short addressing mode is less powerful because
it can generally only access page zero (0000h -
Direct ld A,$55 00FFh range), but the instruction size is more
Indexed ld A,($55,X) compact, and faster. All memory to memory in-
Indirect ld A,([$55],X) structions use short addressing modes only
(CLR, CPL, NEG, BSET, BRES, BTJT, BTJF,
Relative jrne loop INC, DEC, RLC, RRC, SLL, SRL, SRA, SWAP)
Bit operation bset byte,#5 The ST7 Assembler optimizes the use of long and
short addressing modes.
The ST7 instruction set is designed to minimize
the number of bytes required per instruction: To do
Table 25. ST7 addressing mode overview
Pointer Pointer
Destination/ Length
Mode Syntax address size
source (bytes)
(Hex.) (Hex.)
Inherent nop +0
Immediate ld A,#$55 +1
Short Direct ld A,$10 00..FF +1
Long Direct ld A,$1000 0000..FFFF +2
+ 0 (with X register)
No Offset Direct Indexed ld A,(X) 00..FF
+ 1 (with Y register)
Short Direct Indexed ld A,($10,X) 00..1FE +1
Long Direct Indexed ld A,($1000,X) 0000..FFFF +2
Short Indirect ld A,[$10] 00..FF 00..FF byte +2
Long Indirect ld A,[$10.w] 0000..FFFF 00..FF word +2
Short Indirect Indexed ld A,([$10],X) 00..1FE 00..FF byte +2
Long Indirect Indexed ld A,([$10.w],X) 0000..FFFF 00..FF word +2
1)
Relative Direct jrne loop PC-128/PC+127 +1
Relative Indirect jrne [$10] PC-128/PC+1271) 00..FF byte +2
Bit Direct bset $10,#7 00..FF +1
Bit Indirect bset [$10],#7 00..FF 00..FF byte +2
Bit Direct Relative btjt $10,#7,skip 00..FF +2
Bit Indirect Relative btjt [$10],#7,skip 00..FF 00..FF byte +3
Note 1. At the time the instruction is executed, the Program Counter (PC) points to the instruction follow-
ing JRxx.
102/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
103/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
104/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Using a pre-byte
The instructions are described with one to four These prebytes enable instruction in Y as well as
bytes. indirect addressing modes to be implemented.
In order to extend the number of available op- They precede the opcode of the instruction in X or
codes for an 8-bit CPU (256 opcodes), three differ- the instruction using direct addressing mode. The
ent prebyte opcodes are defined. These prebytes prebytes are:
modify the meaning of the instruction they pre- PDY 90 Replace an X based instruction using
cede. immediate, direct, indexed, or inherent
The whole instruction becomes: addressing mode by a Y one.
PC-2 End of previous instruction PIX 92 Replace an instruction using direct, di-
rect bit, or direct relative addressing
PC-1 Prebyte mode to an instruction using the corre-
PC Opcode sponding indirect addressing mode.
PC+1 Additional word (0 to 2) according to the It also changes an instruction using X
number of bytes required to compute the indexed addressing mode to an instruc-
effective address tion using indirect X indexed addressing
mode.
PIY 91 Replace an instruction using X indirect
indexed addressing mode by a Y one.
105/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
106/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Instruction groups(Cont’d)
Mnemo Description Function/Example Dst Src H I N Z C
NOP No Operation
OR OR operation A=A+M A M N Z
pop CC CC M H I N Z C
107/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
14 Electrical characteristics
ST7 PIN
CL
108/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Directly connecting the RESET and I/O pins to VDD or VSS could damage the device if an unintentional internal reset
is generated or an unexpected change of the I/O configuration occurs (for example, due to a corrupted program counter).
To guarantee safe operation, this connection has to be done through a pull-up or pull-down resistor (typical: 4.7kΩ for
RESET, 10kΩ for I/Os). Unused I/O pins must be tied in the same way to VDD or VSS according to their reset configuration.
2. IINJ(PIN) must never be exceeded. This is implicitly insured if VIN maximum is respected. If VIN maximum cannot be
respected, the injection current must be limited externally to the IINJ(PIN) value. A positive injection is induced by VIN>VDD
while a negative injection is induced by VIN<VSS. For true open-drain pads, there is no positive injection current, and the
corresponding VIN maximum must always be respected
3. All power (VDD) and ground (VSS) lines must always be connected to the external supply.
4. Negative injection disturbs the analog performance of the device. In particular, it induces leakage currents throughout
the device including the analog inputs. To avoid undesirable effects on the analog functions, care must be taken:
- Analog input pins must have a negative injection less than 0.8 mA (assuming that the impedance of the analog voltage
is lower than the specified limits)
- Pure digital pins must have a negative injection less than 1.6mA. In addition, it is recommended to inject the current as
far as possible from the analog input pins.
5. When several inputs are submitted to a current injection, the maximum ΣIINJ(PIN) is the absolute sum of the positive
and negative injected currents (instantaneous values). These results are based on characterization with ΣIINJ(PIN) maxi-
mum current injection on four I/O port pins of the device.
6. True open drain I/O port pins do not accept positive injection.
14.2.3 Thermal characteristics
Symbol Ratings value Unit
TSTG Storage temperature range -65 to +150 °C
TJ Maximum junction temperature: See section 15.2 on page 131 for TJmax
109/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 51. fCPU maximum operating frequency versus VDD supply voltage
fCPU [MHz]
8
FUNCTIONALITY
GUARANTEED
FROM 4 TO 5.5 V
FUNCTIONALITY
NOT GUARANTEED 2
IN THIS AREA
0
2.5 3.0 3.5 4 4.5 5 5.5 SUPPLY VOLTAGE [V]
110/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Oscillator and watchdog running. All others peripherals disabled.
2. USB Transceiver and ADC are powered down.
3. Not tested in production, guaranteed by characterization.
4. CPU in Halt mode. Current consumption of external pull-up (1.5Kohms to USBVCC) and pull-down (15Kohms to
VSSA) not included.
Figure 52. Typ. IDD in Run at 4 and 8 MHz fCPU Figure 53. Typ. IDD in Wait at 4 and 8 MHz fCPU
Idd Run (mA) at fcpu=4 and 8MHz Idd WFI (mA) at fcpu=4 and 8MHz
12 10
10
8
8
Idd Run (mA)
6
6
4
4
8MHz
8MHz 2
2
4MHz
4MHz
0 0
4 4.2 4.4 4.6 4.8 5 5.2 5.4 4 4.2 4.4 4.6 4.8 5 5.2 5.4
Vdd (V) Vdd (V)
111/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Data based on typical application software.
2. Time measured between interrupt event and interrupt vector fetch. ∆tc(INST) is the number of tCPU cycles needed to finish
the current instruction execution.
Note:
1. Not tested in production, guaranteed by characterization.
112/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Note:
1. Data based on design simulation and/or technology characteristics, not tested in production.
Figure 54. Typical application with an external clock source
90%
VOSCINH
10%
VOSCINL
OSCOUT
Not connected internally
fOSC
EXTERNAL
IL
CLOCK SOURCE
OSCIN
ST72XXX
i2
fOSC
CL1 OSCIN
RESONATOR RF
CL2
OSCOUT
ST72XXX
113/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Note:
1. Guaranteed by design. Not tested in production.
VPP VPP
PROGRAMMING
TOOL
10kΩ
ST72XXX ST72XXX
Note:
1. When the ICP mode is not required by the application, VPP pin must be tied to VSS.
114/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
115/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Note:
1. Data based on characterization results, not tested in production.
[Link] Static and dynamic Latch-Up ■ DLU: Electrostatic discharges (one positive
■ LU: 3 complementary static tests are required then one negative test) are applied to each pin
on 10 parts to assess the latch-up performance. of 3 samples when the micro is running to
A supply overvoltage (applied to each power assess the latch-up performance in dynamic
supply pin) and a current injection (applied to mode. Power supplies are set to the typical
each input, output and configurable I/O pin) are values, the oscillator is connected as near as
performed on each sample. This test conforms possible to the pins of the micro and the
to the EIA/JESD 78 IC latch-up standard. For component is put in reset mode. This test
more details, refer to the application note conforms to the IEC1000-4-2 and SAEJ1752/3
AN1181. standards. For more details, refer to the
application note AN1181.
Electrical sensitivities
Symbol Parameter Conditions Class 1)
LU Static latch-up class TA=+25°C A
DLU Dynamic latch-up class VDD=5.5V, fOSC=4MHz, TA=+25°C A
Note:
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the JEDEC spec-
ifications, that means when a device belongs to Class A it exceeds the JEDEC standard. B Class strictly covers all the
JEDEC criteria (international standard).
116/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Configuration not recommended, all unused pins must be kept at a fixed voltage: using the output mode of the I/O for
example or an external pull-up or pull-down resistor (see Figure 57). Static peak current value taken at a fixed VIN value,
based on design simulation and technology characteristics, not tested in production. This value depends on VDD and tem-
perature values.
2. The RPU pull-up equivalent resistor is based on a resistive transistor (corresponding IPU current characteristics de-
scribed in Figure 58).
3. To generate an external interrupt, a minimum pulse width has to be applied on an I/O port pin configured as an external
interrupt source.
80
70
Pull-up current (µA)
60
50
40
30
20
10
0
4 4.2 4.4 4.6 4.8 5 5.2 5.4
Vdd (V)
117/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Rpu (KOhm)
140
120
100
Rpu (KOhm)
80
60
40
20
0
4 4.2 4.4 4.6 4.8 5 5.2 5.4
Vdd (V)
B(0:7) V
Output low level voltage for a very high sink I/O
pin when up to 2 pins are sunk at the same time, IIO=+25mA 1.5
Port A1, Port A2
Output high level voltage for an I/O pin IIO=-10mA VDD-1.3 3)
VOH 2)
when up to 8 pins are sourced at same time IIO=-1.6mA VDD-0.8
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 14.2 and the sum of IIO (I/
O ports and control pins) must not exceed IVSS.
2. The IIO current sourced must always respect the absolute maximum rating specified in Section 14.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVDD. True open drain I/O pins does not have VOH.
3. The minimum VOH value (with IIO=-10mA) depends on the chosen device type. For Flash devices, min = VDD - 1.3 V
and for ROM devices, min = VDD - 1.7 V
118/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 60. VOL standard VDD=5 V Figure 61. VOL high sink VDD=5 V
Vol_2mA (mV) at Vdd=5V Vol_10mA (V) at Vdd=5V
250 1.6
1.4
200
1.2
Vol_2mA (mV)
Vol_10mA (V)
150
1
100 0.8
0.6
50
0.4
0 0.2
1 1.5 2 2.5 3 3.5 4 5 7 9 11 13 15 17 19
Iio (mA) Iio (mA)
Figure 62. VOL very high sink VDD=5 V Figure 64. VOL high sink vs. VDD
Vol_25mA (V) at Vdd=5V Vol_10mA (V) at Iio=10mA
0.6
0.95
0.59
0.58
0.85
0.57
Vol_25mA (V)
Vol_10mA (V)
0.75 0.56
0.55
0.65
0.54
0.55 0.53
0.52
0.45
0.51
0.35 0.5
15 20 25 30 35 4 4.2 4.4 4.6 4.8 5 5.2 5.4
Iio (mA) Vdd (V)
Figure 63. VOL standard vs. VDD Figure 65. VOL very high sink vs. VDD
125
0.75
Vol_25mA (V)
Vol_2mA (mV)
120
0.7
115
0.65
110
0.6
105
4 4.2 4.4 4.6 4.8 5 5.2 5.4
4 4.2 4.4 4.6 4.8 5 5.2 5.4
Vdd (V) Vdd (V)
119/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 66. |VDD-VOH| @ VDD=5 V (low current) Figure 67. |VDD-VOH| @ VDD=5 V (high current)
|Vdd - Voh| (V) at Vdd=5V |Vdd - Voh| (V) at Vdd=5V
0.3 2
1.8
0.25
1.6
1.4
0.2
|Vdd - Voh| (V)
0.15 1
0.8
0.1
0.6
0.4
0.05
0.2
0 0
1 1.5 2 2.5 3 3.5 4 2 7 12 17
-Iio (mA) -Iio (mA)
0.6
|Vdd - Voh| (V)
0.145
0.5
0.14
0.4
0.135
0.3
0.13
0.2
0.125
0.1
0.12
4 4.2 4.4 4.6 4.8 5 5.2 5.4 0
Vdd (V) 4 4.2 4.4 4.6 4.8 5 5.2 5.4
Vdd (V)
120/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
2. The IIO current sunk must always respect the absolute maximum rating specified in Section 14.2 and the sum of IIO (I/
O ports and control pins) must not exceed IVSS.
3. The RON pull-up equivalent resistor is based on a resistive transistor. This data is based on characterization results,
not tested in production.
4. To guarantee the reset of the device, a minimum pulse has to be applied to RESET pin. All short pulses applied on
RESET pin with a duration below th(RSTL)in can be ignored.
121/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
VDD ST72XXX
0.01µF
1MΩ WATCHDOG
PULSE
GENERATOR
LVD RESET
VDD VDD
RON
USER 0.01µF 4.7kΩ INTERNAL
EXTERNAL RESET
RESET Filter
CIRCUIT
0.01µF
PULSE
WATCHDOG
GENERATOR
Required
Note 1:
– The reset network protects the device against parasitic resets.
– The output of the external reset circuit must have an open-drain output to drive the ST7 reset pad. Otherwise the
device can be damaged when the ST7 generates an internal reset (LVD or watchdog).
– Whatever the reset source is (internal or external), the user must ensure that the level on the RESET pin can go
below the VIL max. level specified in section 14.9.1 on page 121. Otherwise the reset will not be taken into account
internally.
– Because the reset circuit is designed to allow the internal RESET to be output in the RESET pin, the user must en-
sure that the current sunk on the RESET pin is less than the absolute maximum value specified for IINJ(RESET) in
section 14.2.2 on page 109.
Note 2: When the LVD is enabled, it is recommended not to connect a pull-up resistor or capacitor. A 10nF pull-down
capacitor is required to filter noise on the reset line.
Note 3: In case a capacitive power supply is used, it is recommended to connect a 1MΩ pull-down resistor to the RESET
pin to discharge any residual voltage induced by the capacitive effect of the power supply (this will add 5µA to the power
consumption of the MCU).
Note 4: Tips when using the LVD:
– 1. Check that all recommendations related to ICCCLK and reset circuit have been applied (see notes above).
– 2. Check that the power supply is properly decoupled (100nF + 10µF close to the MCU). Refer to AN1709 and
AN2017. If this cannot be done, it is recommended to put a 100nF + 1MΩ pull-down on the RESET pin.
– 3. The capacitors connected on the RESET pin and also the power supply are key to avoid any start-up marginality.
In most cases, steps 1 and 2 above are sufficient for a robust solution. Otherwise: replace 10nF pull-down on the
RESET pin with a 5µF to 20µF capacitor.”
122/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Differential
Data Lines Crossover
points
VCRS
VSS
tf tr
Note:
1. For more detailed information, please refer to Chapter 7 (Electrical) of the USB specification (version 1.1).
123/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. Data based on standard I2C protocol requirement, not tested in production.
2. The device must internally provide a hold time of at least 300ns for the SDA signal in order to bridge the undefined
region of the falling edge of SCL.
3. The maximum hold time of the START condition has only to be met if the interface does not stretch the low period of
SCL signal.
4. At 4MHz fCPU, max.I2C speed (400kHz) is not achievable. In this case, max. I2C speed will be approximately 260KHz.
124/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 73. Typical application with I2C Bus and timing diagram 1)
VDD VDD
SCK
Note:
1. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
Legend:
RP = External pull-up resistance
fSCL = I2C speed
NA = Not achievable
Notes:
– For speeds around 200 kHz, achieved speed can have ±5% tolerance
– For other speed ranges, achieved speed can have ±2% tolerance
The above variations depend on the accuracy of the external components used.
125/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
VDD
VT
0.6V
RAIN AINx
VAIN ADC
VT
CIO 0.6V IL
~2pF ±1µA
VDD
VDDA
0.1µF
VSSA
ST72XXX
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD-VSS=5V.
2. When VDDA and VSSA pins are not available on the pinout, the ADC refer to VDD and VSS.
3. Any added external serial resistor will downgrade the ADC accuracy (especially for resistance greater than 10kΩ). Data
based on characterization results, not tested in production.
4. The stabilization time of the AD converter is masked by the first tLOAD. The first conversion after the enable is then
always valid.
126/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ADC accuracy with VDD=5V, fCPU=8 MHz, fADC=4 MHz RAIN< 10kΩ
Symbol Parameter Typ Max 2) 3)
1) 1.5 2
|ET| Total unadjusted error
1) 0.5 1
|EO| Offset error
|EG| Gain Error 1) 0.5 1.5
|ED| Differential linearity error 1) 1 1.5
1) 1 1.5
|EL| Integral linearity error
Notes:
1. ADC Accuracy vs. Negative Injection Current:
For IINJ-=0.8mA, the typical leakage induced inside the die is 1.6µA and the effect on the ADC accuracy is a loss of 1 LSB
for each 10KΩ increase of the external analog source impedance. This effect on the ADC accuracy has been observed
under worst-case conditions for injection:
- negative injection
- injection to an Input with analog capability, adjacent to the enabled Analog Input
- at 5V VDD supply, and worst case temperature.
2. Data based on characterization results over the whole temperature range, not tested in production.
3. Data based on characterization results, to guarantee 99.73% within ± max value from 0°C to 70°C ( ± 3σ distribution
limits).
(2)
ET=Total Unadjusted Error: maximum deviation
ET between the actual and the ideal transfer curves.
7 (3) EO=Offset Error: deviation between the first actual
(1) transition and the first ideal one.
6
EG=Gain Error: deviation between the last ideal
5 transition and the last actual one.
EO EL ED=Differential Linearity Error: maximum deviation
4 between actual steps and the ideal one.
3 EL=Integral Linearity Error: maximum deviation
ED between any actual transition and the end point
2 correlation line.
1 LSBIDEAL
1
Vin (LSBIDEAL)
0
1 2 3 4 5 6 7 253 254 255 256
VSSA VDDA
127/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
15 Package characteristics
In order to meet environmental requirements, ST JESD97. The maximum ratings related to solder-
offers these devices in ECOPACK® packages. ing conditions are also marked on the inner box la-
These packages have a Lead-free second level in- bel.
terconnect. The category of second Level Inter- ECOPACK is an ST trademark. ECOPACK speci-
connect is marked on the package and on the in- fications are available at: [Link]
ner box label, in compliance with JEDEC Standard
Figure 76. 34-pin Plastic Small Outline Package, shrink 300-mil width
mm inches
Dim.
h x 45× Min Typ Max Min Typ Max
L A 2.464 2.642 0.097 0.104
A C
A1 A1 0.127 0.292 0.005 0.012
a B 0.356 0.483 0.014 0.019
B e
D C 0.231 0.318 0.009 0.013
17.72 18.05
D 0.698 0.711
9 9
E 7.417 7.595 0.292 0.299
e 1.016 0.040
10.16 10.41
E H H 0.400 0.410
0 4
h 0.635 0.737 0.025 0.029
α 0° 8° 0° 8°
L 0.610 1.016 0.024 0.040
Number of Pins
N 34
128/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 77. 32-pin Plastic Dual In-Line Package, shrink 400-mil width
mm inches
Dim.
Min Typ Max Min Typ Max
E eC
A 3.56 3.76 5.08 0.140 0.148 0.200
A1 0.51 0.020
A2 A
A2 3.05 3.56 4.57 0.120 0.140 0.180
mm inches
Dim.
D
h x 45× Min Typ Max Min Typ Max
L A 2.35 2.65 0.093 0.104
A
A1 C A1 0.10 0.30 0.004 0.012
a B 0.33 0.51 0.013 0.020
B e
C 0.23 0.32 0.009 0.013
D 15.20 15.60 0.599 0.614
E 7.40 7.60 0.291 0.299
e 1.27 0.050
H 10.00 10.65 0.394 0.419
h 0.25 0.75 0.010 0.030
E H α 0° 8° 0° 8°
L 0.40 1.27 0.016 0.050
Number of Pins
N 24
129/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
mm inches1)
Dim.
Min Typ Max Min Typ Max
D A A 1.60 0.063
D1 A2 A1 0.05 0.15 0.002 0.006
A2 1.35 1.40 1.45 0.053 0.055 0.057
A1
b 0.17 0.22 0.27 0.007 0.009 0.011
b C 0.09 0.20 0.004 0.008
D 9.00 0.354
D1 7.00 0.276
E1 E e
E 9.00 0.354
E1 7.00 0.276
e 0.50 0.020
c θ 0° 3.5° 7° 0° 3.5° 7°
L1
L 0.45 0.60 0.75 0.018 0.024 0.030
L
θ L1 1.00 0.039
Number of Pins
N 48
Note 1. values in inches are converted from
mm and rounded to 3 decimal digits.
Figure 80. 40-lead Very thin Fine pitch Quad Flat No-Lead Package
A2
SEATING
A3 mm inches1)
PLANE A1 Dim.
Min Typ Max Min Typ Max
D
A 0.80 0.90 1.00 0.031 0.035 0.039
A1 0.02 0.05 0.001 0.002
A2 0.65 1.00 0.026 0.039
A3 0.20 0.008
b 0.18 0.25 0.30 0.007 0.010 0.012
D 5.85 6.00 6.15 0.230 0.236 0.242
D2
D2 2.75 2.9 3.05 0.108 0.114 0.120
E 5.85 6 6.15 0.230 0.236 0.242
E2 E E2 2.75 2.9 3.05 0.108 0.114 0.120
e 0.50 0.020
PIN #1 ID TYPE C
RADIUS L 0.30 0.40 0.50 0.012 0.016 0.020
2 Number of Pins
1 N 40
L Note 1. values in inches are converted from mm
and rounded to 3 decimal digits.
b e
130/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Notes:
1. The power dissipation is obtained from the formula PD=PINT+PPORT where PINT is the chip internal power (IDDxVDD)
and PPORT is the port power dissipation determined by the user.
2. The average chip-junction temperature can be obtained from the formula TJ = TA + PD x RthJA.
131/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 81. Recommended wave soldering profile (with 37% Sn and 63% Pb)
250
COOLING PHASE
200 5 sec (ROOM TEMPERATURE)
SOLDERING
150 80°C PHASE
Temp. [°C]
100
PREHEATING
PHASE
50
0 Time [sec]
20 40 60 80 100 120 140 160
250
Tmax=220+/-5°C
for 25 sec
200
0 Time [sec]
100 200 300 400
132/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
133/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
134/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
135/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
ST72P63BH2T1 LQFP48
ST72P63BK2U1 QFN40
ST72P63BK2M1 8K FASTROM 384 SO34
ST72P63BK2B1 SDIP32
ST72P63BE2M1 SO24
ST72P63BK1M1 SO34
ST72P63BK1B1 4K FASTROM 384 SDIP32
ST72P63BE1M1 SO24
Note:
Contact ST sales office for product availability
136/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
137/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Customer: ............................................................................
Address: ............................................................................
............................................................................
Contact: ............................................................................
Phone No: ............................................................................
Reference: ............................................................................
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FASTROM: | 4K | 8K | 16K | 32K |
-----------------------------------------------------------------------------------------------------------------------------------------------------------
SO24: | [ ] ST72P63BE1M1 | [ ] ST72P63BE2M1 | [ ] ST72P63BE4M1 | [ ] ST72P63BE6M1 |
PSDIP32: | [ ] ST72P63BK1B1 | [ ] ST72P63BK2B1 | [ ] ST72P63BK4B1 | [ ] ST72P63BK6B1 |
SO34: | [ ] ST72P63BK1M1 | [ ] ST72P63BK2M1 | [ ] ST72P63BK4M1 | [ ] ST72P63BK6M1 |
QFN40: | | [ ] ST72P63BK2U1 | | [ ] ST72P63BD6U1 |
LQFP48: | | [ ] ST72P63BH2T1 | [ ] ST72P63BH4T1 | [ ] ST72P63BH6T1 |
-----------------------------------------------------------------------------------------------------------------------------------------------------------
DIE FORM: | 4K | 8K | 16K | 32K |
-----------------------------------------------------------------------------------------------------------------------------------------------------------
24-pin: | [ ] (as E1M1) | [ ] (as E2M1) | [ ] (as E4M1) | [ ] (as E6M1) |
32-pin: | [ ] (as K1B1) | [ ] (as K2B1) | [ ] (as K4B1) | [ ] (as K6B1) |
34-pin: | [ ] (as K1M1) | [ ] (as K2M1) | [ ] (as K4M1) | [ ] (as K6M1) |
40-pin: | | [ ] (as K2U1) | | [ ] (as D6U1) |
48-pin: | | [ ] (as H2T1) | [ ] (as H4T1) | [ ] (as H6T1) |
Date ............................................................................
Signature ............................................................................
Please download the latest version of this option list from: [Link]
138/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
139/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
140/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
141/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
17 Known limitations
17.1 PA2 limitation with OCMP1 enabled On reception of the NACK, ST7 can send a re-start
and Slave address to re-initiate communication
Description
This limitation affects only Rev B Flash devices 17.5 Halt mode power consumption with ADC
(with Internal Sales Type 72F63Bxxxxx$x7); it has
been corrected in Rev W Flash devices (with Inter- on
nal Sales Type 72F63Bxxxxx$x9). Description
Note: Refer to Figure 83 on page 143 If the A/D converter is being used when Halt mode
When Output Compare 1 function (OCMP1) on pin is entered, the power consumption in Halt mode
PA6 is enabled by setting the OC1E bit in the may exceed the maximum specified in the datash-
TCR2 register, pin PA2 is also affected. eet.
In particular, PA2 is switched to its alternate func- Workaround
tion mode, SCL. As a consequence, the PA2 pin is Switch off the ADC by software (ADON=0) before
forced to be floating (steady level of I2C clock) executing a HALT instruction.
even if port configuration (PADDR+PADR) has set
it as output low. However, it can be still used as an
input or can be controlled by the I2C cell when en- 17.6 SCI wrong break duration
abled (where I2C is available). Description
A single break character is sent by setting and re-
17.2 Unexpected reset fetch setting the SBK bit in the SCICR2 register. In
Description some cases, the break character may have a long-
er duration than expected:
If an interrupt request occurs while a "POP CC" in-
struction is executed, the interrupt controller does - 20 bits instead of 10 bits if M=0
not recognise the source of the interrupt and, by - 22 bits instead of 11 bits if M=1.
default, passes the RESET vector address to the In the same way, as long as the SBK bit is set,
CPU. break characters are sent to the TDO pin. This
Workaround may generate one break more than expected.
To solve this issue, a "POP CC" instruction must Occurrence
always be preceded by a "SIM" instruction. The occurrence of the problem is random and pro-
portional to the baudrate. With a transmit frequen-
17.3 USB behavior with LVD disabled cy of 19200 baud (fCPU=8MHz and SCI-
BRR=0xC9), the wrong break duration occurrence
Description is around 1%.
On 4K and 8K ROM devices (ST7263BK1M1, Workaround
ST72BK2M1, ST7263BKB1, ST7263BK2B1 only) If this wrong duration is not compliant with the
if the LVD is disabled, the USB is disabled by hard- communication protocol in the application, soft-
ware. So, the LVD is forced by ST to 0 (LVD ena- ware can request that an Idle line be generated
bled). Refer to the ST7263B option list for details. before the break character. In this case, the break
duration is always correct assuming the applica-
17.4 I2C multimaster tion is not doing anything between the idle and the
break. This can be ensured by temporarily disa-
Description bling interrupts.
In multimaster configurations, if the ST7 I2C re- The exact sequence is:
ceives a START condition from another I2C mas-
ter after the START bit is set in the I2CCR register - Disable interrupts
and before the START condition is generated by - Reset and Set TE (IDLE request)
the ST7 I2C, it may ignore the START condition - Set and Reset SBK (Break Request)
from the other I2C master. In this case, the ST7 - Re-enable interrupts
master will receive a NACK from the other device.
142/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Figure 83. Identifying silicon revision from device marking and box label
The silicon revision can be identified either by Rev letter or obtained via a trace code.
Follow the procedure below:
1. Identify the silicon revision letter from either the device package or the box label.
For example, “B”, etc.
2. If the revision letter is not present, obtain the silicon revision by contacting your local ST
office with the trace code information printed on either the box label or the device package.
Silicon Rev
STMicroelectronics
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Trace code xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ST7xxxxxxxxx
TYPE xxxxxxxxxxx$x7
Total Qty XX
Trace code XXXXXXXXX XX XX
Marking
Bulk ID
B
XXXXXXXXXX Silicon Rev
XXXXXXXXXXXX
143/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
18 Revision history
Date Revision Main changes
New revision created by merging 32K Flash and non-32K Flash datasheets together
Memory Map, Figure 7, expanded to handle all devices and memory sizes
Operating conditions with LVD values modified, section 14.3.2 on page 110
Supply current characteristics values and notes updated, section 14.4 on page 111
IDD Run and Wait graphs replaced, Figure 52 and Figure 53 on page 111
Control timing characteristics modified, section 14.5.2 on page 112
Flash memory table notes and tPROG typical value updated, section 14.6.2 on page 114
Notes added for I/O Port Pin characteristics table, section 14.8.1 on page 117
Note for RPU modified, removing reference to data characterization, Section 14.8.1
IPU and RPU graphs added, Figure 58 and Figure 59 on page 118
Notes updated for USB low speed electrical characteristics
Output voltage/current graphs added, Figures 60-69
27-May-05 3.0
Thermal Characteristics added for SO24 and TQFP48 packages, section 15.2 on page 131
Important note added for OPT 3 Option Byte (LVD), section 16.1 on page 133
Supported Part Numbers table updated with full sales type codes, Table 29
Option List updated with all device options, page 138
Important notes updated with ‘USB behavior with LVD disabled’, section 17.3 on page 142
Clock block diagram redrawn, Figure 18 on page 26
DFU added to title and features list, page 1
Removed unnecessary notes related to Typical values (already mentioned in section 14.1.2
on page 108) in electrical characteristic tables sections: Section 14.3.2, Section 14.4, Sec-
tion 14.6.2, Section 14.8.1, Section 14.9.1 and Section 14.11
Added note for max values in ADC Accuracy, Section 14.11
Static Latch Up (LU) class tested only for TA=25°C, section [Link] on page 116
Flash memory minimum data retention increased to 40 years, section 14.6.2 on page 114
AF bit text modified concerning SCL, I2C Chapter Section 12.5.7, "Register description"
Reference made to the Flash Programming Reference Manual for Flash timing values
19-Sep-05 4.0 Reset pulse generated by WDG changed to 30µs, section 12.1 on page 42
Modified text in section 12.3 on page 64, adding Parity error as an interrupt
Added ECOPACK information in section 15 on page 128
Modified IS value and corresponding note in section 14.8.1 on page 117
32K and 8K QFN40 Packages added
06-Apr-06 5.0 4K SO24 Package added
TQFP package renamed to LQFP
Important Notes section renamed to Known Limitations, section 17 on page 142
03-Oct-06 6.0 New PA2 limitation added, section 17 on page 142
Figure 83. on page 143 added for silicon revision identification
Root part numbers added in datasheet header and in Table 1, "Device summary".
New 16K LQFP48 package added to product family.
Note added to VOH data in section 14.8.2 on page 118
20-Aug-07 7.0
List of supported partnumber availability updated, Table 29, "Supported part numbers"
Download address updated in Section 16.3.4, "Order codes for ST7263B development
tools" and Option list.
144/145
ST7263BDx ST7263BHx ST7263BKx ST7263BE
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE
SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN
PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT
SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
145/145