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.

SPWM generation with PIC16F1936

Status
Not open for further replies.

jean12

Advanced Member level 2
Advanced Member level 2
Joined
Aug 27, 2013
Messages
529
Helped
5
Reputation
12
Reaction score
6
Trophy points
18
www.ntigltd.com
Activity points
5,497
Hello there,I am trying to generate an SPWM signla which must be used for controlling an H-bridge but I am not succeeding;I used Tahmid blogs but I am not getting the point on calculation of the following values:
SET_FREQ=
PR2=
TBL_POINTER_SHIFT = TBL_POINTER_NEW >> 13;

Wan you please help me to think about that issue?

I am using a quartz of 12MHZ and want to generate a signal at 10KHZ what I am getting is PR2=74 with a prescaler of 4, SET_FREQ=683 with the shifting of 13bits,consider the attachment the proteus simulation circuit is in the same folder with the codes;please help.

Thank you!!
 

Attachments

  • codes.zip
    53.1 KB · Views: 59

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top