Need help with HSER on the 16F747


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2013
    Posts
    2

    Default Need help with HSER on the 16F747

    I have been trying to implement HSERIN & HSEROUT on the 40-pin 16F747. I still use PicBasic Pro 2.6.

    I have gotten successful I/O tests when using DEBUGIN & DEBUGOUT on PortA.1 and PortA.2.

    This leads me to believe that there may be some obscure setting that I am omitting which the code operating behind the DEBUG commands gets right.

    I have combed the docs for the 16F747 and can't think of anything I left out. It has quite a few functions multiplexed on it's 40 pins though.

    I have included my rather short test code as a ".txt" file for anyone who might be interested in critiquing my workSerTest16F747.txt.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516

    Default Re: Need help with HSER on the 16F747

    Hi,
    Two things that springs to mind:
    1) You say it's working with DEBUG/DEBUGIN on PortA. I'm just making sure that you're not expecting HSEROUT to work on those same pins.
    2) The USART sends and receives the data "true" while the PC (since it's got a level translator/inverter) sends and receives the data inverted. When using the USART you need a MAX232 etc on your board, do you have that?

    /Henrik.

  3. #3
    Join Date
    Mar 2013
    Posts
    2

    Default Re: Need help with HSER on the 16F747

    With HSER I am using the hardware pins TX/RC6 and RX/RC7.
    I have a hardware board that I have been using for years that changes the RS232 to TTL. It works flawlessly with the 16F628A.

Similar Threads

  1. HSER baudrate
    By pedja089 in forum Serial
    Replies: 14
    Last Post: - 7th August 2011, 20:46
  2. HSER revisited
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th January 2008, 20:41
  3. HSER Problems
    By Kaldurenik in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 15th October 2007, 09:33
  4. HSER with interrupts
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th February 2007, 21:19
  5. Hser-rx test
    By nicjo in forum Serial
    Replies: 0
    Last Post: - 26th November 2006, 10:53

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