hserout issues on the 18F26K83


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    I've been having some issues lately, not with that device specifically but with MCS Serial Communicator (or so it seems). I'm communicating with my board using simple ASCII commands at 57600 baud. Single letter/digits commands (like '?' works most of the time, multi letter/digit commands (like 'P100' works sometimes but most often not.

    Thing is, if I use TeraTerm instead everything works perfectly, same computer, same USB cable, same FTDI adapter, same board. Disconnect Serial Communicator and connect TeraTerm to the same virtual COM port and it just works. I have no idea what's going on, before trying TeraTerm I even changed the PIC chip on the board cause I figured I've damaged the UART pins somehow but needless to say the new chip behaved exactly the same.

    Anyone else seen anything like this when using Serial Communicator built into MicroCode Studio?

    I'm going to put the scope and/or logic analyzer on it and see if I can see anything different.

    /Henrik.

  2. #2
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    169


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    I didn't even realize that MCS & MCSX had a Serial Communicator [blush]. Been using them for... dunno... 20+ years and never noticed. The only defence I have is I'm only an occasional user/coder.

    Troy

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    Well, I did knew that but something in my mind was telling me not to use it...

    I also am using TeraTerm and from time to time Br@y Terminal that has some nice automations.

    Ioannis

  4. #4
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    Quote Originally Posted by HenrikOlsson View Post
    ...Single letter/digits commands (like '?' works most of the time, multi letter/digit commands (like 'P100' works sometimes but most often not.
    This could be due to your code and how the two terminals work. MCS will send the data when you click 'send', or when you hit 'Enter' if you have the transmit window setting 'Transmit on carriage return' checked.

    For TeraTerm, this is configurable (char vs line mode), but typically it's set to transmit as the individual chars are entered.

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    Yep, I figured it probably have something to do with that.
    Strange thing is that the code has been working fine with MCS for over 10 years but now it doesn't. So I've messed something up.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: hserout issues on the 18F26K83

    Only a tiny bit is enough to do that!

    Ioannis

Similar Threads

  1. Loop issues
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 30th September 2021, 01:42
  2. A/D compiler issues
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th March 2014, 13:24
  3. A/D, and compiler issues.
    By BobEdge in forum PBP3
    Replies: 4
    Last Post: - 27th March 2014, 13:20
  4. button press AND hserout issues?!
    By Giulio in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 31st July 2011, 01:22

Members who have read this thread : 2

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