18f26k22 - setting fuse in program


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: 18f26k22 - setting fuse in program

    Steve, also read this...

    17.2.10 A/D CONVERSION PROCEDURE
    This is an example procedure for using the ADC toperform an Analog-to-Digital conversion:1. Configure Port:• Disable pin output driver (See TRIS register)• Configure pin as analog2. Configure the ADC module:• Select ADC conversion clock• Configure voltage reference• Select ADC input channel• Select result format• Select acquisition delay• Turn on ADC module3. Configure ADC interrupt (optional):• Clear ADC interrupt flag• Enable ADC interrupt• Enable peripheral interrupt• Enable global interrupt
    (1)
    4. Wait the required acquisition time
    (2).5. Start conversion by setting the GO/DONE bit.6. Wait for ADC conversion to complete by one ofthe following:• Polling the GO/DONE bit• Waiting for the ADC interrupt (interruptsenabled)7. Read ADC Result8. Clear the ADC interrupt flag (required if interruptis enabled).

    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: 18f26k22 - setting fuse in program

    Steve, I also don't see where you are setting the A/D reference voltage source...
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Oct 2011
    Posts
    6


    Did you find this post helpful? Yes | No

    Default Re: 18f26k22 - setting fuse in program

    Hi Dave,


    I'll test as soon as possible following your advices



    Many thanks for your help...
    Steves

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