Electronic Components Datasheet Search
  English  ▼

X  

AN1278 Datasheet(PDF) 27 Page - STMicroelectronics

Part # AN1278
Description  Many mechanical components in the automotive sector have been replaced
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1278 Datasheet(HTML) 27 Page - STMicroelectronics

Back Button AN1278 Datasheet HTML 23Page - STMicroelectronics AN1278 Datasheet HTML 24Page - STMicroelectronics AN1278 Datasheet HTML 25Page - STMicroelectronics AN1278 Datasheet HTML 26Page - STMicroelectronics AN1278 Datasheet HTML 27Page - STMicroelectronics AN1278 Datasheet HTML 28Page - STMicroelectronics AN1278 Datasheet HTML 29Page - STMicroelectronics AN1278 Datasheet HTML 30Page - STMicroelectronics AN1278 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 44 page
background image
27/44
LIN (LOCAL INTERCONNECT NETWORK) SOLUTIONS
application updating it with the latest data and the LIN communication sending its content on
request of the master. The corresponding code for the “
DataRequest_Notification” function is:
Data reception (
DataReceived_Notification)
The application handles 2 “data” frames from the master corresponding to the identifier 0x03
and 0x80. The first frame is part of the “normal” communication. The second frame is a sleep
command frame that can be sent by the master at any time to interrupt normal communication
and set all nodes into low power mode.
On reception of the first frame the application saves the received data into the variable
“
master_data[]“.
On reception of the sleep command frame the application sets the ST7 in Halt mode. Before
setting the ST7 in Halt mode the wake-up sources should be acitivated. An application func-
tion, “PORTS_WakeUp_On()“, is called. Two pins are configured as interrupt and will wake
the ST7 up on a corresponding interrupt request. The first pin is the Laniards pin. As a result
any bus activity will wake the application up. The second is an application pin that should be
also able to wake up the application.
The corresponding code for the “
DataReceived_Notification” function is:
Any activity on the bus will wake up the ST7 out of Halt mode. As soon as the ST7 is ready to
execute the next instruction any incoming frame can be received.
extern uByte slave_data[];
uByte * DataRequest_Notification(@tiny t_header *header)
{
if(header->identifier == ID_Table[1].id){
return(slave_data);
}
}
extern uByte master_data[];
void DataReceived_Notification(@tiny t_header *header, @tiny t_response *re-
sponse)
{
if(header->identifier == ID_Table[0].id){
master_data[0]=response->data[0];
master_data[1]=response->data[1];
}
else if(header->identifier == ID_Table[2].id){
PORTS_WakeUp_On();
_asm("halt\n");
}
}



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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