free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
nicholastyc
Fri May 09 2008, 12:45AM
 User Offline
Registered Member #7707
Joined: Wed May 07 2008, 07:13PM

Posts: 38
Thanked 1 time in 1 posts
Hi,
I need help on generating PWM signal to the output, iread over the tutorials about the PWM signal, i m sorry, because i really dunno much about the programming, my question is, i don understand about the timer0 function, and i m using pic12f629, and 3 PWM outputs needed, 2nd output is 50 width slower than the 1st output, and 3rd output is 50 witdh slower than 2nd output.
can some1 who has spare time, can provide me a PWM code in ASM mode and explanation, i m willing to learn on how to make a successful program.

Thank you so much...




[ Edited Fri May 09 2008, 01:10AM ]
Back to top


nicholastyc
Sat May 10 2008, 11:06PM
 User Offline
Registered Member #7707
Joined: Wed May 07 2008, 07:13PM

Posts: 38
Thanked 1 time in 1 posts
hi Ajay i need some help on generating PWM signal...please show me some example of programming the PWM code in ASM and the tutorial is not the pic type i m using...i m bit confused on that Timer0 ...
please lend me a hand on this..thank you.
Back to top


Ajay
Sun May 11 2008, 05:29PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
do you know how to use PIC timers?
all you need to do is make pin high and low for specified times..

Timer0 can be configured for counting from 00 to FFH
let say you want a PWM signal with x is width of high so width of low will be FF - x
such that total will remain FF.

when x count is over then you need to change state of pin and load value FF-x in timer after that count is over change state of pin and reload counter to x and so on..
this reloading will be done in interrupt service routine of timer0.

Please write a small code i will rectify it if i find and mistake.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems