| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
AN1278 Datasheet(PDF) 32 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1278 Datasheet(HTML) 32 Page - STMicroelectronics |
|
32 / 44 page ![]() 32/44 LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS The corresponding initialization code is: Interrupt: The timer is only used for the timeout handling so the “LINTimeOut_Interrupt” function just needs to be called in the Timer A interrupt service routine defined by the application which cor- responds to the following code: TACR1=0x40; TACR2=0x00; TASR; TAOC2_L; TAOC2_H=0x55; TASR; TAOC1_L; TAOC1_H=0x55; /* -output compare interrupt enabled */ /* prescaler = 4 */ /* erase OC2F flag and */ /* and disable it */ /* erase OC1F flag and */ /* and disable it */ /*------------------------------------------------------------------------------ ROUTINE NAME : TIMA_Init INPUT/OUTPUT : None DESCRIPTION : Configure the Timer A COMMENTS : ------------------------------------------------------------------------------*/ void TIMA_Init(void) { } void LINTimeOut_Interrupt(void); /*------------------------------------------------------------------------------ ROUTINE NAME : TIMA_Interrupt INPUT/OUTPUT : None DESCRIPTION : timer Interrupt Service Routine COMMENTS : ------------------------------------------------------------------------------*/ @interrupt void TIMA_Interrupt(void) { LINTimeOut_Interrupt(); } |
|
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 |