m3819 Renesas Electronics Corporation., m3819 Datasheet - Page 118

no-image

m3819

Manufacturer Part Number
m3819
Description
Mitsubishi 8-bit Single-chip Microcomputer 740 Family / 38000 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
m38197EAFP
Manufacturer:
QFP
Quantity:
20 000
Part Number:
m38197MA-160FP
Manufacturer:
RENESAS
Quantity:
4
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
136
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
1 000
Part Number:
m38197MAA-608FP
Manufacturer:
MIT
Quantity:
20 000
Part Number:
m38197MAA-625FP
Manufacturer:
SEMTECH
Quantity:
300
Part Number:
m38197MAA-639FP
Manufacturer:
RENESAS
Quantity:
756
Part Number:
m38198MCA-834FP
Manufacturer:
RENESAS
Quantity:
52
Part Number:
m38199MF-065FP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
m38199MF-205FP
Manufacturer:
MITSUBISHI
Quantity:
20 000
Part Number:
m38199MF-289FP
Manufacturer:
MITSUSHITA
Quantity:
20 000
2. APPLICATION
Fig. 2.3.27 Control in the slave unit
104
(2) Control in the slave unit
Heading adjustive
counter
After a setting of the related registers is completed as shown in Figure 2.3.25, the slave unit becomes the state
which is received a synchronizing clock at all times, and the Serial I/O 1 interrupt request bit is set to “1” every
time an 8-bit synchronous clock is received.
For transmitting or receiving data according to the synchronizing clock input in the timing shown in the
specifications, read out the reception data and write the next transmission data to the Serial I/O 1 register in the
following conditions.
• When the Serial I/O 1 interrupt occurs.
• When the Serial I/O 1 interrupt request bit is set to “1” as the result of checking.
When the Serial I/O 1 interrupt request bit is not set to “1” within a certain time (heading adjustive time), the first
byte of the transmission data in a block is written to the Serial I/O 1 register, then the next reception data is
processed as the first byte of the reception data in a block. A processing example in the slave unit using serial
I/O interrupts and timer interrupts (for a heading adjustment) is shown below.
Serial I/O 1 interrupt processing
routine
A received byte counter +1
Write a transmission data
Within a block transfer period?
Read a reception data
A received byte counter
RTI
N
Y
Initialized
value (Note)
8?
Y
N
Check the received byte
counter to judge if a block
has been transfered.
3819 Group USER’S MANUAL
Write any data (FF
Note :
In this example, set the value which is equal to the
heading adjustive time divided by the timer interrupt
cycle as the initialized value of the heading adjustive
counter.
For example : When the heading adjustive time is 8ms
16
)
A received byte counter
Write the first transmission data
(first byte) in a block
and the timer interrupt cycle is 1ms, set
8 as the initialized value.
Heading adjustive counter – 1
Timer interrupt processing
routine
Heading adjustive
counter = 0?
MITSUBISHI MICROCOMPUTER
RTI
Y
2.3 Serial I/O
3819 Group
0
N

Related parts for m3819