Dual USART, Second USART sends but not receives, PIC18F24K22


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,651

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

    also, char2 we cant see how it was declared but if its a byte then it can only receive a single hex digit
    it may never be $13 it may only be 0 to F
    $13 sent as serial hex is ascii 0x31,0x33 ie two chrs

    you need to be sure what you actually sending

    I'd try this if hex is whats sent
    hserin2 100, main, [hex2 char2]
    hserout2 ["input was", hex char2]
    if char2 = $13 then
    Last edited by richard; - 12th January 2018 at 13:13.
    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