ST72321BAR7:8-bit MCU

The ST72F321B Flash and ST72321B ROM devices are members of the ST7 microcontroller family designed for mid-range applications.

All devices are based on a common industrystandard 8-bit core, featuring an enhanced instruction set and are available with Flash or ROM program memory. The ST7 family architecture offers both power and flexibility to software developers, enabling the design of highly efficient and compact application code.

The on-chip peripherals include an A/D converter, a PWM Autoreload timer, 2 general purpose timers, I2C bus, SPI interface and an SCI interface.

For power economy, microcontroller can switch dynamically into WAIT, SLOW, ACTIVE-HALT or HALT mode when the application is in idle or stand-by state.

Typical applications are consumer, home, office and industrial products.

Key Features

  • 1 Analog peripheral (low current coupling)10-bit ADC with up to 16 robust input ports
  • 3 Communications InterfacesSPI synchronous serial interfaceSCI asynchronous serial interfaceI2 C multimaster interface
  • Development ToolsFull hardware/software development packageIn-Circuit Testing capability
  • Memories32K to 60K dual voltage High Density Flash (HDFlash) or ROM with read-out protection capability. In-Application Programming and In-Circuit Programming for HDFlash devices1K to 2K RAMHDFlash endurance: 100 cycles, data retention: 40 years at 85°C
  • Interrupt ManagementNested interrupt controller14 interrupt vectors plus TRAP and RESETTop Level Interrupt (TLI) pin on 64-pin devices15/9 external interrupt lines (on 4 vectors)
  • Clock, Reset And Supply ManagementEnhanced low voltage supervisor (LVD) for main supply and auxiliary voltage detector (AVD) with interrupt capabilityClock sources: crystal/ceramic resonator oscillators, internal RC oscillator and bypass for external clockPLL for 2x frequency multiplicationFour Power Saving Modes: Halt, Active-Halt, Wait and Slow
  • 5 TimersMain Clock Controller with: Real time base, Beep and Clock-out capabilitiesConfigurable watchdog timerTwo 16-bit timers with: 2 input captures, 2 output compares, external clock input on one timer, PWM and pulse generator modes8-bit PWM Auto-reload timer with: 2 input captures, 4 PWM outputs, output compare and time base interrupt, external clock with event detector
  • Instruction Set8-bit Data Manipulation63 Basic Instructions17 main Addressing Modes8 x 8 Unsigned Multiply Instruction
  • Up to 48 I/O Ports48/32/24 multifunctional bidirectional I/O lines34/22/17 alternate function lines16/12/10 high sink outputs
