전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN1278 데이터시트(PDF) 27 Page - STMicroelectronics

부품명 AN1278
상세설명  Many mechanical components in the automotive sector have been replaced
PDF  44 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1278 데이터시트(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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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