Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 25, 2024, 11:49:17 23:49


Login with username, password and session length


Pages: [1]
Print
Author Topic: SAR ADC with pic  (Read 2534 times)
0 Members and 1 Guest are viewing this topic.
jeanninemtv
Senior Member
****
Offline Offline

Posts: 311

Thank You
-Given: 57
-Receive: 25


« on: December 12, 2007, 06:11:49 18:11 »

how to make a SAR ADC for a 16f84a??  i read that you can acchieve 10 or 12 bit accurate... its true?
Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 40


« Reply #1 on: December 12, 2007, 07:05:18 19:05 »

Hi

If you code SAR (successive approximation register) algorithm in 16f84 and drive a 10/12 bit DAC outside with ref and comparator you can make a SAR ADC with 10 or 12 bits resolution. This is not 10 or 12 bits accuracy !!
Noise considerations, DAC accuracy and ref won't allow, IMHO, such accuracy.

regards
« Last Edit: December 13, 2007, 09:54:43 09:54 by 8K51 » Logged
Tre
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 2
-Receive: 0


« Reply #2 on: December 13, 2007, 06:56:55 06:56 »

It is probably true that you can make a 10-12 bit SAR ADC, but you wouldn't be able to get much frequency since SAR's oversample significantly and noise shape.  I'm not entirely sure how you implement the noise shaping either.  At any rate, a link would be interesting.
Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 40


« Reply #3 on: December 13, 2007, 09:59:53 09:59 »

Hello Tre !

...."oversampling and noise shaping" ... maybe you mean Delta-Sigma converter ?
Logged
jeanninemtv
Senior Member
****
Offline Offline

Posts: 311

Thank You
-Given: 57
-Receive: 25


« Reply #4 on: December 13, 2007, 05:08:45 17:08 »

lol

no clear ideas about the algorithm!!!

i am so confused
Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 40


« Reply #5 on: December 13, 2007, 06:30:57 18:30 »

Ok , I try to explain more (8bits)

hardware :
-16F84 sends a byte to a DAC (or R/2R ladder)
-Dac's voltage ouput goes to - pin of a comparator
-voltage to convert goes to + pin of same comparator
-comparator's ouput return in some 16f84 input

software:
1. pic sends 1000 0000 ....
    ...get comparator's ouput in bit 7 of a variable.
   ==> LSB (Bit7) is known
2  according to comparator's output :
    pic sends 1100 0000
                or 0100 0000
                get comparator's ouput in bit 6 of same variable
                ==>  Bit 6 is known...

3 The next try gives bit 5... and so on

This method sens 1/2 full scale first, then 1/4 or 3/4 according to previous result......

regards

       
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC