BA45F6742
CO/GAS Detector Flash MCU
with LED Driver and Calendar
Universal Serial Interface Module – USIM ......................................................133
SPI Interface .............................................................................................................................133
I2C Interface ..............................................................................................................................141
UART Interface..........................................................................................................................151
Calendar ............................................................................................................167
Command Byte .........................................................................................................................167
R/W Signal ................................................................................................................................168
A0~A2 .......................................................................................................................................168
Burst Mode................................................................................................................................168
Test Mode..................................................................................................................................169
Write Protect Register...............................................................................................................169
Clock HALT Bit..........................................................................................................................169
12-hour/24-hour Mode ..............................................................................................................169
AM-PM Mode ............................................................................................................................169
Reset and Serial Clock Control.................................................................................................169
Data Input and Data Out ...........................................................................................................169
Crystal Selection .......................................................................................................................170
Operating Flowchart..................................................................................................................171
Timing Diagrams .......................................................................................................................172
Low Voltage Detector – LVD ............................................................................172
LVD Register.............................................................................................................................172
LVD Operation...........................................................................................................................173
Interrupts...........................................................................................................174
Interrupt Registers.....................................................................................................................174
Interrupt Operation....................................................................................................................177
External Interrupts.....................................................................................................................178
Universal Serial Interface Module Interrupt...............................................................................179
LVD Interrupt.............................................................................................................................179
A/D Converter Interrupt.............................................................................................................179
EEPROM Interrupt ....................................................................................................................180
TM Interrupts.............................................................................................................................180
Time Base Interrupts.................................................................................................................180
Interrupt Wake-up Function.......................................................................................................182
Programming Considerations....................................................................................................182
Configuration Options......................................................................................182
Application Circuits..........................................................................................183
Instruction Set...................................................................................................184
Introduction ...............................................................................................................................184
Instruction Timing......................................................................................................................184
Moving and Transferring Data...................................................................................................184
Arithmetic Operations................................................................................................................184
Logical and Rotate Operation ...................................................................................................185
Branches and Control Transfer .................................................................................................185
Rev. 1.40
5
July 25, 2023