BH67F2470
Glucose Meter Flash MCU with LCD
In Application Programming – IAP ........................................................................................ 30
On-Chip Debug Support – OCDS ......................................................................................... 37
RAM Data Memory......................................................................................... 37
Structure................................................................................................................................ 37
Data Memory Addressing...................................................................................................... 38
General Purpose Data Memory ............................................................................................ 38
Special Purpose Data Memory ............................................................................................. 38
Special Function Register Description........................................................ 40
Indirect Addressing Registers – IAR0, IAR1, IAR2 ............................................................... 40
Memory Pointers – MP0, MP1L, MP1H, MP2L, MP2H......................................................... 40
Program Memory Bank Pointer – PBP.................................................................................. 42
Accumulator – ACC .............................................................................................................. 42
Program Counter Low Register – PCL ................................................................................. 42
Look-up Table Registers – TBLP, TBHP, TBLH .................................................................... 42
Status Register – STATUS ................................................................................................... 43
EEPROM Data Memory.................................................................................. 45
EEPROM Data Memory Structure ........................................................................................ 45
EEPROM Registers .............................................................................................................. 45
Reading Data from the EEPROM ......................................................................................... 47
Writing Data to the EEPROM................................................................................................ 47
Write Protection..................................................................................................................... 47
EEPROM Interrupt ................................................................................................................ 47
Programming Considerations................................................................................................ 48
Oscillators ...................................................................................................... 49
Oscillator Overview ............................................................................................................... 49
System Clock Configurations................................................................................................ 49
External Crystal/Ceramic Oscillator – HXT ........................................................................... 50
Internal High Speed RC Oscillator – HIRC ........................................................................... 51
External 32.768kHz Crystal Oscillator – LXT........................................................................ 51
Internal 32kHz Oscillator – LIRC........................................................................................... 52
Operating Modes and System Clocks ......................................................... 52
System Clocks ...................................................................................................................... 52
System Operation Modes...................................................................................................... 53
Control Registers .................................................................................................................. 54
Operating Mode Switching.................................................................................................... 56
Standby Current Considerations........................................................................................... 59
Wake-up................................................................................................................................ 60
Watchdog Timer............................................................................................. 61
Watchdog Timer Clock Source.............................................................................................. 61
Watchdog Timer Control Register......................................................................................... 61
Watchdog Timer Operation ................................................................................................... 62
Reset and Initialisation.................................................................................. 63
Reset Functions .................................................................................................................... 63
Reset Initial Conditions ......................................................................................................... 66
Rev. 1.80
3
June 14, 2023