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
 
Thread Tools Display Modes
Old 5th February 2008, 10:53 PM   (permalink)
Default

Not strictly speaking at the exact same time, but I see no reason why you couldn't get close enough, if you had enough pins.
Darth Bagel is offline   Reply With Quote
Old 5th February 2008, 10:55 PM   (permalink)
Default

Quote:
Originally Posted by Kryten
bananasiong is it possible to sample two signals from external ADC at the same time on a PIC18XXXXXXX?
You can if the ADC supports it. You won't be reading them into the PIC simultaneously though unless it has some crazy parallel or multi-serial interface (but you probably don't need to anyways).

A dsPIC for example has multiple sample-holds for it's ADC. It can capture all the samples at the same time but only uses one SAC register to convert them. So it samples them all at the same time, but only converts (ie. reads them) them sequentially. THey are all sampled at the same point in time though.
dknguyen is offline   Reply With Quote
Old 6th February 2008, 02:51 AM   (permalink)
Default

You don't need external ADC, just switching between two channels if time is allowed. Or if you want PIC18F2331 (or the same family) has two sample and hold which allow you to sample two channels simultaneously. But the conversion time channel by channel. It has 4 level FIFO so you don't have to worry about the data loss.
Depends on your sampling frequency, if you don't need that fast, just PIC16 will do by switching the channels.
__________________
Superman returns..
bananasiong is online now   Reply With Quote
Old 6th February 2008, 08:49 AM   (permalink)
Default

Well im going to have at least 10 samples/sec (maybe more) so it will probaly be enough with a PIC16..
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 6th February 2008, 09:26 AM   (permalink)
Default

Quote:
Originally Posted by Kryten
Well im going to have at least 10 samples/sec (maybe more) so it will probaly be enough with a PIC16..
10 samples per second is a nice easy slow rate, easily done.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 6th February 2008, 09:29 AM   (permalink)
Default

So i can just use the one AD inside and plex my way from one to the other?
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline   Reply With Quote
Old 6th February 2008, 09:40 AM   (permalink)
Default

Yeah just switch to different channel as you want.
__________________
Superman returns..
bananasiong is online now   Reply With Quote
Old 6th February 2008, 09:40 AM   (permalink)
Default

Quote:
Originally Posted by Kryten
So i can just use the one AD inside and plex my way from one to the other?
Yes, exactly as it's designed to do (and as, as far as I know, all other A2D's are).
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
The Oscilloscope ElectroMaster Electronic Theory 12 3rd February 2008 01:45 PM
3 Inputs & 3 Outputs Coding problem Suraj143 Micro Controllers 16 17th August 2007 04:19 AM
Hardwiring multiple switches to common inputs Franknstein Electronic Projects Design/Ideas/Reviews 7 25th April 2007 11:02 AM
PIC A/D Sampling multiple inputs NJ Roadmap Micro Controllers 10 21st February 2007 01:53 AM
Multiple Units Transmission Coding Spasm Micro Controllers 4 18th March 2004 08:52 AM



All times are GMT. The time now is 05:47 AM.


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