TLE9879 PWM+LIN Interface

Announcements

Webinar: Integrated solutions for smaller, simpler low-voltage motor control design.
Join the webinar to experience!

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RupeshChaudhari
Level 1
Level 1
10 likes given 10 sign-ins 5 likes given

1. I want to Control my motor RPM w.r.t PWM coming from PWM+LIN pin( internal LIN Trx)

2. I am able to control my motor RPM w.r.t .PWM coming from P1.2 (external control input) but I want to use only internal LIN Trx as PWM input.

RupeshChaudhari_0-1661499081047.png

3. any other Configuration needed from config Wizard.

please guide me.

Thank You.

Rupesh.

0 Likes
1 Solution

Hi @RupeshChaudhari,

1) I can confirm that you have to make only the following change in the config wizard:

  • External control input T2EX => internal LIN Trx

2) As mentioned by @siccodwars please, ensure that PWM signal  >  Vs/2 is applied at the LIN and connect other terminal of the PWM signal to the GND of the TLE9879's board.

Raj_JC_0-1662463693503.png

 

>> For debugging you can use Micro Inspector (Pro) tool for graphical visualization.

Q. Are you using Timer 2 PWM capture code example?

Please, let us know if you need further support.

Thank you

Best Regards

Raj Chaudhari

View solution in original post

8 Replies
Raj_C
Moderator
Moderator
Moderator
250 solutions authored 500 replies posted 50 likes received

Hi @RupeshChaudhari,

Sorry for the delayed response.

There is no need for any other config wizard changes other than the

  • External control input T2EX => internal LIN Trx

Please, let us know if you need further support.

 

Thank you

Best Regards

Raj Chaudhari

Hi @Raj_C 

Thank you for your reply!

 Config Wizard changes

When 

  • External Control Input T2EX => P1.2
  • I am giving an PWM signal to the P1.2 (Pin No.17).

I am able to measure Duty Cycle of given PWM(Capture Mode)and then control RPM w.r.t. Duty Cycle.

When

  • External Control Input T2EX => internal LIN Trx 
  • I am giving an PWM signal to the LIN pin (Pin No.43) instead of P1.2 (Pin No.17).

Now I am Unable to measure Duty Cycle of given PWM(Capture Mode).

please guide me.

Thank You.

Rupesh.

0 Likes

Hi @RupeshChaudhari,

Could you please let us know the devices you are using for the above application?

Thank you

Best Regards

Raj Chaudhari

siccodwars
Level 3
Level 3
First like received 10 replies posted 10 sign-ins

Ref TLE987x

LIN.png

user manual page 648, figure 178, LIN Tranceiver block diagram, you will need to wire GND_IN and your PWM signal on pin LIN must be high at >> VS/2. So not 5V amplitude as you had it working on pin P1.2.

 

Hi @siccodwars  @Raj_C  

Thank you for your reply!

1. @siccodwars

  •  As per LIN specification from Datasheet and User manual I have given the PWM Signal with Amplitude greater than Vs/2 to LIN pin still I am not able to Capture PWM Duty Cycle. 
  • Please refer below image for further information.

download.png

  • Is any other LIN configuration from Config Wizard is needed? 
 

2. @Raj_C  Devices ?

  • Designed Board with TLE9879QXA40 

 

download.png

  • Power Supply(12V/5A).
  • PWM Generator. 
 
Looking forward to hearing from you.

Thank You.

Rupesh.

 

 

 

 

 

 

0 Likes

Hi @RupeshChaudhari,

1) I can confirm that you have to make only the following change in the config wizard:

  • External control input T2EX => internal LIN Trx

2) As mentioned by @siccodwars please, ensure that PWM signal  >  Vs/2 is applied at the LIN and connect other terminal of the PWM signal to the GND of the TLE9879's board.

Raj_JC_0-1662463693503.png

 

>> For debugging you can use Micro Inspector (Pro) tool for graphical visualization.

Q. Are you using Timer 2 PWM capture code example?

Please, let us know if you need further support.

Thank you

Best Regards

Raj Chaudhari

siccodwars
Level 3
Level 3
First like received 10 replies posted 10 sign-ins

Rupesh, 

Do you have uVision and a debugger? If yes then run your project in the debugger and check out the settings in the LIN tranceiver after your program code has started. The "interactively peek&poke inside" LIN hardware window on the right opens when you select Peripherals, System Viewer, LIN. You can then see the level of RXD. If you pull pin LIN to GND then this status toggles from 1 (checked) to 0 (unchecked). Precondition for that to work is that HV_MODE is set to ENABLE.

 

siccodwars_0-1662367619137.png

 

So yes, configure LIN. But also you'll need to set TXD (LIN->CTRL_STS.bit.TXD) after the TLE_Init() is done. Because if you don't do that, then the LIN line will (might) be pulled low by the LIN transmitter...

And your board must have TLE9879 pin LIN_GND wired to GND!

int main(void)
{
// Initialize all device functionalities
TLE_Init();
LIN->CTRL_STS.bit.TXD = 1;

......

 

siccodwars_1-1662370918146.png