ST7DALIF2 8-bit MCU family with single voltage Flash memory, data EEPROM, ADC, timers, SPI, DALI Features Memories 8 Kbytes single voltage Flash Program memory with readout protection, In-Circuit Programming and In-Application programming (ICP and IAP). 10K write/erase cycles guaranteed, data SO20 retention: 20 years at 55C. 300 384 bytes RAM 256 bytes data EEPROM with readout protection. 300K write/erase cycles guaranteed, data retention: 20 yrs at 55C. 2 communication interfaces Clock, reset and supply management SPI synchronous serial interface Enhanced reset system DALI communication interface Enhanced low voltage supervisor (LVD) for Interrupt management main supply and an auxiliary voltage 10 interrupt vectors plus TRAP and RESET detector (AVD) with interrupt capability for 15 external interrupt lines (on 4 vectors) implementing safe power-down procedures A/D converter Clock sources: Internal 1% RC oscillator, 7 input channels crystal/ceramic resonator or external clock Fixed gain op-amp Internal 32 MHz input clock for Auto-reload timer 13-bit resolution for 0 to 430 mV ( 5 V V ) Optional x4 or x8 PLL for 4 or 8 MHz DD internal clock 10-bit resolution for 430 mV to 5 V ( 5 V V ) 5 power saving modes: Halt, Active-halt, DD Wait and Slow, Auto Wake Up From Halt Instruction set I/O ports 8-bit data manipulation Up to 15 multifunctional bidirectional I/Os 63 basic instructions with illegal opcode detection 7 high sink outputs 17 main addressing modes 4 timers 8 x 8 unsigned multiply instructions Configurable watchdog timer Development tools Two 8-bit Lite timers with prescaler, watchdog, 1 real-time base and 1 input Full hardware/software development capture package 12-bit auto-reload timer with 4 PWM DM (Debug module) outputs, input capture and output compare functions February 2009 Rev 3 1/171 www.st.com 171Contents ST7DALIF2 Contents 1 Description 10 2 Device summary . 11 3 Block diagram . 12 4 Pin description 13 5 Register and memory map . 16 6 Flash program memory . 19 6.1 Introduction . 19 6.2 Main features 19 6.3 Programming modes 19 6.3.1 In-circuit programming (ICP) . 19 6.3.2 In application programming (IAP) . 20 6.4 ICC interface 20 6.5 Memory protection 21 6.5.1 Readout protection 21 6.5.2 Flash write/erase protection 21 6.6 Related documentation 22 6.7 Register description . 22 6.7.1 Flash control/status register (FCSR) . 22 7 Data EEPROM . 23 7.1 Introduction . 23 7.2 Main features 23 7.3 Memory access 23 7.4 Power saving modes 25 7.5 Access error handling 25 7.6 Data EEPROM readout protection 26 7.7 Register description . 27 7.8 EEPROM control/status register (EECSR) 27 2/171