- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
3. any other Configuration needed from config Wizard.
please guide me.
Thank You.
Rupesh.
Solved! Go to Solution.
- Tags:
- tle9879
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
>> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @RupeshChaudhari,
Could you please let us know the devices you are using for the above application?
Thank you
Best Regards
Raj Chaudhari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ref TLE987x
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Is any other LIN configuration from Config Wizard is needed?
2. @Raj_C Devices ?
- Designed Board with TLE9879QXA40
- Power Supply(12V/5A).
- PWM Generator.
Looking forward to hearing from you.
Thank You.
Rupesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
>> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
......