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.

Recent content by hashim5003

  1. H

    [SOLVED] Converting ADC value to single integer.

    I already did that it's working now. Thanks ALL for helping me out.
  2. H

    [SOLVED] Converting ADC value to single integer.

    #include <reg51.h> sfr OUTPUT = 0xA0; //ADC output port define sbit SR = P3^0; //300mV sbit R = P3^1; //ADC read sbit W = P3^2; //ADC start conversion sbit INTR = P3^3; //ADC conversion complete indication sfr ldata = 0x90; //LCD port define sbit RS = P3^7; //LCD...
  3. H

    [SOLVED] Converting ADC value to single integer.

    it is showing 2 instead of 50 and I instead of 124.
  4. H

    [SOLVED] Converting ADC value to single integer.

    It's working, but on lcd it shows some weird character.
  5. H

    [SOLVED] Converting ADC value to single integer.

    I have tried. Same error.
  6. H

    [SOLVED] Converting ADC value to single integer.

    error is on the red color line. void lcdcmd (unsigned char u) { ldata = u; //put LCD command values on pins RS = 0; RW = 0; EN = 1; //strobe enable pin delay(); EN = 0; } void lcddata (unsigned char v) { ldata = v; //put LCD data values on pins RS = 1; RW = 0; EN...
  7. H

    [SOLVED] Converting ADC value to single integer.

    ok. that works. but I a getting an error when I send it to lcd. "Illegal pointer conversion." what could be the reason?
  8. H

    [SOLVED] Converting ADC value to single integer.

    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.
  9. H

    [SOLVED] Converting ADC value to single 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.
  10. H

    [SOLVED] Converting ADC value to 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 }...
  11. H

    8051 lcd interfacing problem

    I will take the image tomorrow. i have used delays. could it be the problem of lcd hardware?
  12. H

    8051 lcd interfacing problem

    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
  13. H

    8051 lcd interfacing problem

    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...
  14. H

    ADC0804 and 8051 interfacing problem!

    anyone here?
  15. H

    ADC0804 and 8051 interfacing problem!

    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...

Part and Inventory Search

Back
Top