国产精品成人VA在线观看-国产乱妇乱子视频在播放-国产日韩精品一区二区三区在线-国模精品一区二区三区

參數資料
型號: W742C813
廠商: WINBOND ELECTRONICS CORP
元件分類: 微控制器/微處理器
英文描述: 4-BIT SINGLE-CHIP MICROCONTROLLER FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER
中文描述: 4-BIT, MROM, 3.58 MHz, MICROCONTROLLER, PQFP100
封裝: 14 X 20 MM, 2.75 MM HEIGHT, QFP-100
文件頁數: 32/56頁
文件大小: 455K
代理商: W742C813
W742E/C813
- 32 -
5.18 Serial I/O interface
The bit 0 and bit 1 of port P0 can be used as a serial input/output port. P0.0 is the serial clock I/O pin
and P0.1 is the serial data I/O pin. A 4-bit binary register, Serial Interface Control register (SIC),
controls the serial port. SIC is controlled by the
MOV SIC,#I
instruction. The bit definition is as follow:
SIC
w
w
w
0
1
2
w
3
Bit 0 = 0 P0.0 & P0.1 work as normal input/output pin;
Bit 0 = 1 P0.0 & P0.1 work as serial port function.
Bit 1 = 0 P0.0 works as serial clock input pin;
Bit 1 = 1 P0.0 works as serial clock output pin.
Bit 2 = 0 Serial data latched/changed at falling edge of clock;
Bit 2 = 1 Serial data latched/changed at rising edge of clock.
Bit 3 = 0 Serial clock output frequency is fosc/2;
Bit 3 = 1 Serial clock output frequency is fosc/256.
At initial reset, SIC = 0000B.
The serial I/O functions are controlled by the instructions
SOP R
and
SIP R
. The two instructions are
described below:
(1) When in the first time the SIP R instruction is executed, the data will be loaded to the ACC and
RAM from the serial input buffer. But this data is not meaningful, it is used to enable serial port.
There are two methods to get the serial data, one is interrupt and the other is polling. When enable
the serial input, the bit 1 of port status register 2 (PRS2) will automatically be set to "1" (BUSY
I
= 1).
Then the P0.0 pin will send out 8 clocks or accept 8 clocks from external device and the data from
the P0.1 pin will be loaded to SIB buffer at the rising or falling edge of the P0.0 pin. After the 8
clocks have been sent, BUSY
I
will be reset to "0" and EVF.5 will be set to "1." At this time, if IEF.5
has been set (IEF.5 = 1), an interrupt is executed then the SIP R instruction can get the correct
data from the serial input buffer (SIB), low nibble of SIB moves to ACC register and the high nibble
moves to RAM; if HEF.5 has been set (HEF.5 = 1), the hold state is terminated. The polling method
is to check the status of PSR2.1 (BUSY
I
) to know whether the serial input process is completed or
not. If a serial input process is not completed, but the SIP R instruction is executed again, the data
will be lost. The timing is shown in Figure 5-12.
相關PDF資料
PDF描述
W742C814 4-BIT SINGLE-CHIP MICROCONTROLLER FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER
W742E813 4-BIT MICROCONTROLLER
W742C81A 4-BIT MICROCONTROLLER
W742S819 4-BIT TELEPHONE CONTROLLER
W742S81A 4-BIT SINGLE-CHIP MICROCONTROLLER FOR SMALL GENERAL-PURPOSE INFRARED REMOTE CONTROL TRANSMITTER
相關代理商/技術參數
參數描述
W742C814 制造商:WINBOND 制造商全稱:Winbond 功能描述:4 BIT MICROCONTROLLER
W742C816 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
W742C818 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
W742C81A 制造商:WINBOND 制造商全稱:Winbond 功能描述:4-BIT MICROCONTROLLER
W742CE811 制造商:WINBOND 制造商全稱:Winbond 功能描述:4-BIT MICROCONTROLLER