| 전자부품 데이터시트 검색엔진 |
|
W78IRD2 데이터시트(PDF) 39 Page - List of Unclassifed Manufacturers |
|
|
|||||||||||||||||||||||||||||
W78IRD2 데이터시트(HTML) 39 Page - List of Unclassifed Manufacturers |
|
39 / 76 page ![]() W78IRD2 Publication Release Date: October 2, 2006 - 39 - Revision A7 As mentioned before, data enters and leaves the serial port on RxD. TxD line provides the shift clock, which shifts data into and out of the W78IRD2 and the device at the other end of the line. Any instruction that writes to SBUF starts the transmission. The shift clock is activated, and the data is shifted out on the RxD pin until all eight bits are transmitted. If SM2 is set to 1, the data appears on RxD one clock period before the falling edge on TxD, and the TxD clock then remains low for two clock periods before going high again. If SM2 is set to 0, the data appears on RxD three clock periods before the falling edge on TxD, and the TxD clock then remains low for six clock periods before going high again. This ensures that the receiving device can clock RxD data on the rising edge of TxD or when the TxD clock is low. Finally, the TI flag is set high in C1 once the last bit has been transmitted. The serial port receives data when REN is 1 and RI is zero. The TxD clock is activated, and the serial port latches data on the rising edge of the shift clock. As a result, the external device should present data on the falling edge of TxD. This process continues until all eight bits have been received. Then, after the last rising edge on TxD, the RI flag is set high in C1, which stops reception until RI is cleared by the software. 10.2 MODE 1 Mode 1 is a full–duplex, asynchronous mode. Serial communication frames are made up of ten bits transmitted on TXD and received on RXD. The ten bits consist of a start bit (0), eight data bits (LSB first), and a stop bit (1). When the W78IRD2 receives data, the stop bit goes into RB8 in SCON. The baud rate is either 1/16 or 1/32 of the Timer 1 overflow, which can be set to a variety of reload values. (The 1/16 or 1/32 factor is determined by the SMOD bit in PCON SFR.) The functional diagram is shown below. SBUF RB8 Transmit Shift Register Receive Shift Register TX SHIFT PAROUT D8 Internal Data Bus Internal Data Bus TXD RXD Serial Port Interrupt SMOD = TCLK RCLK SAMPLE Write to SBUF TX START SOUT 0 1 0 1 TI 1 0 PARIN STOP START LOAD CLOCK Read SBUF Timer 2 Overflow Timer 1 Overflow TX CLOCK RI SERIAL CONTROLLER RX CLOCK LOAD SBUF RX START RX SHIFT 2 16 1-TO-0 DETECTOR BIT DETECTOR 16 CLOCK SIN Figure 10-2 Serial Port Mode 1 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |