NEC V850E/RS1 User Manual page 493

32-/16-bit single-chip microcontroller with can interface
Table of Contents

Advertisement

(3)
Single Buffer Transfer Mode (Master Mode, Transmit/Receive Mode)
MSB first (DIR = 0), no INTC3nI delay (CSIT = 0), transmission wait disabled (CSWE = 0), CS
inactive disabled (CSMD = 0), CKP = 1, DAP = 0, transmission data length of 8 bits
(CCL[3:0] = [1,0,0,0]), active levels of all chip selects set to "active low":
CTXE, CRXE
SFDB write
UF-empty
CSIB
CSIBUF_0
CSIBUF_1
CSIBUF_2
CS3n[3:0]
SIRB read
1.
Set the CSIM register's POWER bit to 1 to enable the supply of the Queued CSI operation clock.
2.
Set the CSIC and CSIL registers to specify the transfer mode.
3.
Write "1" in the SFA register's FPCLR bit to clear all FIFO pointers.
4.
Specify the transfer mode using the CSIM register's TRMD, DIR, and CSIT bits; at the same time,
set the CTXE and CRXE bits to 1 to enable the transmit/receive operation.
5.
Make sure that the SFA register's SFFUL bit is set to 0, then write chip-select data and
transmission data in the SFCS and SFDB registers in this order.
6.
Check for a transmission to be finished (e.g. by monitoring the INTC3nI interrupt). If so, read the
SIRB register.
Repeat steps (5) and (6) until the last element is send/received and read from the SIRB register.
7.
Set the CSIM register's CTXE and CRXE bits to 0 to disable the transmit/receive operation (end of
transmit/receive operation).
Downloaded from
Elcodis.com
electronic components distributor
Chapter 14 Queued CSI (CSI30, CSI31)
Figure 14-27: Single Buffer Transfer Mode (Master, Transmit/Receive) Timing
55H
SCK3
SO3
0
1
0
1
0
SI3
1
1
0
0
1 1
"active-L"
CS 0
CSOT
INTC3nI
SIRB
0
SFP3-0
1
2
(1)
(2)(3)
(5)
(4)
(5)
User's Manual U16702EE3V2UD00
AAH
0
1
0
1
1
0
1
0
1
1
0
0 0
1
0 0
1
0
1 1
0
CS 1
CCH
1
Wait insertion by SIRB-full before
(6)
INTC3nI/SIRB store/CSTO clear
33H
0
0
0
1
1
0
1 1
1
0 0
1 1
0 0
CS 2
96H
0
1
(5)
(6)
Wait insertion
by CSIBUF-empty
1
99H
0
(7)
(6)
493

Advertisement

Table of Contents
loading

Table of Contents