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.
this is the similar program that I have.
I want to use the converted adc decimal value to use in equation and display result on lcd, and to use that decimal value I have to combine it in one integer.
I can convert adc value to decimal value, like I said above.
What I want is to combine decimal values a(MSB),b(middle value),c(LSB) to single integer.
In simple words I want to combine three integers into single integer.
Hi, I am using ADC0804 and converting binary value to decimal as follows:
void binary_to_decimal()
{
value = OUTPUT; //get value from ADC
x = value / 10; //binary to decimal conversion
a = x / 10; //MSB of digital value
b = x % 10; //middle digit
c = value % 10; //LSB
}...
Tried it. still no difference. showing random characters
- - - Updated - - -
one thing i have noticed is that when I power up controller and lcd. it shows correctly for some time and then shows some random character
I am interfacing at89s52 with 16*2 lcd. Problem is that lcd don't shows the character that I have written in the code. it shows some random character or weird character. Plz chk my code if it's correct or not:
#include<reg52.h>
sfr ldata=0x90;
sbit rs=P3^7;
sbit rw=P3^6;
sbit en=P3^5...
I was using adc0831 and lm35 with at89s52. Now I am using adc0804 instead. I have written the code, it simulates on proteus but not running on the hardware. I am posting the code I have written. Plz mention if there is any problem.
Problem:
when I use while (intr == 1) lcd only shows black...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.