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
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;
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
19,703
Helped
4,340
Reputation
8,687
Reaction score
4,302
Trophy points
1,393
Activity points
130,447
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top