Holtek BC66F5652 User manual

2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
Revision: V1.10 Date: October 23, 2020

Rev. 1.10 2 October 23, 2020 Rev. 1.10 3 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Table of Contents
Features................................................................................................................. 7
CPU Features ...............................................................................................................................7
Peripheral Features.......................................................................................................................7
RF Transceiver Features ..............................................................................................................8
General Description.............................................................................................. 8
Block Diagram....................................................................................................... 9
Pin Assignment................................................................................................... 10
Pin Description ................................................................................................... 11
Interconnection Signal Description..............................................................................................15
Absolute Maximum Ratings............................................................................... 15
D.C. Characteristics............................................................................................ 16
Operating Voltage Characteristics...............................................................................................16
Operating Current Characteristics...............................................................................................16
Standby Current Characteristics .................................................................................................17
A.C. Characteristics............................................................................................ 17
High Speed Internal Oscillator – HIRC........................................................................................17
External High Speed Crystal/Ceramic Oscillator – HXT .............................................................18
Low Speed Internal Oscillator Characteristics – LIRC ................................................................18
External Low Speed Crystal Oscillator Characteristics – LXT ....................................................18
Operating Frequency Characteristic Curves ................................................... 18
System Start Up Time Characteristics ........................................................................................19
Input/Output Characteristics ............................................................................. 20
Memory Characteristics ..................................................................................... 20
A/D Converter Electrical Characteristics.......................................................... 21
LVD/LVR Electrical Characteristics................................................................... 22
Reference Voltage Electrical Characteristics................................................... 22
Comparator Electrical Characteristics ............................................................. 23
Software Controlled LCD Driver Electrical Characteristics............................ 23
RF Transceiver Characteristics ......................................................................... 24
D.C. Characteristics ....................................................................................................................24
A.C. Characteristics ....................................................................................................................24
Power-on Reset Characteristics........................................................................ 25
System Architecture........................................................................................... 26
Clocking and Pipelining...............................................................................................................26
Program Counter.........................................................................................................................27
Stack ...........................................................................................................................................27
Arithmetic and Logic Unit – ALU .................................................................................................28

Rev. 1.10 2 October 23, 2020 Rev. 1.10 3 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Flash Program Memory...................................................................................... 29
Structure......................................................................................................................................29
Special Vectors ...........................................................................................................................29
Look-up Table..............................................................................................................................29
Table Program Example..............................................................................................................30
In Circuit Programming – ICP .....................................................................................................31
On-Chip Debug Support – OCDS ...............................................................................................31
In Application Programming – IAP ..............................................................................................32
Data Memory ....................................................................................................... 46
Structure......................................................................................................................................46
Data Memory Addressing............................................................................................................47
General Purpose Data Memory ..................................................................................................47
Special Purpose Data Memory ...................................................................................................47
Special Function Register Description............................................................. 49
Indirect Addressing Registers – IAR0, IAR1, IAR2 .....................................................................49
Memory Pointers – MP0, MP1L, MP1H, MP2L, MP2H...............................................................49
Accumulator – ACC.....................................................................................................................50
Program Counter Low Register – PCL........................................................................................51
Look-up Table Registers –TBLP, TBHP, TBLH...........................................................................51
Status Register – STATUS ..........................................................................................................51
EEPROM Data Memory....................................................................................... 53
EEPROM Data Memory Structure ..............................................................................................53
EEPROM Registers ....................................................................................................................53
Read Operation from the EEPROM ............................................................................................55
Page Erase Operation to the EEPROM ......................................................................................55
Write Operation to the EEPROM ................................................................................................56
Oscillators ........................................................................................................... 61
Oscillator Overview .....................................................................................................................61
System Clock Congurations......................................................................................................61
External Crystal/Ceramic Oscillator – HXT .................................................................................62
Internal High Speed Internal RC Oscillator – HIRC ....................................................................63
External 32.768kHz Crystal Oscillator – LXT ..............................................................................63
Internal 32kHz Oscillator – LIRC.................................................................................................64
Operating Modes and System Clocks .............................................................. 64
System Clocks ............................................................................................................................64
System Operation Modes............................................................................................................65
Control Registers ........................................................................................................................66
Operating Mode Switching .........................................................................................................69
Standby Current Considerations ................................................................................................72
Wake-up......................................................................................................................................72
Programming Considerations......................................................................................................73
Watchdog Timer.................................................................................................. 73
Watchdog Timer Clock Source....................................................................................................73

