18F2431 Learning Curve


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: 18F2431 Learning Curve

    Thanks Henrik.

    I have downloaded the datasheet from your link - I have been working off a preliminary datasheet dated 2003...
    At least we are on the same page now

    Thanks also for the detailed explanation on OSCCON bits.

    Just to clarify - I did mention in my previous post that both OSCCON setups worked. Also, there was a typo in my previous post; my setup was OSCCON = %01111110 (I left out one of the "1's")

    ADCIN doesn't work with the ADC on 18F2431
    Oh, man.... What a bummer!
    Looks like I have more research to do on running it manually. I will do some searches and see what I can find from Bruce's previous posts.
    I am almost too scared to ask why it doesn't work but I am sure as hell it caused some major grief for people in the past.

    Cheers
    Barry
    VK2XBP

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: 18F2431 Learning Curve

    I am almost too scared to ask why it doesn't work but I am sure as hell it caused some major grief for people in the past.
    The reason is that the ADC is a bit different, and a bit more complicated, than on other chips. On the 18F2431 there are two sample and hold circuits so it can sample two analog voltages at the exact same time (and then convert them one after the other). It can also be setup to run continously in various configurations and put the results into a 4 word FIFO, an interrupt can be generated at various "fill levels" of the FIFO.

    /Henrik.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts