Lin periodicity [ Cycle Time ]

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Lin periodicity [ Cycle Time ]

681 次查看
itsnewforme
Contributor IV

Hii, I want to manipulate the time periodicity to send Lin frame on Bus.

How can I do that ?

Thanks in advance

标记 (2)
0 项奖励
回复
1 回复

645 次查看
nxf78987
NXP Employee
NXP Employee

Hi itsnewforme,

Lin stack sends frames based on schedule table. The frames in the schedule table are sent sequentially on the bus. When the end of the current schedule is reached, the schedule is started
again, at the beginning of the schedule. So, you can add the frames you want to send to a schedule in ldf file. And then you must use the l_sch_set() function to active this schedule. Please refer the chapter 2.4 of LIN_Specfication_package_2.2A.ldf for detail.
 
For example:
  1. Define NormalTable schedule in the ldf file. The schedule has two frames, there are Motor1Control and Motor1State_Cycl. The frame slot of each frame is 50ms.
            nxf78987_0-1669370198003.png

 

  1. After initialize LIN network interface, call the l_sch_set() function to active this schedule.
  2. nxf78987_1-1669370198004.png

     

  1. There are the frames that are sent sequentially on the bus.
          nxf78987_2-1669370198006.png

 

Best regards,

Dan

0 项奖励
回复