Rev. 1.60
4
August 20, 2019
Rev. 1.60
5
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
Introduction ......................................................................................................................... 106
TM Operation ...................................................................................................................... 106
TM Clock Source ................................................................................................................. 106
TM Interrupts ....................................................................................................................... 107
TM External Pins ................................................................................................................. 107
TM Input/Output Pin Selection ............................................................................................ 107
Programming Considerations .............................................................................................. 108
Compact TM Operation ....................................................................................................... 109
Compact Type TM Register Description...............................................................................110
Compact Type TM Operation Modes ...................................................................................113
Standard TM Operation ........................................................................................................119
Standard Type TM Register Description ............................................................................. 120
Standard Type TM Operation Modes .................................................................................. 123
Periodic TM Operation ........................................................................................................ 132
Periodic Type TM Register Description ............................................................................... 133
Periodic Type TM Operation Modes .................................................................................... 136
A/D Converter Overview ..................................................................................................... 145
Registers Descriptions ........................................................................................................ 146
A/D Converter Operation ..................................................................................................... 150
A/D Converter Reference Voltage ....................................................................................... 151
A/D Converter Input Pins .................................................................................................... 152
Conversion Rate and Timing Diagram ................................................................................ 152
Summary of A/D Conversion Steps ..................................................................................... 153
Programming Considerations .............................................................................................. 153
A/D Converter Transfer Function ........................................................................................ 153
A/D Programming Examples ............................................................................................... 154
SPI Interface ....................................................................................................................... 156
I
UART External Pin .............................................................................................................. 172
UART Data Transfer Scheme.............................................................................................. 172
UART Status and Control Registers.................................................................................... 172
Baud Rate Generator .......................................................................................................... 178
UART Setup and Control..................................................................................................... 179
UART Transmitter................................................................................................................ 180
UART Receiver ................................................................................................................... 181
Managing Receiver Errors .................................................................................................. 183