Rev. 1.10 4 October 23, 2020 Rev. 1.10 5 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Watchdog Timer Control Register ...............................................................................................73
Watchdog Timer Operation .........................................................................................................74
Reset and Initialisation....................................................................................... 75
Reset Functions ..........................................................................................................................75
Reset Initial Conditions ..............................................................................................................79
Input/Output Ports .............................................................................................. 82
Pull-high Resistors ......................................................................................................................82
Port A Wake-up ...........................................................................................................................83
I/O Port Control Registers ...........................................................................................................84
I/O Port Source Current Control..................................................................................................84
Pin-shared Functions ..................................................................................................................85
I/O Pin Structures........................................................................................................................90
Programming Considerations......................................................................................................90
Timer Modules – TM ........................................................................................... 91
Introduction .................................................................................................................................91
TM Operation ..............................................................................................................................91
TM Clock Source.........................................................................................................................91
TM Interrupts...............................................................................................................................92
TM External Pins ........................................................................................................................92
Programming Considerations......................................................................................................93
Compact Type TM – CTM ................................................................................... 94
Compact Type TM Operation ......................................................................................................94
Compact Type TM Register Description......................................................................................95
Compact Type TM Operating Modes ..........................................................................................98
Standard Type TM – STM ................................................................................. 104
Standard Type TM Operation....................................................................................................104
Standard Type TM Register Description ...................................................................................104
Standard Type TM Operation Modes ........................................................................................108
Periodic Type TM – PTM................................................................................... 118
Periodic Type TM Operation...................................................................................................... 118
Periodic Type TM Register Description..................................................................................... 118
Periodic Type TM Operation Modes..........................................................................................122
Analog to Digital Converter ............................................................................ 131
A/D Converter Overview ...........................................................................................................131
A/D Converter Register Description ..........................................................................................132
A/D Converter Reference Voltage.............................................................................................135
A/D Converter Input Signals......................................................................................................136
A/D Converter Operation...........................................................................................................136
A/D Conversion Rate and Timing Diagram ...............................................................................137
Summary of A/D Conversion Steps...........................................................................................138
Programming Considerations....................................................................................................139
A/D Conversion Function ..........................................................................................................139
A/D Converter Programming Examples ....................................................................................140

Rev. 1.10 4 October 23, 2020 Rev. 1.10 5 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Comparator ....................................................................................................... 141
Comparator Operation ..............................................................................................................141
Comparator Registers ...............................................................................................................141
Comparator Interrupt.................................................................................................................142
Programming Considerations....................................................................................................142
Serial Interface Module – SIM .......................................................................... 143
SPI Interface .............................................................................................................................143
I2C Interface ..............................................................................................................................150
UART Interface.................................................................................................. 160
UART External Pins ..................................................................................................................160
UART Data Transfer Scheme....................................................................................................161
UART Status and Control Registers..........................................................................................161
Baud Rate Generator ................................................................................................................166
UART Setup and Control...........................................................................................................167
UART Transmitter......................................................................................................................168
UART Receiver .........................................................................................................................169
Managing Receiver Errors ........................................................................................................171
UART Interrupt Structure...........................................................................................................172
UART Power Down and Wake-up.............................................................................................173
SCOM/SSEG Function for LCD........................................................................ 174
LCD Operation ..........................................................................................................................174
LCD Control Registers ..............................................................................................................175
Low Voltage Detector – LVD ............................................................................ 178
LVD Register .............................................................................................................................178
LVD Operation...........................................................................................................................178
Interrupts ........................................................................................................... 179
Interrupt Registers.....................................................................................................................179
Interrupt Operation ....................................................................................................................184
External Interrupt.......................................................................................................................185
Comparator Interrupt.................................................................................................................186
Multi-function Interrupts.............................................................................................................186
A/D Converter Interrupt .............................................................................................................186
Time Base Interrupts.................................................................................................................186
TM Interrupts ............................................................................................................................188
Serial Interface Module Interrupt...............................................................................................188
UART Transfer Interrupt............................................................................................................189
LVD Interrupt .............................................................................................................................189
EEPROM Interrupt ....................................................................................................................189
Interrupt Wake-up Function.......................................................................................................189
Programming Considerations....................................................................................................190
Conguration Options...................................................................................... 190
RF Transceiver ................................................................................................. 191
Memory Mapping ......................................................................................................................191

Rev. 1.10 6 October 23, 2020 Rev. 1.10 7 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Special Function Register .........................................................................................................192
Bank 2 Control Register ............................................................................................................205
Functional Description...............................................................................................................206
State Machine ...........................................................................................................................208
Abbreviation ..............................................................................................................................216
Application Circuits.......................................................................................... 217
Instruction Set................................................................................................... 218
Introduction ...............................................................................................................................218
Instruction Timing ......................................................................................................................218
Moving and Transferring Data...................................................................................................218
Arithmetic Operations................................................................................................................218
Logical and Rotate Operation ...................................................................................................219
Branches and Control Transfer .................................................................................................219
Bit Operations ...........................................................................................................................219
Table Read Operations .............................................................................................................219
Other Operations.......................................................................................................................219
Instruction Set Summary ................................................................................. 220
Table Conventions.....................................................................................................................220
Extended Instruction Set ...........................................................................................................222
Instruction Denition........................................................................................ 224
Extended Instruction Denition .................................................................................................233
Package Information ........................................................................................ 240
SAW Type 46-pin QFN (6.5mm×4.5mm×0.75mm) Outline Dimensions ..................................241

Rev. 1.10 6 October 23, 2020 Rev. 1.10 7 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Features
CPU Features
• Operating voltage
♦fSYS=8MHz: 1.9V~3.6V
♦fSYS=12MHz: 2.7V~3.6V
♦fSYS=16MHz: 3.3V~3.6V
• Up to 0.25μs instruction cycle with 16MHz system clock at VDD=3.3V
• Power down and wake-up functions to reduce power consumption
• Oscillator types
♦External High Speed Crystal – HXT
♦Internal High Speed 8/12/16 MHz RC – HIRC
♦External Low Speed 32.768kHz Crystal – LXT
♦Internal Low Speed 32kHz RC – LIRC
• Multi-mode operation: FAST, SLOW, IDLE and SLEEP
• Fully integrated internal oscillators require no external components
• All instructions executed in 1~3 instruction cycles
• Table read instructions
• 115 powerful instructions
• 8-level subroutine nesting
• Bit manipulation instruction
Peripheral Features
• Flash Program Memory: 8K×16
• RAM Data Memory: 512×8
• True EEPROM Memory: 128×8
• Watchdog Timer function
• In Application Programming – IAP
• 22 bidirectional I/O lines
• Two external interrupt lines shared with I/O pins
• Programmable I/O port source current for LED applications
• Multiple Timer Modules for time measure, input capture, compare match output, PWM output
function or single pulse output function
• Serial Interfaces Module – SIM for SPI or I2C communication
• Fully-duplex Universal Asynchronous Receiver and Transmitter Interface – UART
• Software controlled 18-SCOM/SSEG and 4-SSEG lines LCD driver with 1/3 bias
• 12 external channel 12-bit resolution A/D converter with Programmable Internal Reference
Voltage VR
• Single comparator function
• Dual Time-Base functions for generation of xed time interrupt signals
• Low Voltage Reset function
• Low Voltage Detect function
• Package type: 46-pin QFN

