From: zachlac <zla...@gm...> - 2010-05-27 14:26:22
|
I cannot seem to control all four PWM's. I can get PWM's 8, 9, and 11 to function, but not 10, using the following PWM code: [code] #define PWM08_TCLR (0x4903e024) #define PWM09_TCLR (0x49040024) #define PWM10_TCLR (0x48086024) #define PWM11_TCLR (0x48088024) #define PWM08_MUX 0x48002178,0x01020000 #define PWM09_MUX 0x48002174,0x00000102 #define PWM10_MUX 0x48002174,0x00000102 #define PWM11_MUX 0x48002178,0x01020102 #define PWM_CLK (0x48004a40) #define PWM08_TLDR (0x4903e02c) #define PWM09_TLDR (0x4904002c) #define PWM10_TLDR (0x4808602c) #define PWM11_TLDR (0x4808802c) #define PWM08_TMAR (0x4903e038) #define PWM09_TMAR (0x49040038) #define PWM10_TMAR (0x48086038) #define PWM11_TMAR (0x48088038) #define PWM08_TCRR (0x4903e028) #define PWM09_TCRR (0x49040028) #define PWM10_TCRR (0x48086028) #define PWM11_TCRR (0x48088028) write32Bits(PWM10_TCLR, 0x00000000); // set gtp11_TCLR, stop the timer write32Bits(PWM10_MUX); // set mux for gpt11_pwm_evt write32Bits(PWM_CLK, 0x0000038A); // use the system clock (13MHz) write32Bits(PWM10_TLDR, startValueLong); // set value for gpt11_TLDR, timer load write32Bits(PWM10_TMAR, pulsewidthLong); // set value for gpt11_TMAR, timer match (set the pulse width) write32Bits(PWM10_TCRR, 0xffffffff); // set value for gpt11_TCRR, timercounter write32Bits(PWM10_TCLR, 0x00001843); // set gtp11_TCLR, start the timer [/code] How can I start to debug why one of the PWM's is not working? Has anybody else gotten all four working simultaneously? -- View this message in context: http://old.nabble.com/Controlling-all-4-PWM%27s-tp28693904p28693904.html Sent from the Gumstix mailing list archive at Nabble.com. |