18f14k22 portb.5 always high using hserout


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: 18f14k22 portb.5 always high using hserout

    There are threads in this forum which have addressed this, worth a search, that said HSERIN idles the input pin at high logic level. To switch it to an i/o port you need to turn it off before you try to use it. Look at pp184 of the data sheet as it addresses RCSTA register.

    push goes to shove you might use Debug instead of HSER commands, it's pretty lean for bit bang serial port.
    Last edited by Archangel; - 5th March 2015 at 08:06.
    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. 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