Rev. 1.10 8 October 23, 2020 Rev. 1.10 9 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
RF Transceiver Features
• Frequency band: 2402~2480MHz
• Supports 3-wire or 4-wire SPI interface
• Wide input voltage range of 1.9V~3.6V
• Programmable data rate: 125/250/500Kbps
• Programmable TX output power up to 5dBm (Max. +6dBm)
• Low current consumption
♦0.5μA deep sleep mode current with data retention
♦TX current: 25mA@5dBm
♦RX current: 17mA@250Kbps
• Dual sleep modes
♦Middle sleep mode to support fast XO start-up
♦Regular light sleep mode
• RX sensitivity
♦-97dBm at 250Kbps on-air data rate
• On-chip VCO and Fractional-N synthesizer with integrated loop lter
• Supports 16MHz crystal (±20ppm)
• Packet handling
♦Data whitening
♦Auto-ACK/Resend
♦CRC optional protocol
♦Support Burst packets
♦Support Automatic ACK transaction
♦6 data-pipes for 1:6 star network
• FCC/ETSI Compiant
General Description
The device is a Flash Memory type 8-bit high performance RISC architecture microcontroller.
For memory features, the Flash Memory offers users the convenience of multi-programming
features. Other memory includes an area of RAM Data Memory as well as an area of true EEPROM
memory for storage of non-volatile data such as serial numbers, calibration data etc.
Analog features include a multi-channel 12-bit A/D converter and a comparator function. Multiple
and extremely exible Timer Modules provide timing, pulse generation and PWM output functions.
Communication with the outside world is catered for by including fully integrated SPI, I2C, and
UART interface functions, three popular interfaces which provide designers with a means of easy
communication with external peripheral hardware. Protective features such as an internal Watchdog
Timer, Low Voltage Reset and Low Voltage Detector coupled with excellent noise immunity and
ESD protection ensure that reliable operation is maintained in hostile electrical environments.
The device also contains a 2.4GHz RF transceiver, which is a high performance and low cost fully-
integrated CMOS RF GFSK transceiver for wireless applications in the 2.4GHz frequency band.
A full choice of external and internal low and high oscillator functions are provided including
fully integrated system oscillators which require no external components for their implementation.
The ability to operate and switch dynamically between a range of operating modes using dierent

Rev. 1.10 8 October 23, 2020 Rev. 1.10 9 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
clock sources gives users the ability to optimise microcontroller operation and minimise power
consumption.
The inclusion of flexible I/O programming features, Time-Base functions along with many
other features ensure that the device will find excellent use in applications such as IoT (Smart
Community), Wireless meter reading (Water/Gas Meter), Agricultural/Industrial Control in addiition
to many others.
Block Diagram
Interrupt
Controller
Bus
MUX
LVD/LVR
Stack
8-level
RAM
512×8
ROM
8K×16
EEPROM
128×8
Watchdog
Timer
HIRC
8/12/16MHz
LIRC
32kHz
Pin-Shared
Function
INT0~INT1
Pin-Shared
With Port B
Time Bases
HXT
LXT
Pin-Shared
With Port B & C
XT1
XT2
OSC1
OSC2
HT8 MCU Core
Clock System
Timers
Digital Peripherals
UART
I/O
MUX
Analog Peripherals
12-bit
ADC
AVDD
AVDD/2
AVDD/4
VR
VR/2
VR/4
PGA
AVDD
+
-
Analog to Digital Converter
1 Comparator
CMP
VBGREF
VREFI
Pin-Shared
With Port A
VREF
Pin-Shared
With Port A
AN0~AN11
Pin-Shared
With Port A & B & D
C+
C-
CX
Pin-Shared
With Port B
Pin-Shared
With Port A
IAP
Reset
Circuit
VDD/AVDD
VSS/AVSS
VDD/AVDD
VSS/AVSS
S/W LCD Driver SCOM0~SCOM17,
SSEG0~SSEG17,
SSEG22~SSEG25
Pin-Shared
With Port A & B & C & D
SIM
SYSCLK
Port A Driver PA0~PA7
PB0~PB6
PC0~PC2
Port B Driver
Port C Driver
PD0~PD3Port D Driver
RFIN
RFOUT
XO
XI
VSSRF
CLDO DVDDRF GIO3~GIO4
: SIM including SPI & I2C: Pin-shared Node : Expose Pad, connected to the ground
VDDRF
LNA
PA
DSM
ADC
Loop
Filter
BPF
Mixer
CP/PFD
MMD
Synthesizer
Digital
MODEM
CRC
Whitening
Packet Handler & Radio Control
TX FIFO
RX FIFO
SPI

