| Motore di ricerca datesheet componenti elettronici |
|
16F628 Scheda tecnica(PDF) 79 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
16F628 Scheda tecnica(HTML) 79 Page - Microchip Technology |
|
79 / 168 page ![]() 2002 Microchip Technology Inc. Preliminary DS40044A-page 77 PIC16F627A/628A/648A FIGURE 12-5: USART TRANSMIT BLOCK DIAGRAM Follow these steps when setting up an Asynchronous Transmission: 1. TRISB<1> bit needs to be set and TRISB<2> bit cleared in order to configure pins RB2/TX/CK and RB1/RX/DT as the Universal Synchronous Asynchronous Receiver Transmitter pins. 2. Initialize the SPBRG register for the appropriate baud rate. If a high-speed baud rate is desired, set bit BRGH. (Section 12.1) 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 trans- mission). FIGURE 12-6: 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) |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |