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
  • there is a way

    make it 64 samples to average
    have
    one slot "new"
    two slots "two"
    two slots "four
    tho slots "eight"
    tho slots "sixteen"
    two slots "thirtytwo"
    one slot "result"
    12 slots
    make the "two" slots alterantively average two readings in "new", when both are full, make the "four" slots alterantively average two readings in "two", when both are full...

    code from the days when SRAM cost money :)

    Why on earth do you not get a chip with some decent RAM there are several with 8k and about anythingg inbetween.

    Eriik

Reply
  • there is a way

    make it 64 samples to average
    have
    one slot "new"
    two slots "two"
    two slots "four
    tho slots "eight"
    tho slots "sixteen"
    two slots "thirtytwo"
    one slot "result"
    12 slots
    make the "two" slots alterantively average two readings in "new", when both are full, make the "four" slots alterantively average two readings in "two", when both are full...

    code from the days when SRAM cost money :)

    Why on earth do you not get a chip with some decent RAM there are several with 8k and about anythingg inbetween.

    Eriik

Children
No data