Apr 23, 2015 #1 A Arrowspace Banned Joined Jan 23, 2015 Messages 186 Helped 3 Reputation 6 Reaction score 3 Trophy points 18 Activity points 0 I written a code for center aligned PWM using dspic30f but at output i am getting edge aligned PWM , can anyone correct my code . PWMCON1 = 0b00110011; PTCON = 0; _PTCKPS = 0; _PTMOD = 0b10; PTPER = 600; PDC1 = PTPER; PDC2 = PTPER; PTMR = 0; _PTEN = 1;
I written a code for center aligned PWM using dspic30f but at output i am getting edge aligned PWM , can anyone correct my code . PWMCON1 = 0b00110011; PTCON = 0; _PTCKPS = 0; _PTMOD = 0b10; PTPER = 600; PDC1 = PTPER; PDC2 = PTPER; PTMR = 0; _PTEN = 1;
Apr 24, 2015 #2 KlausST Advanced Member level 7 Joined Apr 17, 2014 Messages 26,117 Helped 4,916 Reputation 9,857 Reaction score 5,765 Trophy points 1,393 Activity points 175,518 Hi, How do you know? Center alingned is hard to detect, you need an extra trigger signal.. With a single channel scope i can't imagine how to do it. Klaus
Hi, How do you know? Center alingned is hard to detect, you need an extra trigger signal.. With a single channel scope i can't imagine how to do it. Klaus
Apr 24, 2015 #3 A Arrowspace Banned Joined Jan 23, 2015 Messages 186 Helped 3 Reputation 6 Reaction score 3 Trophy points 18 Activity points 0 I have 4 channel DSO