| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
ST92F124 Datasheet(PDF) 415 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST92F124 Datasheet(HTML) 415 Page - STMicroelectronics |
|
415 / 429 page ![]() 415/429 ST92F124/F150/F250 - KNOWN LIMITATIONS KNOWN LIMITATIONS (Cont’d) Workaround 1 The workaround is to replace any occurrence of : by : x=0 for the CAN_0 cell x=1 for the CAN_1 cell y=0 for the Receive FIFO 0 y=1 for the Receive FIFO 1 Explanation of Workaround 1 First, we need to make sure no interrupt can occur between the test and the release of the FIFO to avoid any added delay. The workaround checks if the first 2 FIFO levels are already full (FMP = 2) as the problem happens only in this case. If FMP ≠2 we release the FIFO immediately, if FMP=2, we monitor the reception status of the cell. The reception status is available in the CMSR reg- ister bit 5 (REC bit). Note: The REC bit was called RX in olders ver- sions of the datasheet. If the cell is not receiving, then REC bit in CMSR is at 0, the software can release the FIFO immedi- ately: there is no risk. If the cell is receiving, it is important to make sure the release of the mailbox will not happen at the time when the received message is loaded into the FIFO. We could simply wait for the end of the reception, but this could take a long time (200µs for a 100-bit frame at 500kHz), so we also monitor the Rx pin of the microcontroller to minimize the time the appli- cation may wait in the while loop. We know the critical window is located at the end of the frame, 6+ CAN bit times after the acknowl- edge bit (exactly six full bit times plus the time from the beginning of the bit to the sample point). Those bits represent the acknowledge delimiter + the end of frame slot. We know also that those 6+ bits are in recessive state on the bus, therefore if the CAN Rx pin of the device is at ‘0’, (reflecting a CAN dominant state on the bus), this is early enough to be sure we can release the FIFO before the critical time slot. Therefore, if the device hardware pin Rx is at 0 and there is a reception on going, its message will be transferred to the FIFO only 6+ CAN bit times later at the earliest (if the dominant bit is the ac- knowledge) or later if the dominant bit is part of the message. spp (CANx_CTRL_PG); CANx_CTRL_CRFRy |= CRFR_rfom; spp(CANx_CTRL_PG); if ((CANx_CTRL_CRFRy & 0x03) == 0x02) while (( CANx_CTRL_CMSRy & 0x20) && (CANx_CTRL_CDGRy & 0x08)); CANx_CTRL_CRFRy |= CRFR_rfom; 1 |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |