Lin periodicity [ Cycle Time ]

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lin periodicity [ Cycle Time ]

891 Views
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

Tags (2)
0 Kudos
Reply
1 Reply

855 Views
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 Kudos
Reply