Rev. 1.60
2
August 20, 2019
Rev. 1.60
3
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
Program Memory Bank Pointer – PBP .................................................................................. 60
Accumulator – ACC ............................................................................................................... 60
Program Counter Low Register – PCL .................................................................................. 60
Look-up Table Registers – TBLP, TBHP, TBLH ..................................................................... 61
Status Register – STATUS .................................................................................................... 61
EEPROM Data Memory Structure ........................................................................................ 63
EEPROM Registers .............................................................................................................. 63
Reading Data from the EEPROM ......................................................................................... 65
Writing Data to the EEPROM ................................................................................................ 65
Write Protection ..................................................................................................................... 65
EEPROM Interrupt ................................................................................................................ 65
Programming Considerations ................................................................................................ 66
................................................................................................ 67
External Crystal/Ceramic Oscillator – HXT ........................................................................... 68
Internal High Speed RC Oscillator – HIRC ........................................................................... 69
External 32.768 kHz Crystal Oscillator – LXT ....................................................................... 69
Internal 32kHz Oscillator – LIRC ........................................................................................... 70
Operating Modes and System Clocks ......................................................... 70
System Clocks ...................................................................................................................... 70
System Operation Modes ...................................................................................................... 71
Control Registers .................................................................................................................. 72
Operating Mode Switching .................................................................................................... 75
Standby Current Considerations ........................................................................................... 79
Wake-up ................................................................................................................................ 79
Watchdog Timer Clock Source .............................................................................................. 80
Watchdog Timer Control Register ......................................................................................... 80
Watchdog Timer Operation ................................................................................................... 81
Reset Functions .................................................................................................................... 82
Reset Initial Conditions ......................................................................................................... 85
Pull-high Resistors ................................................................................................................ 93
Port A Wake-up ..................................................................................................................... 93
I/O Port Control Registers ..................................................................................................... 93
I/O Port Source Current Control ............................................................................................ 94
Pin-shared Functions ............................................................................................................ 95
I/O Pin Structures ................................................................................................................ 104
Programming Considerations .............................................................................................. 105