Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 14th September 2004, 10:53 AM   (permalink)
Default Voltage to PWM output conversion

Hi all

Fairly new to this game so please be gentle.

I'm looking for a device or method that will take a voltage of up to 5v as input and provide a PWM output that I can decode with a PIC to determine the voltage. The PIC has A/D converters on-board but they're already in use and I've insufficient input pins left to use the A/D conv modules I've seen.

Thanks
Steve
Building_A_Robot_Fish is offline  
Old 14th September 2004, 11:56 AM   (permalink)
Default Re: Voltage to PWM output conversion

Quote:
Originally Posted by Building_A_Robot_Fish
Hi all

Fairly new to this game so please be gentle.

I'm looking for a device or method that will take a voltage of up to 5v as input and provide a PWM output that I can decode with a PIC to determine the voltage. The PIC has A/D converters on-board but they're already in use and I've insufficient input pins left to use the A/D conv modules I've seen.
It would look to be far easier to use one of the existing internal A2D inputs, simply add a CMOS switch on the A2D input, and switch it using the spare I/O pin you have. The CMOS switches come with more than one switch, so you could do it for a number of analogue inputs.

This is actually how the PIC works internally, it only has one A2D, the pins are switched to it in turn by CMOS switches.

Failing that, you could re-evaluate your requirements, and try and free up one of the existing A2D inputs, but the CMOS switch idea should work perfectly.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 02:29 PM.


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

eXTReMe Tracker