Blink.Bas on 18f45k20 Newbie seeks working example.


Results 1 to 4 of 4

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi DiscoEd,
    I'l betcha your config statements are off <b> OR </b> You have not disabled the analog functions.
    Hmmm analog only on ports A & B
    Give us a look at your code and let's see.
    EDIT:
    add this to your code:
    TRISE.4 = 0 'Disable PSP

    Edit2: I don't know what you do / do not know about PBP, Only commands like High /Low set up tris and ports automatically. You should set port latches first then Tris registers, like so
    PortA = %00000000 'binary, easiest for me
    PortB = 0 'decimal
    PortC = $00 'hex
    PortD = %00000000
    TrisA = %00000000
    TrisB = %00000000
    TrisC = %00000000
    TrisD = %00000000
    TrisE.4 = 0 'disables parallel slave port on port d
    If you know all this already I do not mean to offend, trying to help
    Last edited by Archangel; - 28th December 2009 at 04:22.
    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.

Similar Threads

  1. blink.bas for 18f4520 for newbie - HELP
    By Dennis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2009, 18:45
  2. Replies: 2
    Last Post: - 13th September 2005, 18:23

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