| Electronic Components Datasheet Search |
|
AN1278 Datasheet(PDF) 28 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1278 Datasheet(HTML) 28 Page - STMicroelectronics |
|
28 / 44 page ![]() 28/44 LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS The application can also be woken up by a sensor connected to one pin of the ST7 and then should also wake up the whole LIN network. For this a wake-up frame has to be sent, which is done by the “ LIN_SendWakeUpSignal()” function. This function is therefore inserted in the ap- plication wake-up interrupt: The software is ready! 4.2 IMPLEMENTATION ON THE ST72334N4 - HARDWARE SCI 4.2.1 Step by Step Configuration 4.2.1.1 lin_config.h @interrupt void PORTS_0_Interrupt(void) { unsigned char i; i=250; while(i--); if(!(PADR&0xFE)) { PAOR&=0xFE; LIN_SendWakeUpSignal(); } } Setting group Comments Text line in lin_config.h CPU operating frequency An external 16 MHz resonator is used. As a result the internal CPU frequency is 8 MHz. So “FCPU” is set to 8000000. #define FCPU 8000000 Communication peripheral The ST72334N4 has an on chip SCI peripheral. As a result “SCI” is defined, “UART_TIMERA” and “UART_TIMERB” are comment- ed out. //#define UART_TIMERA //#define UART_TIMERB #define SCI LIN RX and LIN TX pin definitions These are not needed when us- ing an on-chip SCI peripheral. All symbols are commented out. //#define UART_IC1 //#define UART_IC2 //#define UART_OC1 //#define UART_OC2 //#define LIN_PORT_ADD 0x04 //#define LIN_RX_PINNB 0 |
|
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 |