Rev. 1.10
32
October 23, 2020
Rev. 1.10
33
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
HT-IDE development tools. The OCDSDA pin is the OCDS Data/Address input/output pin while
the OCDSCK pin is the OCDS clock input pin. When users use the EV chip for debugging, other
functions which are shared with the OCDSDA and OCDSCK pins in the device will have no effect
in the EV chip. However, the two OCDS pins which are pin-shared with the ICP programming pins
are still used as the Flash Memory programming pins for ICP. For more detailed OCDS information,
refer to the corresponding document named “Holtek e-Link for 8-bit MCU OCDS User’s Guide”.
Holtek e-Link Pins EV Chip Pins
Pin Description
OCDSDA
OCDSDA
On-chip Debug Support Data/Address input/output
OCDSCK
OCDSCK
On-chip Debug Support Clock input
VDD
VDD/AVDD
Power Supply
VSS
VSS/AVSS
Power Ground
In Application Programming – IAP
Flash type Program Memory provides the user with a means of convenient and easy upgrades
and modifications to their programs on the same device. The provision of the IAP function offers
users the convenience of Flash Memory multi-programming features. The convenience of the IAP
function is that it can execute the updated program procedure using its internal firmware, without
requiring an external Program Writer or PC. In addition, the IAP interface can also be any type of
communication protocol, such as UART, using I/O pins. Regarding the internal firmware, the user
can select versions provided by Holtek or create their own. The following section illustrates the
procedures regarding how to implement the IAP firmware.
Flash Memory Read/Write Size
The Flash memory Erase and Write operations are carried out in a page format while the Read
operation is carried out in a word format. The page size and write buffer size are both assigned with
a capacity of 32 words. Note that the Erase operation should be executed before the Write operation
is executed.
When the Flash Memory Erase/Write Function is successfully enabled, the CFWEN bit will be set
high. When the CFWEN bit is set high, the data can be written into the write buffer. The FWT bit is
used to initiate the write process and then indicate the write operation status. This bit is set high by
application programs to initiate a write process and will be cleared by hardware if the write process
is finished.
The Read operation can be carried out by executing a specific read procedure. The FRDEN bit is
used to enable the read function and the FRD bit is used to initiate the read process by application
programs and then indicate the read operation status. When the read process is finished, this bit will
be cleared by hardware.
Operations
Format
Erase
32 words/page
Write
32 words/time
Read
1 word/time
Note: Page size = Write buffer size = 32 words.
IAP Operation Format