Rev. 1.10 10 October 23, 2020 Rev. 1.10 11 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Pin Assignment
PD0/PTP/SSEG22
NC
NC
NC
VDDRF
GIO3
NC
GIO4
PA7/PTP/PTPI/SCOM7/SSEG7/AN6
PA6/CTCK/SCOM6/SSEG6/AN5/VREF
PA5/SCOM5/SSEF5/AN4/VREFI
PB3/CTP/SCOM11/SSEG11/AN7
DVDDRF
XI
XO
NC
VDDRF
TEST
NC
NC
RFIN
RFOUT
VSSRF
VSSRF
VSS/AVSS
PC2/SDO/SCOM17/SSEG17
PC0/TX/SCOM15/SSEG15/OSC1
PA0/STP/STPI/SCOM0/SSEG0/ICPDA/OCDSDA
PC1/RX/SCOM16/SSEG16/OSC2
PB0/INT0/SCOM8/SSEG8/AN0/XT1
PB2/STCK/STP/SCOM10/SSEG10/AN2
VDD/AVDD
PB1/INT1/SCOM9/SSEG9/AN1/XT2
PA3/SDI/SDA/CX/SCOM3/SSEG3
PA2/INT1/SCOM2/SSEG2/ICPCK/OCDSCK
PA1/INT0/SDO/SCOM1/SSEG1/IRQ
(3)
CLDO
NC
PB4/CLO/SCOM12/SSEG12/AN8
PB5/SCS/C-/SCOM13/SSEG13
PB6/SCK/SCL/C+/SCOM14/SSEG14
VSS/AVSS
PA4/PTCK/SCOM4/SSEG4/AN3
PD1/RX/SSEG23/AN11
PD2/TX/SSEG24/AN10
PD3/CTP/SSEG25/AN9
BC66F5652
BC66V5652
46 QFN-A
1
2
3
4
5
6
7
8
910 111213 1415 161718 19 2021 22
343536373839
23
24
25
26
27
28
29
30
31
32
33
40414243444546
Note: 1. If the pin-shared pin functions have multiple outputs simultaneously, the desired pin-shared
function is determined by the corresponding software control bits.
2. The OCDSDA and OCDSCK pins are supplied as dedicated OCDS pins and as such only
available for the BC66V5652 device which is the OCDS EV chip for the BC66F5652
device.
3. The IRQ pin pin-shared with PA1 is the RF interrupt request output line, should be properly
congured to implement correct connection and RF function control. Refer to the "Input/
Output Ports" section for more details.
4. For the unbonded lines, PC3~PC6, the line status should be properly congured to avoid
unwanted power consumption resulting from oating input conditions. Refer to the “Standby
Current Considerations” and “Input/Output Ports” sections for more details.

Rev. 1.10 10 October 23, 2020 Rev. 1.10 11 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Pin Description
With the exception of the power pins and some relevant RF transceiver control pins, all pins on
the device can be referenced by their Port name, e.g. PA0, PA1 etc., which refer to the digital I/O
function of the pins. However these Port pins are also shared with other function such as the Analog
to Digital Converter, Timer Module pins etc. The function of each pin is listed in the following table,
however the details behind how each pin is congured is contained in other sections of the datasheet.
Pin Name Function OPT I/T O/T Description
PA0/STP/STPI/SCOM0/
SSEG0/ICPDA/OCDSDA
PA0
PAS0
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
STP PAS0 — CMOS STM output
STPI PAS0 ST — STM capture input
SCOM0 PAS0 — SCOM Software controlled LCD common output
SSEG0 PAS0 — SSEG Software controlled LCD segment output
ICPDA — ST CMOS ICP Data/Address pin
OCDSDA — ST CMOS OCDS Data/Address pin, for EV chip only
PA1/INT0/SDO/SCOM1/
SSEG1/IRQ
PA1
PAS0
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
INT0
PAS0
INTEG
INTC0
IFS
ST — External Interrupt 0
SDO PAS0 — CMOS SPI serial data output
SCOM1 PAS0 — SCOM Software controlled LCD common output
SSEG1 PAS0 — SSEG Software controlled LCD segment output
IRQ PAS0 — CMOS RF transceiver interrupt request output
PA2/INT1/SCOM2/SSEG2/
ICPCK/OCDSCK
PA2
PAS0
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
INT1
PAS0
INTEG
INTC2
IFS
ST — External Interrupt 1
SCOM2 PAS0 — SCOM Software controlled LCD common output
SSEG2 PAS0 — SSEG Software controlled LCD segment output
ICPCK — ST — ICP Clock pin
OCDSCK — ST — OCDS Clock pin, for EV chip only
PA3/SDI/SDA/CX/SCOM3/
SSEG3
PA3
PAS0
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
SDI PAS0
IFS ST — SPI serial data input
SDA PAS0
IFS ST NMOS I2C data line
CX PAS0 — CMOS Comparator output
SCOM3 PAS0 — SCOM Software controlled LCD common output
SSEG3 PAS0 — SSEG Software controlled LCD segment output

