| 전자부품 데이터시트 검색엔진 |
|
PIC16F-E/ML 데이터시트(PDF) 80 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F-E/ML 데이터시트(HTML) 80 Page - Microchip Technology |
|
80 / 178 page ![]() PIC16F627A/628A/648A DS40044F-page 78 © 2007 Microchip Technology Inc. FIGURE 12-1: USART TRANSMIT BLOCK DIAGRAM Follow these steps when setting up an Asynchronous Transmission: 1. TRISB<1> and TRISB<2> should both be set to ‘1’ to configure the RB1/RX/DT and RB2/TX/CK pins as inputs. Output drive, when required, is controlled by the peripheral circuitry. 2. Initialize the SPBRG register for the appropriate baud rate. If a high-speed baud rate is desired, set bit BRGH. (Section 12.1 “USART Baud Rate Generator (BRG)”). 3. Enable the asynchronous serial port by clearing bit SYNC and setting bit SPEN. 4. If interrupts are desired, then set enable bit TXIE. 5. If 9-bit transmission is desired, then set transmit bit TX9. 6. Enable the transmission by setting bit TXEN, which will also set bit TXIF. 7. If 9-bit transmission is selected, the ninth bit should be loaded in bit TX9D. 8. Load data to the TXREG register (starts transmission). FIGURE 12-2: ASYNCHRONOUS TRANSMISSION TXIF TXIE Interrupt TXEN Baud Rate CLK SPBRG Baud Rate Generator TX9D MSb LSb Data Bus TXREG register TSR register (8) 0 TX9 TRMT SPEN RB2/TX/CK pin Pin Buffer and Control 8 ² ² ² Word 1 Stop bit Word 1 Transmit Shift Reg. Start bit bit 0 bit 1 bit 7/8 Write to TXREG Word 1 BRG output (shift clock) RB2/TX/CK (pin) TXIF bit (Transmit buffer reg. empty flag) TRMT bit (Transmit shift reg. empty flag) |
|
링크 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 |