参数资料
型号: M38002SFP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 8 MHz, MICROCONTROLLER, PQFP64
封装: 14 X 14 MM, 0.80 MM PITCH, PLASTIC, QFP-64
文件页数: 166/174页
文件大小: 1752K
代理商: M38002SFP
2.3 Serial I/O
2-42
APPLICATION
3800 GROUP USER’S MANUAL
Control in the slave unit
After a setting of the related registers is completed as shown in Figure 2.3.26, the slave unit becomes the
state which is received a synchronizing clock at all times, and the Serial I/O receive interrupt request bit is
set to “1” every time an 8-bit synchronous clock is received.
By the serial I/O receive interrupt processing routine, the data to be transmitted next is written to the Transmit
buffer register after received data is read out.
However, if no serial I/O receive interrupt occurs for more than a certain time (head adjustive time), the
following processing will be performed.
1. The first 1 byte data of the transmission data in the block is written into the Transmit buffer register.
2. The data to be received next is processed as the first 1 byte of the received data in the block.
Figure 2.3.28 shows the control in the slave unit using a serial I/O receive interrupt and any timer interrupt
(for head adjustive).
Fig. 2.3.28 Control in the slave unit
Write a transmission data
Read a reception data
N
Within a block transfer period?
Y
A received byte counter
≥ 8?
N
RTI
Write any data (FF16)
A received byte counter +1
Heading adjustive
counter
Initialized
value (Note 3)
Serial I/O receive interrupt
processing routine
Timer interrupt processing
routine
Heading adjustive counter – 1
N
Heading adjustive
counter = 0?
Y
RTI
Write the first transmission data
(first byte) in a block
A received byte counter
0
Check the received byte
counter to judge if a block
has been transfered.
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 8 ms
and the timer interrupt cycle is 1 ms, set
8 as the initialized value.
3:
q
CLT (Note 1)
CLD (Note 2)
Push register to stack
Push the register used in
the interrupt processing
routine into the stack.
q
CLT (Note 1)
CLD (Note 2)
Push register to stack
Push the register used in
the interrupt processing
routine into the stack.
q
Pop registers
Pop registers which is
pushed to stack.
q
Pop registers
Pop registers which is
pushed to stack.
q
Notes 1: When using the Index X mode flag (T).
2: When using the Decimal mode flag (D).
相关PDF资料
PDF描述
MSC1212Y2PAGT 8-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP64
M38067MC-XXXGP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP80
M38027E8SS 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP64
M30622M8P-XXXFP 16-BIT, MROM, 24 MHz, MICROCONTROLLER, PQFP100
M37478M4TXXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP56
相关代理商/技术参数
参数描述
M38002SSP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38003E1-DXXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38003E1-DXXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38003E1-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38003E1-XXXFS 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER