Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hi
I did some new detailed test and I saw a problem regarding the PWM generation
Even thoug I change the DATA value on the hetRAM1->Instruction[(PWM_CH2 << 1U) + 41U].Data
for the duty configuration, I don't see any change in the PWM output if the DATA change is less of 10.
In this my test programm, the duty configuration is written as DATA reading in loopback the value setted
on the variable AN1.
Data value on pwmchannel 0 = 4672
PWM1=500 AN1=2087
Data value on pwmchannel 0 = 4662
PWM1=499 AN1=2087
Data value on pwmchannel 0 = 4653
PWM1=498 AN1=2087
Data value on pwmchannel 0 = 4644
PWM1=497 AN1=2087
Data value on pwmchannel 0 = 4626
PWM1=495 AN1=2087
Data value on pwmchannel 0 = 4617
PWM1=494 AN1=2087
Data value on pwmchannel 0 = 4608
PWM1=493 AN1=2087
and finally writing 4599, the PWM output channel change reading 2145
Data value on pwmchannel 0 = 4599
PWM1=492 AN1=2145
Any suggestion?
Thanks





























