| 数据搜索系统,热门电子元器件搜索 |
|
R8C/2G 数据表(PDF) 256 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/2G 数据表(HTML) 256 Page - Renesas Technology Corp |
|
256 / 344 page ![]() R8C/2G Group 19. Hardware LIN Rev.1.00 Apr 04, 2008 Page 236 of 318 REJ09B0387-0100 19.4.2 Slave Mode Figure 19.7 shows typical operation of the hardware LIN when receiving a header field in slave mode. Figure 19.8 through Figure 19.10 show an Example of Header Field Reception Flowchart. When receiving a header field, the hardware LIN operates as described below. (1) Synch Break detection is enabled by writing 1 to the LSTART bit in the LINCR register of the hardware LIN. (2) When “L” level is input for a duration equal to or greater than the period set in timer RA, the hardware LIN detects it as Synch Break. At this time, the SBDCT flag in the LINST register is set to 1. Furthermore, if the SBIE bit in the LINCR register is set to 1, the hardware LIN generates a timer RA interrupt. Then it goes to Synch Field measurement. (3) The hardware LIN receives a Synch Field (55h). At this time, it measures the period of the start bit and bits 0 to 6 by using timer RA. In this case, it is possible to select whether to input the Synch Field signal to RXD0 of UART0 by setting the SBE bit in the LINCR register accordingly. (4) The hardware LIN sets the SFDCT flag in the LINST register to 1 when it finishes measuring the Synch Field. Furthermore, if the SFIE bit in the LINCR register is set to 1, it generates a timer RA interrupt. (5) After it finishes measuring the Synch Field, calculate a transfer rate from the count value of timer RA and set to UART0 and registers TRAPRE and TRA of timer RA again. Then it receives an ID field via UART0. (6) The hardware LIN performs communication for a response field after it finishes receiving the ID field. Figure 19.7 Typical Operation when Receiving a Header Field RXD0 pin Synch Break 1 0 RXD0 input for UART0 1 0 RXDSF flag in the LINCR register 1 0 Synch Field IDENTIFIER (2) (3) (5) (6) Shown above is the case where LINE = 1, MST = 0, SBE = 1, SBIE = 1, SFIE = 1 (4) (1) SBDCT flag in the LINST register 1 0 SFDCT flag in the LINST register 1 0 IR bit in the TRAIC register 1 0 Set by writing 1 to the B0CLR bit in the LINST register Cleared to 0 when Synch Field measurement finishes Measure this period Set by writing 1 to the B1CLR bit in the LINST register Cleared to 0 upon acceptance of interrupt request or by a program Set by writing 1 to the LSTART bit in the LINCR register |
|
链接网址 |
| 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 |