18f14k22 portb.5 always high using hserout


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: 18f14k22 portb.5 always high using hserout

    Thanks

    I found a "work-around" for this - I needed one output to pulse an LED as a "heart-beat", so I changed that to PORTB.5.
    In the program I change TRISB.5 from a 0 to 1 and back to a 0 to flash the LED. Therefore freed up the other output. From what I see it has no other effect on the program.

    Ken

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: 18f14k22 portb.5 always high using hserout

    Another approach is to enable/disable the hardware port in your program. For the 16f1826 I use RCSTA.7 = 0 to disable the port when I'm done using it.

Similar Threads

  1. Problem reading 24FC1025 EEPROM with 18f14k22
    By JimAvanti in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st May 2013, 19:55
  2. High byte lost in HSEROUT a Word variable
    By Demon in forum General
    Replies: 2
    Last Post: - 7th October 2012, 21:30
  3. Replies: 6
    Last Post: - 12th March 2011, 13:11
  4. PortB pins will not initialize LOW, only HIGH?
    By ronbowalker in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th December 2009, 19:27
  5. 18F14k22 eTouch
    By warrier in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th July 2009, 05:20

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