The ADC Troubles of C8051F040

Home Evil Mad Scientist Forums Electronics The ADC Troubles of C8051F040

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20652
    hiroshima
    Participant

    Good afternoon,all
    I would like to ask you some advice about my project cause I am an electronic fan. My professional knowledge is limited.
    I am doing a project using AD of C8051F040 to sample. The input pot is AIN0.0 and AIN0.1. The voltage of reference input–VREF0 connects is 3.3V. This is the [datasheet of C8051F040](http://www.kynix.com/uploadfiles/pdf/C8051F040-GQ.pdf “datasheet of C8051F040”).
    Now the AIN0.1 input can sample normally. AIN0.0 always output 3.3V. I don’t know why?When I measured them the voltage did short out.
    Does everyone here meet such a situation? Could you give me some suggestions?
    Thanks a lot!

    #22925
    Windell Oskay
    Keymaster

    I don’t have experience with this chip, but if it’s giving an output, then you may have a different peripheral having control of that pin.

    You’ll also need to make sure that your MUX settings selects AIN0.0 to be active (rather tan AIN0.1), and that the correct Analog Input Enable Bit is set for that pin.

    #22926
    hiroshima
    Participant

    Windell Oskay,thanks for you remind! You are kind!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.