18F2431 Learning Curve


Closed Thread
Results 1 to 21 of 21

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: 18F2431 Learning Curve

    Update:

    I have added the following lines to my Blinky LED program:

    Code:
    ANSEL0 = 0              ' Set all PORTA as digital I/O
    ADCON0.0 = 0            ' Disable A/D module
    TRISA = 0               ' Set PORTA as output
    I was confident I would see a blinking LED after these changes but was sadly mistaken...

    Cheers
    Barry
    VK2XBP

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 18F2431 Learning Curve

    Some will disagree, but I have never trusted the programmer to set the configs.
    What version of PBP are you running?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    173


    Did you find this post helpful? Yes | No

    Default Re: 18F2431 Learning Curve

    Ver 3.0.1.4

    How should I manually set the configs and/or which configs are critical for my simple application?

    I went back to the LCD test program and noticed that I do get two lines of text appearing BUT the timing is way out of kilter - maybe by a factor of 10 or 20?
    I am pretty sure I have a clock issue. I don't have any crystals to drop in place but will try to get some tomorrow. I will also re-try the Blinky LED program and reduce the time between toggles to see if I can get something happening...

    Cheers
    Barry
    VK2XBP

Members who have read this thread : 1

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