Rev. 1.10
92
October 23, 2020
Rev. 1.10
93
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
STM
STCK
STP
STPI
CCR capture input
CCR output
Clock input
STM Function Pin Block Diagram
PTM
PTCK
PTP
PTPI
Capture input
CCR output
Clock or Capture
input
PTM Function Pin Block Diagram
Programming Considerations
The TM Counter Registers and the Capture/Compare CCRA and CCRP registers, all have a low
and high byte structure. The high bytes can be directly accessed, but as the low bytes can only be
accessed via an internal 8-bit buffer, reading or writing to these register pairs must be carried out in
a specific way. The important point to note is that data transfer to and from the 8-bit buffer and its
related low byte only takes place when a write or read operation to its corresponding high byte is
executed.
As the CCRA and CCRP registers are implemented in the way shown in the following diagram and
accessing these register pairs is carried out in a specific way as described above, it is recommended
to use the
“
MOV” instruction to access the CCRA and CCRP low byte registers, named xTMAL and
PTMRPL, using the following access procedures. Accessing the CCRA or CCRP low byte registers
without following these access procedures will result in unpredictable values.
Data Bus
8-bit Buffer
xTMDH
xTMDL
xTMAH
xTMAL
xTM Counter Register (Read only)
xTM CCRA Register (Read/Write)
PTMRPH
PTMRPL
PTM CCRP Register (Read/Write)
The following steps show the read and write procedures:
• Writing Data to CCRA or CCRP
♦
Step 1. Write data to Low Byte xTMAL or PTMRPL