Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 30th January 2004, 07:18 PM   (permalink)
Default PWM with timer2 in P16F877

hi people, i have a question, i'm trying to covert a simple analog signal into a pwm signal using a PIC 16F877. It means that if the voltage in CH5 (RE0) is 5V, the duty cycle is 100% but if the voltage is 0V the duty cycle is 0%. I used the PWM module but the quentios is this: do i have to disable the CCP1 to chenge the duty cycle (CCPR1L)??
david_mora is offline  
Old 30th January 2004, 10:14 PM   (permalink)
Default Re: PWM with timer2 in P16F877

Quote:
Originally Posted by david_mora
hi people, i have a question, i'm trying to covert a simple analog signal into a pwm signal using a PIC 16F877. It means that if the voltage in CH5 (RE0) is 5V, the duty cycle is 100% but if the voltage is 0V the duty cycle is 0%. I used the PWM module but the quentios is this: do i have to disable the CCP1 to chenge the duty cycle (CCPR1L)??
No, all you need to do is write to the register, it updates when it next outputs the pulse.
Nigel Goodwin is offline  
Old 5th February 2004, 03:59 AM   (permalink)
Default

i think you should use the ic sg3525a , this ic is capabel of working with 8 to 35 v andcan provide you the continuous pwm output.

sunil patel
contact_sunilpatel@yahoo.com
sunil patel is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:18 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker