
Rev. 1.00 2 October 26, 2018 Rev. 1.00 3 October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Look-up Table..............................................................................................................................28
Table Program Example..............................................................................................................29
In Circuit Programming – ICP .....................................................................................................30
On-Chip Debug Support – OCDS ...............................................................................................31
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 ...............................................................................................39
Writing Data to the EEPROM......................................................................................................40
EEPROM Interrupt ......................................................................................................................40
Programming Considerations......................................................................................................40
Oscillators ........................................................................................................... 42
Oscillator Overview .....................................................................................................................42
System Clock Congurations......................................................................................................42
Internal High Speed RC Oscillator – HIRC .................................................................................43
Internal 32kHz Oscillator – LIRC.................................................................................................43
External 32.768 kHz Crystal Oscillator – LXT ............................................................................. 43
Operating Modes and System Clocks .............................................................. 45
System Clocks ............................................................................................................................45
System Operation Modes............................................................................................................46
Control Registers ........................................................................................................................47
Operating Mode Switching ..........................................................................................................49
Standby Current Considerations .................................................................................................53
Wake-up......................................................................................................................................53
Watchdog Timer.................................................................................................. 54
Watchdog Timer Clock Source....................................................................................................54
Watchdog Timer Control Register ...............................................................................................54
Watchdog Timer Operation .........................................................................................................55
Reset and Initialisation....................................................................................... 56
Reset Functions ..........................................................................................................................56
Reset Initial Conditions ...............................................................................................................59