- LaunchPad CC3200
- Energia 14
- Windows 7 64-bit
Hi all,
I'm trying to generate a PWM signal but I can understand relationship between this commands:
MAP_TimerLoadSet
MAP_TimerMatchSet
MAP_TimerPrescaleSet
MAP_TimerPrescaleMatchSet
Suppose I prescale Cpu_freq to 255.
Now I've done two test with a Led:
If I use TimerPrescaleMatchSet:
- TimerLoadSet and TimerMatchSet are ignored;
- I have more brightness led;
- I can change duty cycle with TimerPrescaleMatchSet.
If I don't use TimerPrescaleMatchSet and set TimerLoadSet and TimerMatchSet at 60000 and 30000:
- I have very weak brightness led;
- If I reduce TimerLoadSet and TimerMatchSet, change only brightness and not it's blinking Frequency;
- If I change TimerLoadSet and TimerMatchSet value, for example 60000 and 1000, change only brightness and not it's blinking Frequency or Duty Cycle.
My questions are:
- Why this difference in Led brightness?
- If TimerLoadSet should count to 0 and TimerMatchSet determinate wave change from 1 to 0 and 0 to 1, why they change only Led brightess and not Duty Cycle and Freq.?
- Why this difference between TimerPrescaleMatchSet and TimerLoadSet in Led brightness?
- Why User Driver Guide say me maximum TimerPrescaleSet is 255, shouldn't it be 65535 since it's a 16bit register(like TimerLoadSet and TimerMatchSet)?
Thank you.