BA45F6740
CO/GAS Detector Flash MCU with LED Driver
In Application Programming – IAP ..............................................................................................29
Data Memory .......................................................................................................42
Structure......................................................................................................................................42
Data Memory Addressing............................................................................................................43
General Purpose Data Memory ..................................................................................................43
Special Purpose Data Memory ...................................................................................................43
Special Function Register Description.............................................................45
Indirect Addressing Registers – IAR0, IAR1, IAR2 .....................................................................45
Memory Pointers – MP0, MP1L/MP1H, MP2L/MP2H.................................................................45
Accumulator – ACC.....................................................................................................................46
Program Counter Low Byte Register – PCL................................................................................47
Look-up Table Registers – TBLP, TBHP, TBLH...........................................................................47
Option Memory Mapping Register – ORMC ...............................................................................47
Status Register – STATUS..........................................................................................................48
EEPROM Data Memory.......................................................................................49
EEPROM Data Memory Structure ..............................................................................................49
EEPROM Registers ....................................................................................................................49
Reading Data from the EEPROM ...............................................................................................51
Writing Data to the EEPROM......................................................................................................51
Write Protection...........................................................................................................................51
EEPROM Interrupt ......................................................................................................................51
Programming Considerations......................................................................................................52
Oscillators ...........................................................................................................53
Oscillator Overview .....................................................................................................................53
System Clock Configurations......................................................................................................53
Internal High Speed RC Oscillator – HIRC .................................................................................54
Internal 32kHz Oscillator – LIRC.................................................................................................54
Operating Modes and System Clocks ..............................................................54
System Clocks ............................................................................................................................54
System Operation Modes............................................................................................................55
Control Registers ........................................................................................................................56
Operating Mode Switching..........................................................................................................58
Standby Current Considerations.................................................................................................61
Wake-up......................................................................................................................................61
Watchdog Timer..................................................................................................62
Watchdog Timer Clock Source....................................................................................................62
Watchdog Timer Control Register...............................................................................................62
Watchdog Timer Operation .........................................................................................................63
Reset and Initialisation.......................................................................................64
Reset Functions ..........................................................................................................................64
Reset Initial Conditions ...............................................................................................................65
Input/Output Ports..............................................................................................69
Pull-high Resistors ......................................................................................................................69
Rev. 1.30
3
July 25, 2023