| Electronic Components Datasheet Search |
|
INTEDG Datasheet(PDF) 319 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
INTEDG Datasheet(HTML) 319 Page - Microchip Technology |
|
319 / 478 page ![]() 2010-2012 Microchip Technology Inc. DS41414D-page 319 PIC16(L)F1946/47 25.5.1.5 Synchronous Master Transmission Set-up: 1. Initialize the SPxBRGH, SPxBRGL register pair and the BRGH and BRG16 bits to achieve the desired baud rate (see Section 25.4 “EUSART Baud Rate Generator (BRG)” ). 2. Set the RXx/DTx and TXx/CKx TRIS controls to ‘1’. 3. Enable the synchronous master serial port by setting bits SYNC, SPEN and CSRC. Set the TRIS bits corresponding to the RXx/DTx and TXx/CKx I/O pins. 4. Disable Receive mode by clearing bits SREN and CREN. 5. Enable Transmit mode by setting the TXEN bit. 6. If 9-bit transmission is desired, set the TX9 bit. 7. If interrupts are desired, set the TXxIE, GIE and PEIE interrupt enable bits. 8. If 9-bit transmission is selected, the ninth bit should be loaded in the TX9D bit. 9. Start transmission by loading data to the TXxREG register. FIGURE 25-10: SYNCHRONOUS TRANSMISSION FIGURE 25-11: SYNCHRONOUS TRANSMISSION (THROUGH TXEN) bit 0 bit 1 bit 7 Word 1 bit 2 bit 0 bit 1 bit 7 RXx/DTx Write to TXxREG Reg TXxIF bit (Interrupt Flag) TXEN bit ‘1’ ‘1’ Word 2 TRMT bit Write Word 1 Write Word 2 Note: Sync Master mode, SPxBRGL = 0, continuous transmission of two 8-bit words. pin TXx/CKx pin TXx/CKx pin (SCKP = 0) (SCKP = 1) RXx/DTx pin TXx/CKx pin Write to TXxREG reg TXxIF bit TRMT bit bit 0 bit 1 bit 2 bit 6 bit 7 TXEN bit |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |