BH67F2480
Glucose Meter LCD Flash MCU
Reset and Initialisation.......................................................................................75
Reset Functions ..........................................................................................................................75
Reset Initial Conditions ...............................................................................................................78
Input/Output Ports..............................................................................................83
Pull-high Resistors ......................................................................................................................83
Port A Wake-up ...........................................................................................................................84
I/O Port Control Registers...........................................................................................................84
Source Current Selection............................................................................................................85
Pin-shared Functions ..................................................................................................................87
I/O Pin Structures........................................................................................................................94
Programming Considerations......................................................................................................95
Timer Modules – TM ...........................................................................................95
Introduction .................................................................................................................................95
TM Operation ..............................................................................................................................96
TM Clock Source.........................................................................................................................96
TM Interrupts...............................................................................................................................96
TM External Pins.........................................................................................................................96
Programming Considerations......................................................................................................97
Standard Type TM – STM ...................................................................................98
Standard TM Operation...............................................................................................................98
Standard Type TM Register Description .....................................................................................99
Standard Type TM Operation Modes........................................................................................103
Periodic Type TM – PTM................................................................................... 113
Periodic TM Operation .............................................................................................................. 113
Periodic Type TM Register Description .................................................................................... 113
Periodic Type TM Operating Modes ......................................................................................... 118
Internal Reference Voltage Generator ............................................................127
Internal Reference Voltage Register Description ......................................................................127
Digital to Analog Converter – DAC..................................................................128
D/A Converter Registers ...........................................................................................................128
Operational Amplifier – OPA............................................................................130
OPA Register Description..........................................................................................................130
Input Offset Calibration .............................................................................................................132
Analog to Digital Converter – ADC..................................................................133
A/D Converter Overview ...........................................................................................................133
A/D Converter Register Description..........................................................................................134
A/D Converter Operation ..........................................................................................................137
A/D Converter Reference Voltage.............................................................................................138
A/D Converter Input Signals......................................................................................................138
Conversion Rate and Timing Diagram ......................................................................................139
Summary of A/D Conversion Steps...........................................................................................139
Programming Considerations....................................................................................................140
A/D Conversion Function ..........................................................................................................140
A/D Conversion Programming Examples..................................................................................141
Rev. 1.70
4
November 14, 2023