Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

MCP3001 A/D interface with 8051 mcu in c pro.

Status
Not open for further replies.

arun_9998

Banned
Joined
Aug 25, 2008
Messages
53
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,288
Location
india
Activity points
0
how i convert 10 bit data to voltage
if recived 10 bit data is 07CE vrf is 4.096:-(
 

how i convert 10 bit data to voltage
if recived 10 bit data is 07CE vrf is 4.096:-(

it's a math problem.

for example,the range for 10bit data is 0~3ff(hex),
if ADC data 3ff equals to 4096(depends on your hardware definition),
then you can calc that
1'b1=4096/(2^10)=4096/1024=4mV,
that is,
10'h1 = 4mV,10'h2=2*4mV=8mV...10'h1024=1024*4mV=4096

so you can calc the voltage for "07CE"!
 
sorry,i didnot notice the number,

maybe write mistake
 

It could be a triping mistake as you say :wink: The other possibility is that the SPI is not configured correctly - MSB/LSB first etc.

Keith.
 

can u post me c source code for spi
thonks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top