This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LC4357: HALCoGen Drivers

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: Code Composer Studio

Hi, I created code to run an LS0432 development board ADC conversion process, with the HET1[08] providing an event trigger at 1kHz (PWM module, 50% duty). This was visible on a 'scope. Drivers created using HALCoGen 04.07.01. Analogue inputs were converted as required.

I then copied the relevant code into a different project using the TMS570LC4357 devboard with new set of HALCoGen drivers.

However, now, with no HET output stages enabled to drive, HET1[08] provides a 100KHz output, 400ns high period and HET1[10] provides 1KHz, high for 2.6us. HET outputs [8] and [10] should be producing 1KHz and 10KHz respectively at 50%.

Looking at ADC conversion results direct from the conversion results memory (SPNU563A–March 2018 para 22.2.1.9.2), I see values tagged with the channel number that I've enabled: the light-sensor on channel 9 varies with ambient so that's working, but whatever I set the ADC resolution to, it always provides 12-bit. This probably doesn't matter in my application but I thought that I'd seen the channel number is presented differently for 10bit versus 12-bit operation. However, I can't seem to get the event-triggered operation that I require (at 1KHz).

Am I missing a major setting that's different between the two boards? Both have the requisite drivers enabled, and Init code called.

Thanks

  • Hello King,

    Since the VCLK on LC43x and LS032x are different, the N2HET PWM code running on LS0432 won't work well on LC43x. Please use HALCOGen to generate PWM code for LC43x instead of using the code for LS043x.

  • Thanks. But it would not be easy to re-use the 0432 code as the 4357 drivers are all named starting with HL_ anyway.

    I had deleted all the drivers from 0432...

    Ah, I see that the two rows of pins on the J11 have had their numbers screen-printed against the wrong row, so it helps to connect correctly.

    Regards