參數(shù)資料
型號: HD404394
廠商: Hitachi,Ltd.
英文描述: 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
中文描述: 4位HMCS400系列微電腦(4位單片微計(jì)算機(jī))
文件頁數(shù): 62/100頁
文件大?。?/td> 610K
代理商: HD404394
HD404344R Series/HD404394 Series
62
Serial Interface Operation
Selection and Changing of Serial Interface Operation Mode:
The available settings for port mode
register A (PMRA: $004) and the serial mode register (SMR: $005) are shown in table 21. To change the
operating mode or to initialize the serial interface, write to the serial mode register.
The R0
0
/
SCK
pin is controlled by writing data to serial mode register (SMR: $005). The R0
1
/SI and
R0
2
/SO pins are controlled by writing data to port mode register A (PMRA: $004).
Table 21
Serial Interface Operating Modes
SMR
PMRA
Bit 3
Bit 1
Bit 0
Operating Mode
1
0
0
Continuous clock output mode
1
Transmit mode
1
0
Receive mode
1
Transmit/receive mode
Setting Serial Clock Source:
The transmit clock is set by writing to the serial mode register (SMR: $005)
and port mode register C (PMRC: $025).
Serial Data Setting:
Serial data is sent by writing to the serial data register (SRL: $006 and SRU: $007).
Serial data can then be obtained by reading the serial data register. Serial data is shifted by the transmit
clock.
The output of the SO pin is undefined until the first serial data is output after an MCU reset, or until the
output level control is performed during an idle state.
Transfer Control:
Serial interface operation is initiated by an STS instruction. The octal counter is reset
by the STS instruction to 000 and then incremented by one by the rising edge of the transmit clock. If eight
rising edges from the transmit clock is input or the serial data transfer is cut-off, the counter is reset to 000,
the serial interrupt request flag (IFS: $003, bit 2) is set, and the serial data transfer stops.
As for using the built-in prescaler output for the transmit clock, selection for the transmit clock frequency
can be from 4t
cyc
to 8192t
cyc
by setting bits 2 to 0 (SMR2–SMR0) of the serial mode register (SMR: $005)
and bit 0 (PMRC0) of port mode register C (PMRC: $025). Writing to these registers for the setting of the
transmit clock is shown in table 22.
相關(guān)PDF資料
PDF描述
HD4074344S 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
HD4074394S 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
HD40C4341R 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
HD40C4342R 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
HD40C4344R 4-bit HMCS400-series microcomputer(4位單片微計(jì)算機(jī))
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HD404394FP 制造商:HITACHI 制造商全稱:Hitachi Semiconductor 功能描述:4-bit microcomputers
HD404394FT 制造商:HITACHI 制造商全稱:Hitachi Semiconductor 功能描述:4-bit microcomputers
HD404394S 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
HD404418F 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller
HD404418H 制造商:未知廠家 制造商全稱:未知廠家 功能描述:4-Bit Microcontroller