Posted on May 17, 2011 at 12:10 To answer my own post - in another software module P4SFS0 was being cleared soon after the PWM setup - effectively returning the port pin to GPIO mode. No wonder there was no PWM activity. Lesson learnt - adjust only ...
Posted on May 17, 2011 at 12:10My attempts at getting a simple PWM output on TCM5 leaves me baffled. My Keil code on a 24MHz uPSD3434E is:- PCACON1 = 0x00; // Disable PCA, use prescaled clock CCON3 = 0x14; // 1:16 prescaler, PCA clock enabled TCMMOD...
Posted on May 17, 2011 at 11:52Seems to me the uPSD3400 data sheet gives the wrong formula for the PCA clock when using Fosc as the source. The formula is shown as:- Fpca = Fosc / ( 2^PCAxPS[3:0] ) whereas it seems to be:- Fpca = Fosc / ( 256 * 2^...