hex file problem


Results 1 to 5 of 5

Threaded View

  1. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: hex file problem

    Very first thing I see is a missing config for HS_OSC . . .
    Then your loop never turns off the LED, and do not forget a pause so you can see it go off
    or use the command toggle with a pause.

    NOT REQUIRED with HIGH / LOW are tris registers as those statements automatically set tris
    for you, But It is good practice to set port status first, then set tris to make ports inputs or outputs
    in that order, like so
    PortB = %00000000
    TrisB = %10000000
    in this case PortB.7 is unaffected by the tris, but all other PortsB are set low and then as outputs
    That way when they become outputs they do so in the state you want them, in this case all low.
    Last edited by Archangel; - 24th May 2011 at 09:53. Reason: add add add
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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