Product Specifications
DescriptionVersionSize
DS4130: 64/44-pin 8-bit MCU with 32 to 60K Flash/ROM, ADC, five timers, SPI, SCI, I2C interface5.22 MB
Application Notes
DescriptionVersionSize
AN1812: A High Precision, Low Cost, Single Supply ADC for Positive and Negative Input Voltages1.3320 KB
AN1755: A High Resolution/Precision thermometer using ST7 and NE5551.377 KB
AN2390: A flexible universal battery charger1.2572 KB
AN1530: Accurate timebase for low-cost ST7 applications with internal RC oscillator1.469 KB
AN2389: An MCU-based low cost non-inverting buck-boost converter for battery chargers1.4127 KB
AN2017: DIFFERENT WAYS TO RESET ST7 MICROCONTROLLER1.3108 KB
AN1754: Data logging program for testing ST7 applications via ICC1.4129 KB
AN1577: Device firmware upgrade (DFU) implementation in ST7 USB devices1.4143 KB
AN1633: Device firmware upgrade (DFU) implementation in non-USB applications1.462 KB
AN976: Driving a buzzer through ST7 timer PWM function1.468 KB
AN979: Driving an analog keyboard with the ST7 ADC1.6139 KB
AN1709: EMC design guide for ST microcontrollers2.0843 KB
AN2271: Ekey-Udisk solution1.359 KB
AN1181: Electrostatic discharge sensitivity measurement1.649 KB
AN1502: Emulated data EEPROM with ST7 HDFlash memory1.542 KB
AN1477: Emulated data EEPROM with XFlash memory1.427 KB
AN985: Executing code in ST7 RAM1.452 KB
AN1796: Field updates for Flash based ST7 applications using a PC COMM port1.4141 KB
AN1712: GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART1.5105 KB
AN2197: Guidelines for migrating ST72F324 & ST72F321 applications to ST72F324B, ST72F321B or ST72F3251.486 KB
AN2200: Guidelines for migrating ST7LITE1x applications to ST7FLITE1xB1.6104 KB
AN1149: Handling suspend mode on a USB mouse1.4101 KB
AN1014: How to minimize the ST7 power consumption1.4252 KB
AN971: I2C communication between ST7 and M24CXX EEPROM1.668 KB
AN1576: In-Application Programming (IAP) drivers for ST7 HDFlash or XFlash MCUs1.469 KB
AN1278: LIN (Local Interconnect Network) solutions1.5297 KB
AN1047: Managing reception errors with the ST7 SCI peripheral1.420 KB
AN1131: Migrating applications from ST72511/311/314/124 to ST72521/321/3241.4210 KB
AN1040: Monitoring the VBUS signal for USB self-powered devices1.428 KB
AN1044: Multiple interrupt sources management for ST7 MCUs1.4100 KB
AN1575: On-board programming methods for XFlash and HDFlash ST7 MCUs1.467 KB
AN1077: Overview of enhanced CAN controllers for ST7 and ST9 MCUs1.580 KB
AN2511: PMBus™ interface using ST7 I²C3.2645 KB
AN1179: Programming ST7 Flash microcontrollers in remote ISP mode (In-Situ Programming)1.4165 KB
AN974: Real time clock with ST7 Timer Output Compare1.466 KB
AN969: SCI communication between ST7 and PC1.458 KB
AN1713: SMBus slave driver for ST7 I2C peripheral1.442 KB
AN1711: SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS1.3638 KB
AN970: SPI communication between ST7 and EEPROM1.563 KB
AN3084: ST7 10-bit A/D converter non-linearity at center of range1.352 KB
AN990: ST7 Benefits versus Industry Standard1.455 KB
AN1070: ST7 Checksum self-checking capability1.452 KB
AN1045: ST7 S/W implementation of I2C bus master1.4150 KB
AN972: ST7 Software SPI master communication1.437 KB
AN1046: ST7 UART emulation software1.4171 KB
AN910: ST7 and ST9 performance benchmarking2.5711 KB
AN1635: ST7 customer ROM code release information1.443 KB
AN980: ST7 keypad decoding techniques, implementing wake-up on keystroke1.545 KB
AN1039: ST7 math utility routines1.4171 KB
AN1105: ST7 pCAN peripheral driver1.7581 KB
AN1042: ST7 routine for I2C slave mode management1.489 KB
AN987: ST7 serial test controller programming1.576 KB
AN1048: ST7 software LCD driver5.3226 KB
AN1078: ST7 timer PWM duty cycle switch for true 0% or 100% duty cycle1.459 KB
AN1086: ST7/ST10/U435 CAN-do solutions for car multiplexing1.5146 KB
AN1068: Selecting between ROM, FASTROM and Flash for a microcontroller1.489 KB
AN886: Selecting between ROM, FASTROM and OTP for a microcontroller1.3124 KB
AN1504: Starting a PWM signal directly at high level using the ST7 16-bit timer1.4170 KB
AN2278: Temperature sensor application using ST LM1353.291 KB
AN1106: Translating assembly code from HC05 to ST71.677 KB
AN1636: Understanding and minimising ADC conversion errors1.4406 KB
AN1041: Using ST7 PWM signal to generate analog output (sinusoïd)1.6123 KB
AN982: Using ceramic resonators with the ST71.565 KB
AN1445: Using the ST7 SPI to emulate a 16-bit slave1.561 KB
AN1603: Using the ST7 USB device firmware upgrade development kit (DFU-DK)1.494 KB
AN1325: Using the ST7 USB low-speed library V4.2x1.4227 KB
AN1017: Using the ST7 Universal Serial Bus microncontroller1.6261 KB
AN986: Using the indirect addressing mode with ST71.437 KB
Technical Notes & Articles
DescriptionVersionSize
TN1163: Description of WLCSP for microcontrollers and recommendations for its use4.01 MB
User Manuals
DescriptionVersionSize
UM0015: ST7 8-bit MCU family user guide1.42 MB
UM0402: Single-phase multi tariff energy meter1.3587 KB
Programming Manuals
DescriptionVersionSize
PM0018: ST7 Flash programming quick reference guide6.4152 KB
PM0011: ST7 family Flash programming reference manual2.4747 KB
PM0012: ST7 family ICC protocol reference manual3.3892 KB
PM0002: ST7 family programming manual2.41 MB
Training Material
DescriptionVersionSize
ST7 Training Part 1 : Introduction1.04 MB
ST7 Training Part 2 : Core1.01 MB
ST7 Training Part 3 : Addressing Modes1.0524 KB
ST7 Training Part 4 : Assembly Toolchain1.0273 KB
ST7 Training Part 5 : Debugger1.0571 KB
ST7 Training Part 6 : Hardware Tools1.06 MB
ST7 Training Part 7 : Peripherals1.01 MB
ST7 Training Part 8 : Realizer1.0212 KB
ST7 Training Part 9 : Cosmic Compiler1.01 MB
Board Manufacturing Specifications
DescriptionVersionSize
Gerber files for PIR PCB (AN1828)1.029 KB
Product Certifications
DescriptionVersionSize
ST72F324B Qualification Certificate1.025 KB
Hardware Development Tools
Part NumberManufacturerDescription
ST7-D/RAISSTMicroelectronics;RaisonanceST7 MCU daughter board for use with Raisonance REva starter kits
ST7-EMU3ST3rd generation high-end emulation tool ST7-EMU3
ST7-SocketBoardSTProgramming socket board
STX-RLINKRaisonanceIn-circuit debugger/programmer for STM8, ST7, STM32, STR7 and STR9 microcontrollers
Software Development Tools
Part NumberManufacturerDescription
RIDE-STRRaisonanceRaisonance branded integrated development environment for ST7, STR7 and STR9 MCUs
STSW-ST7009STDFU Development Kit package (Device Firmware Upgrade).Contains all sources for the GUI and the DFU protocol layer.
STVD-ST7STST Visual IDE for developing ST7 applications
STVP-LIB-ST7STSTVP programming toolkit: C++ source files for creating PC programming interface
STVP-ST7STST Visual Programmer ST7
MCUs Embedded Software
Part NumberManufacturerDescription
STSW-ST7020STHDFlash IAP C-Driver Compatible with Metrowerks and Cosmic compilers.
STSW-ST7025STST7 USB Low Speed EvalKit Firmware
STSW-ST7029STST7 XFLASH IAP example with the ST7FOPTIONS-EVAL board
STSW-ST7030STXFlash IAP C-Driver Compatible with Metrowerks and Cosmic compilers.
STSW-ST7031STS/W Implementation of I2C Bus master
STSW-ST7032STChecksum self checking capability
STSW-ST7033STST72141 BLDC motor control software and flowchart example
STSW-ST7034STTranslating assembly code from HC05 to ST7
STSW-ST7035STHandling suspend mode on a USB mouse
STSW-ST7038STWorkaround to ISP mode limitation on the ST7MDT1-DVP2 and ST7MDT2-DVP2
STSW-ST7041STST7MC Three-Phase AC Induction Motor Ccontrol Software Library
STSW-ST7046STEkey-Udisk solution
STSW-ST7058STST Visual Develop (STVD 3.3.2), core debugger source files
STSW-ST7060STHalf Duplex USB-to-Serial bridge using the ST72611 USB microcontroller
STSW-ST7061STLIN (Local Interconnect Network) Solutions
STSW-ST7062STEmulated data EEPROM with ST7 HDFlash memory
STSW-ST7066STST7 Software Library
STSW-ST7079STST7 HDFLASH IAP example with the ST7MDT2-TRAIN board
STSW-ST7085STST7 math utility routines
STSW-ST7086STST7 routine for I2C slave mode management
STSW-ST7087STST7 UART emulation software
STSW-ST7088STST7 Software LCD driver
STSW-ST7089STST7 timer PWM duty cycle switch for true 0% or 100% duty cycle
STSW-ST7090STST7 pCAN Peripheral Driver
STSW-ST7091STSoftware Techniques for compensating ST7 ADC Errors
STSW-ST7092STGenerating a high resolution sinewave using ST7 PWMART
STSW-ST7093STSMBus Slave Driver for ST7 I2C Peripherals
STSW-ST7094STSoftware UART using ST7 12-Bit Autoreload Timer
STSW-ST7096STSCI communication between ST7 and PC
STSW-ST7097STSPI Communication between ST7 and EEPROM
STSW-ST7098STI2C Communication between ST7 and M24Cxx EEPROM
STSW-ST7099STST7 software SPI master communication
STSW-ST7100STReal time clock with ST7 timer output compare
STSW-ST7101STST7 - Driving an analog keyboard with the ST7 ADC
Sample & Buy
Part NumberQuantityUnit Price (US$) *PackagePacking TypeOperating Temperature (°C) (min)Operating Temperature (°C) (max)ECCN (EU)ECCN (US)Country of Origin
ST72F321BAR7T6--LQFP 64 10x10x1.4Tray-4085NECEAR99MALAYSIA
Quality & Reliability
Part NumberPackageGradeRoHS Compliance GradeMaterial Declaration**
ST72F321BAR7T6LQFP 64 10x10x1.4IndustrialEcopack2
64/44-pin 8-bit MCU with 32 to 60K Flash/ROM, ADC, five timers, SPI, SCI, I2C interface ST72321BJ6
circuit_diagram_11000_thumbnail.png ST72321BJ6
A High Precision, Low Cost, Single Supply ADC for Positive and Negative Input Voltages ST72264G1
A High Resolution/Precision thermometer using ST7 and NE555 ST72264G1
A flexible universal battery charger ST72264G1
Accurate timebase for low-cost ST7 applications with internal RC oscillator ST72264G1
An MCU-based low cost non-inverting buck-boost converter for battery chargers ST72264G1
DIFFERENT WAYS TO RESET ST7 MICROCONTROLLER ST72264G1
Data logging program for testing ST7 applications via ICC ST72264G1
Device firmware upgrade (DFU) implementation in ST7 USB devices ST72264G1
Device firmware upgrade (DFU) implementation in non-USB applications ST72264G1
Driving a buzzer through ST7 timer PWM function ST72264G1
Driving an analog keyboard with the ST7 ADC ST72264G1
EMC design guide for ST microcontrollers STM8L101G3
Ekey-Udisk solution STSW-ST7046
Electrostatic discharge sensitivity measurement STM8L101G3
Emulated data EEPROM with ST7 HDFlash memory ST72264G1
Emulated data EEPROM with XFlash memory ST72264G1
Executing code in ST7 RAM ST72264G1
Field updates for Flash based ST7 applications using a PC COMM port ST72264G1
GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART ST72264G1
Guidelines for migrating ST72F324 & ST72F321 applications to ST72F324B, ST72F321B or ST72F325 ST72264G1
Guidelines for migrating ST7LITE1x applications to ST7FLITE1xB ST72264G1
Handling suspend mode on a USB mouse ST72264G1
How to minimize the ST7 power consumption ST72264G1
I2C communication between ST7 and M24CXX EEPROM STSW-ST7098
In-Application Programming (IAP) drivers for ST7 HDFlash or XFlash MCUs ST72264G1
LIN (Local Interconnect Network) solutions ST72264G1
Managing reception errors with the ST7 SCI peripheral ST72264G1
Migrating applications from ST72511/311/314/124 to ST72521/321/324 ST72321BJ6
Monitoring the VBUS signal for USB self-powered devices ST72264G1
Multiple interrupt sources management for ST7 MCUs ST72264G1
On-board programming methods for XFlash and HDFlash ST7 MCUs ST72264G1
Overview of enhanced CAN controllers for ST7 and ST9 MCUs ST92F150CV1
PMBus™ interface using ST7 I²C STSW-ST7095
Programming ST7 Flash microcontrollers in remote ISP mode (In-Situ Programming) ST72264G1
Real time clock with ST7 Timer Output Compare ST72264G1
SCI communication between ST7 and PC ST72264G1
SMBus slave driver for ST7 I2C peripheral ST72264G1
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS ST72264G1
SPI communication between ST7 and EEPROM ST72264G1
ST7 10-bit A/D converter non-linearity at center of range ST72264G1
ST7 Benefits versus Industry Standard ST72264G1
ST7 Checksum self-checking capability ST72264G1
ST7 S/W implementation of I2C bus master ST72264G1
ST7 Software SPI master communication ST72264G1
ST7 UART emulation software ST72264G1
ST7 and ST9 performance benchmarking ST92F150CV1
ST7 customer ROM code release information ST72264G1
ST7 keypad decoding techniques, implementing wake-up on keystroke ST72264G1
ST7 math utility routines ST72264G1
ST7 pCAN peripheral driver STSW-ST7090
ST7 routine for I2C slave mode management ST72264G1
ST7 serial test controller programming ST72264G1
ST7 software LCD driver ST72264G1
ST7 timer PWM duty cycle switch for true 0% or 100% duty cycle ST72264G1
ST7/ST10/U435 CAN-do solutions for car multiplexing ST72264G1
Selecting between ROM, FASTROM and Flash for a microcontroller ST92F150CV1
Selecting between ROM, FASTROM and OTP for a microcontroller STR910FAW32
Starting a PWM signal directly at high level using the ST7 16-bit timer ST7-EMU3
Temperature sensor application using ST LM135 STSW-ST7047
Translating assembly code from HC05 to ST7 STSW-ST7034
Understanding and minimising ADC conversion errors ST72264G1
Using ST7 PWM signal to generate analog output (sinusoïd) ST72264G1
Using ceramic resonators with the ST7 ST72264G1
Using the ST7 SPI to emulate a 16-bit slave ST72264G1
Using the ST7 USB device firmware upgrade development kit (DFU-DK) ST72264G1
Using the ST7 USB low-speed library V4.2x ST72264G1
Using the ST7 Universal Serial Bus microncontroller ST72264G1
Using the indirect addressing mode with ST7 ST72264G1
Description of WLCSP for microcontrollers and recommendations for its use STM8L101G3
ST7 8-bit MCU family user guide ST72264G1
Single-phase multi tariff energy meter ST72264G1
ST7 Flash programming quick reference guide ST72264G1
ST7 family Flash programming reference manual ST72264G1
ST7 family ICC protocol reference manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1
ST7 family programming manual ST72264G1