Rev. 1.10 12 October 23, 2020 Rev. 1.10 13 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Pin Name Function OPT I/T O/T Description
PA4/PTCK/SCOM4/SSEG4/
AN3
PA4
PAS1
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
PTCK PAS1 ST — PTM clock input
SCOM4 PAS1 — SCOM Software controlled LCD common output
SSEG4 PAS1 — SSEG Software controlled LCD segment output
AN3 PAS1 AN — A/D Converter analog input channel 3
PA5/SCOM5/SSEG5/AN4/
VREFI
PA5
PAS1
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
SCOM5 PAS1 — SCOM Software controlled LCD common output
SSEG5 PAS1 — SSEG Software controlled LCD segment output
AN4 PAS1 AN — A/D Converter analog input channel 4
VREFI PAS1 AN — A/D Converter reference voltage input pin
PA6/CTCK/SCOM6/SSEG6/
AN5/VREF
PA6
PAS1
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
CTCK PAS1 ST — CTM clock input
SCOM6 PAS1 — SCOM Software controlled LCD common output
SSEG6 PAS1 — SSEG Software controlled LCD segment output
AN5 PAS1 AN — A/D Converter analog input channel 5
VREF PAS1 AN — A/D Converter reference voltage input
PA7/PTP/PTPI/SCOM7/
SSEG7/AN6
PA7
PAS1
PAWU
PAPU
ST CMOS General purpose I/O. Register enabled pull-high
and wake-up
PTP PAS1 — CMOS PTM output
PTPI PAS1 ST — PTM capture input
SCOM7 PAS1 — SCOM Software controlled LCD common output
SSEG7 PAS1 — SSEG Software controlled LCD segment output
AN6 PAS1 AN — A/D Converter analog input channel 6
PB0/INT0/SCOM8/SSEG8/
AN0/XT1
PB0 PBS0
PBPU ST CMOS General purpose I/O. Register enabled pull-high
INT0
PBS0
INTEG
INTC0
IFS
ST — External Interrupt 0
SCOM8 PBS0 — SCOM Software controlled LCD common output
SSEG8 PBS0 — SSEG Software controlled LCD segment output
AN0 PBS0 AN — A/D Converter analog input channel 0
XT1 PBS0 LXT — LXT oscillator pin
PB1/INT1/SCOM9/SSEG9/
AN1/XT2
PB1 PBS0
PBPU ST CMOS General purpose I/O. Register enabled pull-high
INT1
PBS0
INTEG
INTC2
IFS
ST — External Interrupt 1
SCOM9 PBS0 — SCOM Software controlled LCD common output
SSEG9 PBS0 — SSEG Software controlled LCD segment output
AN1 PBS0 AN — A/D Converter analog input channel 1
XT2 PBS0 — LXT LXT oscillator pin

Rev. 1.10 12 October 23, 2020 Rev. 1.10 13 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Pin Name Function OPT I/T O/T Description
PB2/STCK/STP/SCOM10/
SSEG10/AN2
PB2 PBS0
PBPU ST CMOS General purpose I/O. Register enabled pull-high
STCK PBS0 ST — STM clock input
STP PBS0 — CMOS STM output
SCOM10 PBS0 — SCOM Software controlled LCD common output
SSEG10 PBS0 — SSEG Software controlled LCD segment output
AN2 PBS0 AN — A/D Converter analog input channel 2
PB3/CTP/SCOM11/SSEG11/
AN7
PB3 PBS0
PBPU ST CMOS General purpose I/O. Register enabled pull-high
CTP PBS0 — CMOS CTM output
SCOM11 PBS0 — SCOM Software controlled LCD common output
SSEG11 PBS0 — SSEG Software controlled LCD segment output
AN7 PBS0 AN — A/D Converter analog input channel 7
PB4/CLO/SCOM12/SSEG12/
AN8
PB4 PBS1
PBPU ST CMOS General purpose I/O. Register enabled pull-high
CLO PBS1 — CMOS System clock output
SCOM12 PBS1 — SCOM Software controlled LCD common output
SSEG12 PBS1 — SSEG Software controlled LCD segment output
AN8 PBS1 AN — A/D Converter analog input channel 8
PB5/SCS/C-/SCOM13/
SSEG13
PB5 PBS1
PBPU ST CMOS General purpose I/O. Register enabled pull-high
SCS PBS1
IFS ST CMOS SPI slave select pin
C- PBS1 AN — Comparator negative input
SCOM13 PBS1 — SCOM Software controlled LCD common output
SSEG13 PBS1 — SSEG Software controlled LCD segment output
PB6/SCK/SCL/C+/SSEG14/
SCOM14
PB6 PBS1
PBPU ST CMOS General purpose I/O. Register enabled pull- high
SCK PBS1
IFS ST CMOS SPI serial clock
SCL PBS1
IFS ST NMOS I2C clock line
C+ PBS1 AN — Comparator positive input
SCOM14 PBS1 — SCOM Software controlled LCD common output
SSEG14 PBS1 — SSEG Software controlled LCD segment output
PC0/TX/SCOM15/SSEG15/
OSC1
PC0 PCS0
PCPU ST CMOS General purpose I/O. Register enabled pull- high
TX PCS0 — CMOS UART transmitter pin
SCOM15 PCS0 — SCOM Software controlled LCD common output
SSEG15 PCS0 — SSEG Software controlled LCD segment output
OSC1 PCS0 HXT — HXT oscillator pin
PC1/RX/SCOM16/SSEG16/
OSC2
PC1 PCS0
PCPU ST CMOS General purpose I/O. Register enabled pull-high
RX PCS0
IFS ST — UART receiver pin
SCOM16 PCS0 — SCOM Software controlled LCD common output
SSEG16 PCS0 — SSEG Software controlled LCD segment output
OSC2 PCS0 — HXT HXT oscillator pin

