ST7FOXF1, ST7FOXK1, ST7FOXK2 8-bit MCU with single voltage Flash memory, SPI, IC, ADC, timers Features Memories 4 to 8 Kbytes single voltage extended Flash (XFlash) Program memory with Read-Out Protection In-Circuit Programming and In-Application LQFP32 SDIP32 DIP20 SO20 programming (ICP and IAP) 6 timers Endurance: 1K write/erase cycles Configurable watchdog timer guaranteed Data retention: 20 years at 55 C Dual 8-bit Lite timers with prescaler, 1 real time base and 1 input capture 384 bytes RAM Dual 12-bit Auto-reload timers with 4 PWM Clock, Reset and Supply Management outputs, input capture, output compare, Low voltage supervisor (LVD) for safe dead-time generation and enhanced one power-on/off pulse mode functions Clock sources: Internal trimmable 8 MHz One 16-bit timer RC oscillator, auto wakeup internal low Communication interfaces: power - low frequency oscillator, crystal/ceramic resonator or external clock IC multimaster interface External reset source and watchdog reset SPI synchronous serial interface Five power saving modes: Halt, Active-Halt, A/D converter: up to 10 input channels Auto Wakeup from Halt, Wait and Slow Interrupt management I/O Ports 13 interrupt vectors plus TRAP and RESET Up to 24 multifunctional bidirectional I/Os Instruction set Up to 8 high sink outputs 8-bit data manipulation 63 basic instructions with illegal opcode detection 17 main addressing modes 8 x 8 unsigned multiply instructions Development tools Full HW/SW development package DM (Debug Module) February 2008 Rev 4 1/226 www.st.com 1Contents ST7FOXF1, ST7FOXK1, ST7FOXK2 Contents 1 Description 13 2 Pin description 15 3 Register and memory mapping . 20 4 Flash programmable memory 24 4.1 Introduction . 24 4.2 Main features 24 4.3 Programming modes 24 4.3.1 In-Circuit Programming (ICP) . 24 4.3.2 In Application Programming (IAP) . 25 4.4 ICC interface 25 4.5 Memory protection 27 4.5.1 Read-out protection 27 4.5.2 Flash write/erase protection 27 4.6 Related documentation 27 4.7 Description of Flash Control/Status register (FCSR) 28 5 Central processing unit . 29 5.1 Introduction . 29 5.2 Main features 29 5.3 CPU registers 29 5.3.1 Accumulator (A) . 30 5.3.2 Index registers (X and Y) 30 5.3.3 Program Counter (PC) 30 5.3.4 Condition Code register (CC) 30 5.3.5 Stack Pointer (SP) . 32 6 Supply, reset and clock management 34 6.1 RC oscillator adjustment . 34 6.1.1 Internal RC oscillator . 34 6.1.2 Customized RC calibration 35 6.1.3 Auto wakeup RC oscillator . 36 2/226