BS87B12A-3/BS87C16A-3/BS87D20A-3
Touch A/D Flash MCU with OCVP
Table Program Example........................................................................................................ 34
In Circuit Programming – ICP ............................................................................................... 35
On-Chip Debug Support – OCDS ......................................................................................... 36
Data Memory .................................................................................................. 37
Structure................................................................................................................................ 37
Data Memory Addressing...................................................................................................... 38
General Purpose Data Memory ............................................................................................ 38
Special Purpose Data Memory ............................................................................................. 38
Special Function Register Description........................................................ 42
Indirect Addressing Registers – IAR0, IAR1, IAR2 ............................................................... 42
Memory Pointers – MP0, MP1H/MP1L, MP2H/MP2L........................................................... 42
Accumulator – ACC............................................................................................................... 43
Program Counter Low Register – PCL.................................................................................. 44
Look-up Table Registers – TBLP, TBHP, TBLH..................................................................... 44
Status Register – STATUS.................................................................................................... 44
EEPROM Data Memory.................................................................................. 46
EEPROM Data Memory Structure ........................................................................................ 46
EEPROM Registers .............................................................................................................. 46
Reading Data from the EEPROM ......................................................................................... 48
Writing Data to the EEPROM................................................................................................ 48
Write Protection..................................................................................................................... 48
EEPROM Interrupt ................................................................................................................ 48
Programming Considerations................................................................................................ 49
Oscillators ...................................................................................................... 50
Oscillator Overview ............................................................................................................... 50
System Clock Configurations................................................................................................ 50
Internal High Speed RC Oscillator – HIRC ........................................................................... 51
Internal 32kHz Oscillator – LIRC........................................................................................... 51
External 32.768 kHz Crystal Oscillator – LXT – for BS87C16A-3/BS87D20A-3................... 52
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................................................................................................................................ 62
Programming Considerations................................................................................................ 62
Watchdog Timer............................................................................................. 63
Watchdog Timer Clock Source.............................................................................................. 63
Watchdog Timer Control Register......................................................................................... 63
Watchdog Timer Operation ................................................................................................... 64
Reset and Initialisation.................................................................................. 65
Reset Functions .................................................................................................................... 65
Reset Initial Conditions ......................................................................................................... 68
Rev. 1.40
3
January 11, 2022