Works on 16F but not on 18F - what am I missing?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Works on 16F but not on 18F - what am I missing?

    Try ADCON1 = 15 to set to all digital. It looks like portb.0 is an analog pin.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Works on 16F but not on 18F - what am I missing?

    Config settings are the only difference using an 18F with v2.6 (I have v2.60c).

    There are no changes to circuitry, Blinky should work.

    18F have a lot more config settings available though.

    Robert

    Edit: is the default osc settings the same with this 18F?

  3. #3
    Join Date
    Jul 2013
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Works on 16F but not on 18F - what am I missing?

    Quote Originally Posted by Demon View Post
    Config settings are the only difference using an 18F with v2.6 (I have v2.60c).

    There are no changes to circuitry, Blinky should work.

    18F have a lot more config settings available though.

    Robert

    Edit: is the default osc settings the same with this 18F?
    Hmm, I'll mess around with putting an oscillator on the circuit too. Thanks.

  4. #4
    Join Date
    Jul 2013
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Works on 16F but not on 18F - what am I missing?

    Thanks for the replies

    Quote Originally Posted by peterdeco1 View Post
    Try ADCON1 = 15 to set to all digital. It looks like portb.0 is an analog pin.
    Tried that last night - with and with out the TRISB statement also
    also tried a different pin (D0)
    No luck.

    I have another chip (min order qty 2) so I'll try that tonight. I assumed if it programmed OK it wasn't dead...

Similar Threads

  1. DEFINE ADC_CLOCK for 16F PICs
    By RussMartin in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 26th January 2010, 12:56
  2. 16F to 18F transition pains
    By lurker in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2008, 01:35
  3. changing code from 16F to 18F microprocessor
    By SCC_699 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 14th May 2008, 13:27
  4. 16F to 18F context saving differences
    By brittons in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st April 2007, 03:40
  5. Upgrading 16F to 18F
    By Ron Marcus in forum General
    Replies: 1
    Last Post: - 29th March 2006, 09:44

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