Configuration bits and timing


Results 1 to 7 of 7

Threaded View

  1. #6
    Join Date
    Jun 2011
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Configuration bits and timing

    I didn't see ANSEL in the p18f26k80.h file.
    So I tried the following using the ANCON configuration registers and it seems to work;

    ADCON0 = %00000000 ;P364 A/D CONTROL REGISTER 0
    ADCON1 = %00000000 ;P365 A/D CONTROL REGISTER 1
    ADCON2 = %00000000 ;P366 A/D CONTROL REGISTER 2
    ODCON = %00000000 ;P179 PERIPHERAL OPEN-DRAIN CONTROL REGISTER
    ANCON0 = %00000000 ;P369 A/D PORT CONFIGURATION REGISTER 0***
    ANCON1 = %00000000 ;P369 A/D PORT CONFIGURATION REGISTER 1***
    CM1CON = %00000000 ;P378 COMPARATOR CONTROL x REGISTER
    CM2CON = %00000000 ;P378 COMPARATOR CONTROL x REGISTER

    Thanks for pointing me in the right direction.
    Last edited by RayL113; - 17th November 2012 at 05:07. Reason: Forgot to say Thanks

Similar Threads

  1. RC5 code for infrared receiver
    By Dennis in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 11th January 2017, 12:34
  2. 12F683 serout timing
    By Hobie Cat in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 16:57
  3. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55

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