New to programming and am having a few issues with some code


Results 1 to 20 of 20

Threaded View

  1. #11
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: New to programming and am having a few issues with some code

    About your POWER LED not coming on:

    How about taking a copy of that last code, deleting all the lines except the absolute minimum to get the power LED on.

    Just keep the config, variable, ports, etc. Get rid of everything else, it's cluttering your view.

    I bet you have a config set up wrong, or your wiring is not exactly as you think it is.

    Robert


    Dumb question #1: Did you try to light the POWER LED and resistor directly to confirm it does indeed work?

    #2: Maybe you blew the pin on the PIC, try another one.

    #3: PWMOUT VAR GPIO.0 <-- Is this your POWER LED? You never turn it on, you only define it (or maybe I'm missing something).

    #4: TRISIO = %00000111 <-- port 0 is set as input, it should be TRISIO = %00000110.
    Last edited by Demon; - 24th April 2012 at 03:56. Reason: Cause I keep going back to the code and getting more ideas.

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