Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

center aligned PWM Problem

Status
Not open for further replies.

Arrowspace

Banned
Full Member level 3
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;
 

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
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top