BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
General Purpose Data Memory ..................................................................................................25
Special Purpose Data Memory ...................................................................................................25
Special Function Register Description.............................................................28
Indirect Addressing Registers – IAR0, IAR1 ...............................................................................28
Memory Pointers – MP0, MP1 ....................................................................................................28
Bank Pointer – BP.......................................................................................................................29
Accumulator – ACC.....................................................................................................................29
Program Counter Low Register – PCL........................................................................................29
Look-up Table Registers – TBLP, TBHP, TBLH...........................................................................29
Status Register – STATUS..........................................................................................................30
EEPROM Data Memory – BS83B04L.................................................................31
EEPROM Data Memory Structure ..............................................................................................31
EEPROM Registers ....................................................................................................................31
Reading Data from the EEPROM ...............................................................................................33
Writing Data to the EEPROM......................................................................................................33
Write Protection...........................................................................................................................33
EEPROM Interrupt ......................................................................................................................33
Programming Considerations......................................................................................................34
Oscillators ...........................................................................................................35
Oscillator Overview .....................................................................................................................35
System Clock Configurations......................................................................................................35
Internal High Speed RC Oscillator – HIRC .................................................................................36
Internal 2kHz Oscillator – LIRC...................................................................................................36
Operating Modes and System Clocks ..............................................................37
System Clocks ............................................................................................................................37
System Operation Modes............................................................................................................38
Control Registers ........................................................................................................................39
Operating Mode Switching..........................................................................................................40
Standby Current Considerations.................................................................................................44
Wake-up......................................................................................................................................44
Watchdog Timer..................................................................................................45
Watchdog Timer Clock Source....................................................................................................45
Watchdog Timer Control Register...............................................................................................45
Watchdog Timer Operation .........................................................................................................46
Reset and Initialisation.......................................................................................47
Reset Functions ..........................................................................................................................47
Reset Initial Conditions ...............................................................................................................51
Input/Output Ports..............................................................................................54
Pull-high Resistors ......................................................................................................................55
Port A Wake-up ...........................................................................................................................56
I/O Port Control Registers...........................................................................................................56
Pin-shared Functions ..................................................................................................................57
I/O Pin Structures........................................................................................................................59
Programming Considerations......................................................................................................59
Rev. 1.20
3
May 19, 2023