English
Language : 

CP3BT23 Datasheet, PDF (160/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
Interrupt
Request
Control + Status
MWCS
Write
Data
16-BIt Read Buffer
Write
Data
8 8 MWDAT
16-BIt Shift Register
Data Out
Slave
Master
MDODI
Data In
Slave
Master
MDIDO
te MSK
MSK
System
Clock
Clock Prescaler + Select
Master
DS068
Figure 82. Microwire Block Diagram
le 22.1.2 Reading
22.1.4 Clocking Modes
The enhanced Microwire interface implements a double
buffer on read. As illustrated in Figure 82, the double read
buffer consists of the 16-bit shifter and a buffer, called the
read buffer.
o The 16-bit shifter loads the read buffer with new data when
the data transfer sequence is completed and previous data
in the read buffer has been read. In master mode, an Over-
run error occurs when the read buffer is full, the 16-bit shifter
s is full and a new data transfer sequence starts.
When 8-bit mode is selected, the lower byte of the shift reg-
ister is loaded into the lower byte of the read buffer and the
read buffer’s higher byte remains unchanged.
b The RBF bit indicates if the MWDAT register holds valid da-
ta. The OVR bit indicates that an overrun condition has oc-
curred.
O 22.1.3 Writing
Two clocking modes are supported: the normal mode and
the alternate mode.
In the normal mode, the output data, which is transmitted on
the MDODI pin (master mode) or the MDIDO pin (slave
mode), is clocked out on the falling edge of the shift clock
MSK. The input data, which is received via the MDIDO pin
(master mode) or the MDODI pin (slave mode), is sampled
on the rising edge of MSK.
In the alternate mode, the output data is shifted out on the
rising edge of MSK on the MDODI pin (master mode) or
MDIDO pin (slave mode). The input data, which is received
via MDIDO pin (master mode) or MDODI pin (slave mode),
is sampled on the falling edge of MSK.
The clocking modes are selected with the SCM bit. The
SCIDL bit allows selection of the value of MSK when it is idle
(when there is no data being transferred). Various MSK
clock frequencies can be programmed via the MCDV bits.
The BSY bit indicates whether the MWDAT register can be Figures Figure 83, Figure 84, Figure 85, and Figure 86 show
written. All write operations to the MWDAT register update the the data transfer timing for the normal and the alternate
shifter while the data contained in the read buffer is not affect- modes with the SCIDL bit clear and set.
ed. Undefined results will occur if the MWDAT register is writ-
ten to while the BSY bit is set.
Note that when data is shifted out on MDODI (master mode)
or MDIDO (slave mode) on the leading edge of the MSK
clock, bit 14 (16-bit mode) is shifted out on the second lead-
ing edge of the MSK clock. When data are shifted out on
MDODI (master mode) or MDIDO (slave mode) on the trail-
ing edge of MSK, bit 14 (16-bit mode) is shifted out on the
first trailing edge of MSK.
159
www.national.com