| Electronic Components Datasheet Search |
|
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(); } |
|
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 |