Rev. 1.10
126
October 23, 2020
Rev. 1.10
127
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Single Pulse Output Mode
To select this mode, bits PTM1 and PTM0 in the PTMC1 register should be set to
“
10” respectively
and also the PTIO1 and PTIO0 bits should be set to
“
11” respectively. The Single Pulse Output
Mode, as the name suggests, will generate a single shot pulse on the PTM output pin.
The trigger for the pulse output leading edge is a low to high transition of the PTON bit, which
can be implemented using the application program. However in the Single Pulse Output Mode, the
PTON bit can also be made to automatically change from low to high using the external PTCK pin,
which will in turn initiate the Single Pulse output. When the PTON bit transitions to a high level, the
counter will start running and the pulse leading edge will be generated. The PTON bit should remain
high when the pulse is in its active state. The generated pulse trailing edge will be generated when
the PTON bit is cleared to zero, which can be implemented using the application program or when a
compare match occurs from Comparator A.
However a compare match from Comparator A will also automatically clear the PTON bit and thus
generate the Single Pulse output trailing edge. In this way the CCRA value can be used to control the
pulse width. A compare match from Comparator A will also generate a PTM interrupt. The counter
can only be reset back to zero when the PTON bit changes from low to high when the counter
restarts. In the Single Pulse Output Mode CCRP is not used. The PTCCLR is not used in this Mode.
PTON bit
0
1
S/W Command
SET
“
PTON
”
or
PTCK Pin
Transition
PTON bit
1
0
CCRA
Trailing Edge
S/W Command
CLR
“
PTON
”
or
CCRA Compare
Match
PTP Output Pin
Pulse Width = CCRA Value
CCRA
Leading Edge
Single Pulse Generation