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.

need assembly code for sine wave using enhanced pwm

Status
Not open for further replies.

biswajitdas49

Member level 3
Member level 3
Joined
May 17, 2012
Messages
55
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
WEST BENGAL,INDIA
Activity points
1,726
hi everybody,
i need a assembly code for generating sine-wave using enhanced pwm in pic16f1936.
anybody help me!!!!:-(
 

hi biswajitdas sine wave can not be generated by controller but you can get idea from this circuit
Untitled.png
 

dear biswa check the detail of uc and uc working. and u have to use h bridge so left ccp use other pin to create wave
wave from controller.pngsine wave2.pngsine wave.png
 

dear biswa check the detail of uc and uc working. and u have to use h bridge so left ccp use other pin to create wave
View attachment 76904View attachment 76902View attachment 76903

actually zia,I don't understand how to vary the PWM duty cycle continuously by using look-up table to create sinewave.currently I using pic16f1936, ccp1 enhanced pwm mode for pwm pulse,timer2 for pwm period,Fosc=16Mhz.I just want to know that do u have any assembly code for this or any idea that I can change the PWM duty cycle continuously by using look-up table.

THANKS FOR REPLY!!!!!!!
 

if u have any lookup table then give me i will create it for u in mikroc on which file can converted to assemble by 'A' option.
 

Hello zia, do you know how to generate soft ware pwm? and if I have a LUT of sine wave how can you generate it using ccp module of pic.
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top