| 전자부품 데이터시트 검색엔진 |
|
MCP19116 데이터시트(PDF) 72 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP19116 데이터시트(HTML) 72 Page - Microchip Technology |
|
72 / 246 page ![]() MCP19116/7 DS20005479D-page 72 2015-2020 Microchip Technology Inc. When setting up an Asynchronous Reception, follow these steps: 1. Initialize the SPBRG register for the appropriate baud rate. If a high speed baud rate is desired, set bit BRGH. 2. Enable the asynchronous serial port by clearing bit SYNC and setting bit SPEN. 3. If interrupts are desired, then set enable bit RCIE. 4. If 9-bit reception is desired, then set bit RX9. 5. Set ADDEN if address detect is needed. 6. Enable the reception by setting bit CREN. 7. Flag bit RCIF will be set when reception is com- plete and an interrupt will be generated if enable bit RCIE is set. 8. Read the RCSTA register to get the ninth bit (if enabled) and determine if any error occurred during reception. 9. Read the 8-bit received data by reading the RCREG register. 10. If any error occurred, clear the error by clearing enable bit CREN. 11. If using interrupts, set GIE (INTCON<7>) and PEIE (INTCON<6>) bits. FIGURE 10-4: USART RECEIVE BLOCK DIAGRAM Baud Rate CLK SPBRG Baud Rate Generator RC7/RX/DT Pin Buffer and Control SPEN Data Recovery CREN OERR FERR RSR register MSb LSb RX9D RCREG register FIFO Interrupt RCIF RCIE Data Bus 8 x 64 x 16 or Stop Start (8) 7 1 0 RX9 RX9 ADDEN RX9 ADDEN RSR<8> Enable Load of Receive Buffer 8 8 RCREG register RX9D or x 4 |
|
링크 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 |