参数资料
型号: TOOLSTICK530ADC
厂商: Silicon Laboratories Inc
文件页数: 78/220页
文件大小: 0K
描述: DAUGHTR CARD TOOLSTICK C8051F530
标准包装: 1
系列: ToolStick
类型: MCU
适用于相关产品: C8051F530A
所含物品:
产品目录页面: 626 (CN2011-ZH PDF)
配用: 336-1345-ND - TOOLSTICK BASE ADAPTER
336-1182-ND - ADAPTER USB DEBUG FOR C8051FXXX
相关产品: 336-1486-5-ND - IC 8051 MCU 8K FLASH 20TSSOP
336-1485-5-ND - IC 8051 MCU 8K FLASH 20QFN
其它名称: 336-1487
第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页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页当前第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页
Rev. 1.4
169
C8051F52x/F53x
17.3. LIN Master Mode Operation
The master node is responsible for the scheduling of messages and sends the header of each frame, con-
taining the SYNCH BREAK FIELD, SYNCH FIELD and IDENTIFIER FIELD. The steps to schedule a mes-
sage transmission or reception are listed below.
1. Load the 6-bit Identifier into the LIN0ID register.
2. Load the data length into the LIN0SIZE register. Set the value to the number of data bytes or "1111b" if
the data length should be decoded from the identifier. Also, set the checksum type, classic or
enhanced, in the same LIN0SIZE register.
3. Set the data direction by setting the TXRX bit (LIN0CTRL.5). Set the bit to 1 to perform a master
transmit operation, or set the bit to 0 to perform a master receive operation.
4. If performing a master transmit operation, load the data bytes to transmit into the data buffer (LIN0DT1
to LIN0DT8).
5. Set the STREQ bit (LIN0CTRL.0) to start the message transfer. The LIN peripheral will schedule the
message frame and request an interrupt if the message transfer is successfully completed or if an error
has occurred.
This code segment shows the procedure to schedule a message in a transmission operation:
LINADDR
= 0x08;// Point to LIN0CTRL
LINDATA
|=
0x20;// Select to transmit data
LINADDR
= 0x0E;// Point to LIN0ID
LINDATA
= 0x11;// Load the ID, in this example 0x11
LINADDR
= 0x0B;// Point to LIN0SIZE
LINDATA
= ( LINDATA & 0xF0 ) | 0x08; // Load the size with 8
LINADDR = 0x00;// Point to Data buffer first byte
for (i=0; i<8; i++)
{
LINDATA = i + 0x41;// Load the buffer with ‘A’, ‘B’, ...
LINADDR++;// Increment the address to the next buffer
}
LINADDR
= 0x08;// Point to LIN0CTRL
LINDATA
= 0x01;// Start Request
The application should perform the following steps when an interrupt is requested.
1. Check the DONE bit (LIN0ST.0) and the ERROR bit (LIN0ST.2).
2. If performing a master receive operation and the transfer was successful, read the received data from
the data buffer.
3. If the transfer was not successful, check the error register to determine the kind of error. Further error
handling has to be done by the application.
4. Set the RSTINT (LIN0CTRL.3) and RSTERR bits (LIN0CTRL.2) to reset the interrupt request and the
error flags.
相关PDF资料
PDF描述
1546452-2 CABLE PLUG-PLUG ETHERNET 5METER
XC8102AA01MR-G IC LOAD SWITCH 400MA SOT-25
1546452-1 CABLE PLUG-PLUG ETHERNET 2METER
RSM08DRKI CONN EDGECARD 16POS DIP .156 SLD
AP2411FGE-7 IC USB SWITCH DFN3030-8
相关代理商/技术参数
参数描述
TOOLSTICK530MPP 功能描述:插座和适配器 C8051F530/1/3/4/6/7- IM MCUs Dev Tool RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
TOOLSTICK530TPP 功能描述:插座和适配器 C8051F530/1/3/4/6/7- IT MCUs Dev Tool RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
ToolStick540DC 功能描述:子卡和OEM板 ToolStick C8051F540 Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
ToolStick542PP 功能描述:插座和适配器 ToolStick Prog. Platform RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
ToolStick560DC 功能描述:子卡和OEM板 ToolStick C8051F560 Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit