This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Usage of 24-bit ADC with AT89S52

I want to use 24bit ADC (SPI, e.g. AD7730) with Atmel 89S52 for instrumentation purpose.
I also want to use 16bit AD7705 ADC with Atmel 89S52.
Please suggest best suitable variable routine within 128 bytes of data memory.

Parents
  • Actually if i use long int to store 24 bit ADC output, AT89s52's data memory overflows.
    The main reason is ADC AVERAGING routine.
    So what i can do within AT89S52's RAM limit.

    I'm sorry, but you're leaving your readers way too much in the dark about the inner workings of your program.

    Storing a 24-bit ADC value in a 4-byte long int consumes 4 bytes of memory, so you must be doing more than just that if your function manages to overflow a 128-byte data memory space.

Reply
  • Actually if i use long int to store 24 bit ADC output, AT89s52's data memory overflows.
    The main reason is ADC AVERAGING routine.
    So what i can do within AT89S52's RAM limit.

    I'm sorry, but you're leaving your readers way too much in the dark about the inner workings of your program.

    Storing a 24-bit ADC value in a 4-byte long int consumes 4 bytes of memory, so you must be doing more than just that if your function manages to overflow a 128-byte data memory space.

Children
No data