Dual USART, Second USART sends but not receives, PIC18F24K22


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    TRISB.7 = 1
    TRISC.7 = 1


    RX1 and RX2 Pins = input pins.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    I only see 6 of the 8 TRIS bits being set for each port.
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Sep 2017
    Posts
    17

    Default Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    Something happened in the cut and paste, all 8 TRIS bits are set.
    I did change the bits to inputs and it didn't resolve the issue:
    TRISA = %11111111 ' Setup TRIS
    TRISB = %11110000
    TRISC = %11111111

    Any other suggestions on why hserin2 may not be working?

    Thanks
    George

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644

    Default Re: Dual USART, Second USART sends but not receives, PIC18F24K22

    no 1
    http://www.picbasic.co.uk/forum/showthread.php?t=19594
    no 2
    OSCCON = 110010 ' Set internal 8Mhz OSC




    Define OSC 16
    what is it 8 or 16 ?

    no 3
    'Configuration
    DEFINE FOSC INTIO67
    that's not a configuration , it does nothing


    no 4
    hserin2 100, main, [hex char2]
    main does not exist in the snippet , who knows what goes on there

    no 5

    given that hserin2 does infact work correctly when used correctly , the fault probably lies in the code not shown
    Warning I'm not a teacher

Similar Threads

  1. My USART problems..
    By Glenn in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 31st July 2009, 01:00
  2. USART to PC
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th October 2008, 00:09
  3. Usart
    By lew247 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd June 2008, 23:41
  4. PIC16F877 sends/receives data to/from a PC
    By ovidiu in forum Serial
    Replies: 1
    Last Post: - 2nd December 2006, 14:09
  5. dual- usart- receive- problem
    By Tomasm in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st June 2004, 17:33

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts