BA45F5740/BA45F5740-2
Smoke Detector Flash MCU with Calendar
Flash Program Memory......................................................................................28
Structure......................................................................................................................................28
Special Vectors ...........................................................................................................................28
Look-up Table..............................................................................................................................28
Table Program Example..............................................................................................................29
In Circuit Programming – ICP .....................................................................................................30
On Chip Debug Support – OCDS ...............................................................................................30
Data Memory .......................................................................................................31
Structure......................................................................................................................................31
Data Memory Addressing............................................................................................................32
General Purpose Data Memory ..................................................................................................32
Special Purpose Data Memory ...................................................................................................32
Special Function Register Description.............................................................34
Indirect Addressing Registers – IAR0, IAR1, IAR2 .....................................................................34
Memory Pointers – MP0, MP1L, MP1H, MP2L, MP2H...............................................................34
Accumulator – ACC ....................................................................................................................35
Program Counter Low Register – PCL........................................................................................36
Look-up Table Registers – TBLP, TBHP, TBLH ..........................................................................36
Status Register – STATUS .........................................................................................................36
EEPROM Data Memory.......................................................................................38
EEPROM Data Memory Structure ..............................................................................................38
EEPROM Registers ....................................................................................................................38
Reading Data from the EEPROM ...............................................................................................40
Writing Data to the EEPROM......................................................................................................40
Write Protection...........................................................................................................................40
EEPROM Interrupt ......................................................................................................................40
Programming Considerations......................................................................................................40
Oscillators ...........................................................................................................42
Oscillator Overview .....................................................................................................................42
System Clock Configurations......................................................................................................42
Internal High Speed RC Oscillator – HIRC .................................................................................43
Internal 32kHz Oscillator – LIRC.................................................................................................43
Operating Modes and System Clocks ..............................................................43
System Clocks ............................................................................................................................43
System Operation Modes............................................................................................................44
Control Registers ........................................................................................................................45
Operating Mode Switching..........................................................................................................47
Standby Current Considerations.................................................................................................50
Wake-up......................................................................................................................................50
Watchdog Timer..................................................................................................51
Watchdog Timer Clock Source....................................................................................................51
Watchdog Timer Control Register...............................................................................................51
Watchdog Timer Operation .........................................................................................................52
Rev. 1.30
3
September 16, 2021