Rev. 1.10 14 October 23, 2020 Rev. 1.10 15 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Pin Name Function OPT I/T O/T Description
PC2/SDO/SCOM17/SSEG17
PC2 PCS0
PCPU ST CMOS General purpose I/O. Register enabled pull-high
SDO PCS0 — CMOS SPI serial data output
SCOM17 PCS0 — SCOM Software controlled LCD common output
SSEG17 PCS0 — SSEG Software controlled LCD segment output
PD0/PTP/SSEG22
PD0 PDS0
PDPU ST CMOS General purpose I/O. Register enabled pull-high
PTP PDS0 — CMOS PTM output
SSEG22 PDS0 — SSEG Software controlled LCD segment output
PD1/RX/SSEG23/AN11
PD1 PDS0
PDPU ST CMOS General purpose I/O. Register enabled pull-high
RX PDS0
IFS ST — UART RX serial data input
SSEG23 PDS0 — SSEG Software controlled LCD segment output
AN11 PDS0 AN — A/D Converter analog input channel 11
PD2/TX/SSEG24/AN10
PD2 PDS0
PDPU ST CMOS General purpose I/O. Register enabled pull-high
TX PDS0 — CMOS UART TX serial data output
SSEG24 PDS0 — SSEG Software controlled LCD segment output
AN10 PDS0 AN — A/D Converter analog input channel 10
PD3/CTP/SSEG25/AN9
PD3 PDS0
PDPU ST CMOS General purpose I/O. Register enabled pull-high
CTP PDS0 — CMOS CTM output
SSEG25 PDS0 — SSEG Software controlled LCD segment output
AN9 PDS0 AN — A/D Converter analog input channel 9
VDD/AVDD VDD — PWR — Digital positive power supply
AVDD — PWR — Analog positive power supply
VSS/AVSS VSS — PWR — Digital negative power supply
AVSS — PWR — Analog negative power supply, ground
TEST TEST — — — Analog test pin
VDDRF VDDRF — PWR — RF analog positive power supply
RFIN RFIN — AN — RF LNA input
RFOUT RFOUT — — AN RF power amplier output
VSSRF VSSRF — PWR — RF ground
XO XO — — AN Crystal oscillator output
XI XI — AN — Crystal oscillator input
DVDDRF DVDDRF — PWR — RF digital positive power supply
CLDO CLDO — — PWR LDO output, connected to a bypass capacitor
GIO3 GIO3 — ST CMOS Multi-function I/O 3
GIO4 GIO4 — ST CMOS Multi-function I/O 4
NC NC — — — Non-connected
Legend: I/T: Input type; O/T: Output type;
OPT: Optional by register option; AN: Analog signal;
PWR: Power; CMOS: CMOS output;
ST: Schmitt Trigger input; NMOS: NMOS output;
SSEG: Software controlled LCD SEG; SCOM: Software controlled LCD COM;
HXT: High frequency crystal oscillator; LXT: Low frequency crystal oscillator.

Rev. 1.10 14 October 23, 2020 Rev. 1.10 15 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Interconnection Signal Description
Several signals listed in the following table are not connected to external package pins. These signals
are interconnection lines between the MCU and the RF transceiver. Users should properly congure
the relevant I/O control to implement correct interconnection.
MCU
Signal Name
RF
Transceiver
Signal Name
Function Description
PC3 SDIO PC3 General purpose I/O. Register enabled pull-high and
wake-up
SDIO SPI data input/output
PC4 GIO2 PC4 General purpose I/O. Register enabled pull-high and
wake-up
GIO2 Multi-function I/O 2
PC5 SCK PC5 General purpose I/O. Register enabled pull-high and
wake-up
SCK SPI clock input
PC6 CSN PC6 General purpose I/O. Register enabled pull-high and
wake-up
CSN SPI chip select input, low active
Note: The PC3~PC6 lines, which are internally connected to the RF Transceiver lines, SDIO, GIO2,
SCK and CSN respectively should be properly configured to control the RF transceiver
operations. Refer to the “Input/Output Ports” and “RF Transceiver” chapters for more details.
Absolute Maximum Ratings
Supply Voltage ...........................................................................................................VSS-0.3V to 3.6V
Input Voltage ..................................................................................................... VSS-0.3V to VDD+0.3V
Storage Temperature..................................................................................................... -50°C to 125°C
Operating Temperature................................................................................................... -40°C to 85°C
IOL Total ....................................................................................................................................... 80mA
IOH Total.......................................................................................................................-80mA
Total Power Dissipation............................................................................................ 500mW
ESD HBM .................................................................................................................................... ±2kV
* The device is ESD sensitive. HBM (Human Body Mode) is based on MIL-STD-883.
Note: These are stress ratings only. Stresses exceeding the range specified under “Absolute
Maximum Ratings” may cause substantial damage to the device. Functional operation of this
device at other conditions beyond those listed in the specication is not implied and prolonged
exposure to extreme conditions may aect device reliability.

Rev. 1.10 16 October 23, 2020 Rev. 1.10 17 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
D.C. Characteristics
For data in the following tables, note that factors such as oscillator type, operating voltage, operating
frequency, pin load conditions, temperature and program instruction type, etc., can all exert an
inuence on the measured values.
Operating Voltage Characteristics
Ta=-40°C~85°C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD
Operating Voltage – HXT —
fSYS=fHXT=8MHz 1.9 — 3.6
VfSYS=fHXT=12MHz 2.7 — 3.6
fSYS=fHXT=16MHz 3.3 — 3.6
Operating Voltage – HIRC —
fSYS=fHIRC=8MHz 1.9 — 3.6
V
fSYS=fHIRC=12MHz 2.7 — 3.6
fSYS=fHIRC=16MHz 3.3 — 3.6
Operating Current Characteristics
Ta=-40°C~85°C
Symbol Operation Mode Test Conditions Min. Typ. Max. Unit
VDD Conditions
IDD
SLOW Mode – LIRC 3V fSYS=32kHz — 10 20 μA
SLOW Mode – LXT 3V fSYS=32768Hz — 10 20 μA
FAST Mode – HIRC
3V fSYS=8MHz — 1.0 1.5 mA
2.7V fSYS=12MHz — 1.2 2.2 mA
3V — 1.50 2.75
3.3V fSYS=16MHz — 3.2 4.8 mA
FAST Mode – HXT
3V fSYS=8MHz — 1.0 1.5 mA
2.7V fSYS=12MHz — 1.2 2.2 mA
3V — 1.50 2.75
3.3V fSYS=16MHz — 3.2 4.8 mA
Note: When using the characteristic table data, the following notes should be taken into consideration:
1. Any digital inputs are setup in a non-oating condition.
2. All measurements are taken under conditions of no load and with all peripherals in an o state.
3. There are no DC current paths.
4. All Operating Current values are measured using a continuous NOP instruction program loop.

