Other Parts Discussed in Thread: HALCOGEN,
Tool/software: Code Composer Studio
Hello, everyone, I'm glad you answer to my question, thank you very much!
I recently in the use of TI TMS570LS0432 security chip, the company intends to use this one do a car controller chips, used in automotive electronic power steering control, need to use PWM module, I use compile environment is CCS6.1, using the code generator HALCOGEN04.05.01.The controller without PWM module, however, need to PWM waveform is generated by HET module configuration, after the configuration has been able to generate PWM waveform, but the problem is the precision of the PWM waveform is too low, I am using HALCOGEN generated interface function, as shown in figure:
The parameter uint32 pwmDuty can only input the number 0 to 100, using the oscilloscope to measure PWM waveform of the output duty cycle of 0 to 100%, the input value represents the duty ratio of output waveform, such precision is too low.I need to output a PWM waveform cycle of 20 KHZ, the bus clock is 80 MHZ, the cycle time of 12.5 ns, so a cycle number 4000, excuse me, I need to work, how to make the input number is 0 to 4000, on behalf of the output waveform of duty ratio of 0 to 100%, below is an image I configuration:
Ask everybody to help me see what need to do, need to do to modify the interface function can satisfy my needs, be obliged!