Discussion in "Project Help" started by    TB    Aug 9, 2008.
Sat Aug 09 2008, 07:50 AM
#1
I'm using a Dallas 8051 (DS89C450) for my microcontroller project and it's working fine with serial and a LCD, but now I want to add a MAX192 seriel ADC to it. I have a rough idea of how to write the software for it, but I'm not sure on how to connect it to my board. (I'm a programmer, not an electrical engineer )

At the moment I use Port1 for the LCD and three pins on P3 to control the LCD. Port 0 and Port 2 are not used at all, and 5 pins on port3 are not used. I guess I can use the free pins on port3 to the ADC? If I understand the datasheet of the ADC correct I need the following pins on the microcontroller:

ChipSelect (CS)
SCLK
DIN
DOUT

But what about VRef ? (Can I connect this to VDD?)

To put it shortly (isn't this too late now? ) how do I have to connect it? Where do I need capacitors, and where do I need resistors?
Tags free pinsmicrocontroller projectelectrical engineerrough ideaadc
Sat Aug 09 2008, 11:59 AM
#2
well ..
it is generally preferred not to connect VREF to VDD.

mostly in case of sensitive ADC application u either use two separate power supplies... for Analog and digital sections or simply isolate digital ground from analog ground.

but if it is just an experiment... just add a variable resistor/pot (small value) between VDD and Vref.
u are also supposed to add a zero ohm impedance between your analog signal and the ADC analog i/p pin.(use any resistance around 50E to gain the same effect.)


Tags variable resistorohm impedancedigital sectionsanalog signaladc
Sat Aug 09 2008, 12:07 PM
#3
Have a look at this thread .. http://www.8051projects.net/forum-t8042-last.html

For Vref you can use the typical operating ckt in pg 24.It allows for a single-ended input of 0-4.096 V with a 4mV step size.
Tags cktpg
Sat Aug 09 2008, 01:08 PM
#4


Have a look at this thread .. http://www.8051projects.net/forum-t8042-last.html

sashijoseph




Thank you for the link, but it doesn't say anything about the schematics :/ I think I have a good understand of how to interface the max192 - it's the schematics I'm not sure about. Can I just connect CS, Din and Dout to three pins on my microcontroller? (eg. P3) or do I have to use some resistors, capacitors and so on?


For Vref you can use the typical operating ckt in pg 24.It allows for a single-ended input of 0-4.096 V with a 4mV step size.

sashijoseph



Hmm, I need to monitor values between 0 and +5.0V - so I have to make a divider to bring the voltage down? (eg. a 4/5 divider)
Tags cktdoutdividermicrocontrollerschematics
Sat Aug 09 2008, 03:56 PM
#5
hi TB,
i think it is sufficient to connect the control pins directly to the uC.
As for the reference i would agree with shashi and shyam that u go for 4.096 internal reference ( looks fine as it has a good temperature stability too(30ppm/deg.)).So, yes , u will have to drop ur input voltage in the ratio 4/5.

using a reference close to the supply voltage of the ADC may create some non-linearity in the conversion at the full scale level ( do not know about this ADC as i have not used it as yet, but have observed this in many other ADCs i have used. )
Tags internal referencetemperature stabilityadcsshashishyam
Sat Aug 09 2008, 05:51 PM
#6
pdi: Thank you for your reply

What about the VDD, Ground and so on - do I need any capacitors or resistors there?
Tags resistorscapacitorsreply
Sun Aug 10 2008, 12:35 AM
#7
Fig 18 in the datasheet shows just that.
In general you can directly connect VDD,unless the supply is very noisy,in which case use a 10ohms resistor(which forms a low pass in conjunction with the bypass caps) as specified in the datasheet.
Usually a 0.1uF bypass cap from VDD to Agnd pin(as close to the pins as possible) suffices.
Tags datasheetresistorpinsconjunction

Get Social

Information

Powered by e107 Forum System

Conversation

scena
Wed May 20 2020, 03:59 AM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sun May 03 2020, 01:08 AM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 07:09 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Sat Mar 14 2020, 04:06 AM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 06:25 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 09:41 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 09:28 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 02:42 PM
Pearl Olin
Hello,
Wed Jan 22 2020, 10:46 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 11:38 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me

Downloads

Comments

Davidthils
Thu May 21 2020, 08:44 AM
Jakeror
Wed May 20 2020, 09:28 PM
motorCar
Wed May 20 2020, 03:05 PM
Vordrync
Wed May 20 2020, 07:52 AM
JadenjiT
Wed May 20 2020, 03:15 AM
scena
Tue May 19 2020, 06:08 PM
CodySiz
Tue May 19 2020, 02:22 PM
ClaireSat
Mon May 18 2020, 09:50 PM

Online

Guests: 88, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 01:37 AM

Members: 38211
Newest member: Davidthils
Forum Activity
xrxx Avatar
Posted By xrxx
Thu Apr 30 2020, 06:59 AM
BCD MULTIPLICATIONAssume that you have to 2 BCD nu...
liqian Avatar
Posted By liqian
Tue Apr 28 2020, 05:26 AM
I happened to see your post and I got many useful ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Apr 28 2020, 04:21 AM
The code is hard to read.Please zip it and attach ...
rogermado Avatar
Posted By rogermado
Sun Apr 26 2020, 01:53 AM
@ExperimenterUK, thanks for your reply. You'll fin...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Apr 25 2020, 05:42 PM
Some simulators handle displays better than others...
rogermado Avatar
Posted By rogermado
Sat Apr 25 2020, 03:59 PM
Hello everyone, sorry in advance if i'm not in the...
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...