Rev. 1.10 16 October 23, 2020 Rev. 1.10 17 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Standby Current Characteristics
Ta=25°C, unless otherwise specied.
Symbol Operation Mode Test Conditions Min. Typ. Max. Max.
@85°C Unit
VDD Conditions
ISTB
SLEEP Mode 3V WDT o— 0.5 1.8 3.5 μA
3V WDT on — 1.8 3.6 8.0 μA
IDLE0 Mode – LIRC 3V fSUB on — 3.0 5.0 9.0 μA
IDLE0 Mode – LXT 3V fSUB on — 3.0 5.0 9.0 μA
IDLE1 Mode – HIRC
3V fSUB on, fSYS=8MHz — 360 500 600 μA
2.7V fSUB on, fSYS=12MHz — 550 700 800 μA
3V — 650 800 900
3.3V fSUB on, fSYS=16MHz — 1.8 3.6 4.4 mA
IDLE1 Mode – HXT
3V fSUB on, fSYS=8MHz — 360 500 600 μA
2.7V fSUB on, fSYS=12MHz — 432 600 720 μA
3V — 540 750 900
3.3V fSUB on, fSYS=16MHz — 1.8 3.6 4.4 mA
Note: When using the characteristic table data, the following notes should be taken into consideration:
1. Any digital inputs are setup in a non-oating condition.
2. All measurements are taken under conditions of no load and with all peripherals in an o state.
3. There are no DC current paths.
4. All Standby Current values are taken after a HALT instruction execution thus stopping all instruction
execution.
A.C. Characteristics
For data in the following tables, note that factors such as oscillator type, operating voltage, operating
frequency and temperature etc., can all exert an inuence on the measured values.
High Speed Internal Oscillator – HIRC
During the program writing operation the writer will trim the HIRC oscillator at a user selected
HIRC frequency and user selected voltage of 3V.
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Temp.
fHIRC
8MHz Writer Trimmed HIRC Frequency
3V 25°C -1% 8 +1%
MHz
-40°C~85°C -2% 8 +2%
1.9V~3.6V 25°C -5% 8 +5%
-40°C~85°C -10% 8 +10%
2.2V~3.6V 25°C -2.5% 8 +2.5%
-40°C~85°C -3% 8 +3%
12MHz Writer Trimmed HIRC Frequency
3V 25°C -1% 12 +1%
MHz
-40°C~85°C -2% 12 +2%
2.7V~3.6V 25°C -2.5% 12 +2.5%
-40°C~85°C -3% 12 +3%
16MHz Writer Trimmed HIRC Frequency 3.3V~3.6V 25°C -2.5% 16 +2.5% MHz
-40°C~85°C -3% 16 +3%
Note: 1. The 3V values for VDD are provided as this is the xed voltage at which the HIRC frequency is trimmed
by the writer.
2. The row below the 3V trim voltage row is provided to show the values for the full VDD range operating
voltage. It is recommended that the trim voltage is xed at 3V for application voltage ranges from 1.9V to 3.6V.

Rev. 1.10 18 October 23, 2020 Rev. 1.10 19 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
3. The minimum and maximum tolerance values provided in the table are for the frequency at which the
writer trims the HIRC oscillator. After trimming at this chosen specic frequency any change in HIRC
oscillator frequency using the oscillator register control bits by the application program will give a
frequency tolerance to within ±20%.
External High Speed Crystal/Ceramic Oscillator – HXT
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Temp.
fHXT System Clock – HXT
1.9V~3.6V
-40°C~85°C
— 8 — MHz
2.7V~3.6V — 12 — MHz
3.3V~3.6V — 16 — MHz
tSTART HXT Start Up Time 3V -40°C~85°C — — 25 ms
Low Speed Internal Oscillator Characteristics – LIRC
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Temp.
fLIRC LIRC Frequency 3V 25°C -2% 32 +2% kHz
2.2V~3.6V -40°C~85°C -10% 32 +10% kHz
tSTART LIRC Start-up Time — — — — 100 μs
External Low Speed Crystal Oscillator Characteristics – LXT
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
fLXT System Clock – LXT 1.9V~3.6V -40°C~85°C — 32768 — Hz
tSTART LXT Start Up Time 3V -40°C~85°C — — 1000 ms
Duty Cycle Duty Cycle — -40°C~85°C 40 — 60 %
RNEG Negative Resistance 2.2V -40°C~85°C 3×ESR — — Ω
Note: C1, C2 and RP are external components. C1=C2=10pF, RP=10MΩ, CL=7pF, ESR=30kΩ.
Operating Frequency Characteristic Curves
System Operating Frequency
Operating Voltage
12MHz
16MHz
1.9V 2.7V 3.3V 3.6V
~
~
8MHz
~
~
~
~

Rev. 1.10 18 October 23, 2020 Rev. 1.10 19 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
System Start Up Time Characteristics
Ta=-40°C~85°C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
tSST
System Start-up Time
Wake-up from Condition where fSYS is o
— fSYS=fH~fH/64, fH=fHXT — 128 — tHXT
— fSYS=fH~fH/64, fH=fHIRC — 16 — tHIRC
— fSYS=fSUB=fLXT — 1024 — tLXT
— fSYS=fSUB=fLIRC — 2 — tLIRC
System Start-up Time
Wake-up from Condition where fSYS is on
— fSYS=fH~fH/64, fH=fHXT or fHIRC — 2 — tH
— fSYS=fSUB=fLXT or fLIRC — 2 — tSUB
System Speed Switch Time
FAST to SLOW Mode or
SLOW to FAST Mode
— fHXT switches from o → on — 1024 — tHXT
— fHIRC switches from o → on — 16 — tHIRC
— fLXT switches from o → on — 1024 — tLXT
tRSTD
System Reset Delay Time
Reset source from Power-on reset or
LVR Hardware Reset
— RRPOR=5V/ms
42 48 54
ms
System Reset Delay Time
LVRC/WDTC/RSTC Register Software
Reset
— —
System Reset Delay Time
Reset Source from WDT Overow Reset — — 14 16 18
tSRESET Minimum Software Reset Width to Reset — — 45 90 120 μs
tACTV
ROM Activation Time – Wake-up from
Power Down Mode — — 32 — 64 μs
Note: 1. For the System Start-up time values, whether fSYS is on or o depends upon the mode type and the chosen
fSYS system oscillator. Details are provided in the System Operating Modes section.
2. The time units, shown by the symbols tHIRC etc. are the inverse of the corresponding frequency values as
provided in the frequency tables. For example tHIRC=1/fHIRC, tSYS=1/fSYS etc.
3. If the LIRC is used as the system clock and if it is o when in the SLEEP Mode, then an additional LIRC
start up time, tSTART, as provided in the LIRC frequency table, must be added to the tSST time in the table
above.
4. The System Speed Switch Time is eectively the time taken for the newly activated oscillator to start up.
5. The ROM activation time tACTV should be added when calculating the total system start-up time of a wake-
up from the power down mode.

Rev. 1.10 20 October 23, 2020 Rev. 1.10 21 October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Input/Output Characteristics
Ta=-40°C~85°C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VIL Input Low Voltage for I/O Ports — — 0.0 — 0.2VDD V
VIH Input High Voltage for I/O Ports — — 0.8VDD — VDD V
IOL Sink Current for I/O Ports 3V VOL=0.1VDD 16 32 — mA
IOH Source Current for I/O Ports
3V
VOH=0.9VDD,
SLEDCn[m+1:m]=00B
(n=0, 1; m=0, 2, 4, 6)
-0.7 -1.5 —
mA
3V
VOH=0.9VDD,
SLEDCn[m+1:m]=01B
(n=0, 1; m=0, 2, 4, 6)
-1.3 -2.5 —
3V
VOH=0.9VDD,
SLEDCn[m+1:m]=10B
(n=0, 1; m=0, 2, 4, 6)
-1.8 -3.6 —
3V
VOH=0.9VDD,
SLEDCn[m+1:m]=11B
(n=0, 1; m=0, 2, 4, 6)
-4 -8 —
RPH Pull-high Resistance for I/O Ports (Note)
3V LVPU=0, PXPU=FFH
(PX: PA, PB, PC, PD) 20 60 100 kΩ
3V LVPU=1, PXPU=FFH
(PX: PA, PB, PC, PD) 6.67 15.00 23.00 kΩ
ILEAK Input Leakage Current 3V VIN=VDD or VIN=VSS — — ±1 μA
tTPI TM Capture Input Pin Minimum Pulse Width — — 0.3 — — μs
tTCK TM Clock Input Pin Minimum Pulse Width — — 0.3 — — μs
tINT External Interrupt Minimum Pulse Width — — 10 — — μs
Note: The RPH internal pull-high resistance value is calculated by connecting to ground and enabling the input pin
with a pull-high resistor and then measuring the pin current at the specied supply voltage level. Dividing
the voltage by this measured current provides the RPH value.
Memory Characteristics
Ta=-40°C~85°C, unless otherwise specied.
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VRW VDD for Read / Write — — VDDmin — VDDmax V
Flash Program Memory / Data EEPROM Memory
tFWR Flash Program Memory Write Time — FWERTS=0 — 2.2 2.7 ms
— FWERTS=1 — 3.0 3.6
tFER Flash Program Memory Erase Time — FWERTS=0 — 3.2 3.9 ms
— FWERTS=1 — 3.7 4.5
tEERD EEPROM Read Time — — — — 4 tSYS
tEEWR
EEPROM Write Time (Byte Mode) — EWERTS=0 — 5.4 6.6 ms
— EWERTS=1 — 6.7 8.1 ms
EEPROM Write Time (Page Mode) — EWERTS=0 — 2.2 2.7 ms
— EWERTS=1 — 3.0 3.6 ms
tEEER EEPROM Erase Time — EWERTS=0 — 3.2 3.9 ms
— EWERTS=1 — 3.7 4.5 ms
EP
Cell Endurance – Flash Program Memory — — 10K — — E/W
Cell Endurance – Data EEPROM Memory — — 100K — — E/W
Table of contents
Other Holtek Transceiver manuals