Problems with PORTD on 18F658


Results 1 to 4 of 4

Threaded View

  1. #1
    blainecf's Avatar
    blainecf Guest

    Unhappy Problems with PORTD on 18F458

    Greetings all you brain trusts!

    Using the 44pin PLCC version of this chip to control a bank of relays.

    Thought I did all the standard stuff; all the relays hooked to PORTB worked as expected, none of the relays hooked to PORTD worked.

    However, when I changed the code to:

    OUTPUT PORTD.7

    ...

    HIGH PORTD.7

    the relays work just fine.

    Previously, I was using TRISB and TRISD, then setting the individual ports on or off using PORTD.7 = %1, which worked on PORTB but not on PORTD. (Syntax was identical)

    Any ideas?
    Last edited by blainecf; - 13th June 2006 at 17:28.

Similar Threads

  1. Unable to get 2 inputs to work
    By rangerdoc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st June 2008, 03:16
  2. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  3. Input problems with PortD on Pic16F874A
    By Petter in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th August 2006, 11:30
  4. 18F6680 and portd problems.
    By jkbh in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th June 2005, 10:54
  5. Display problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th November 2004, 23:36

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