Serial monitor required. Suggestions please.


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52

    Default Serial monitor required. Suggestions please.

    Suggestions please for a serial monitor that can help me debug a project running at 562k5 baud (no it's not a typo 562,500 baud) with mixed parity.
    I have an 18F26K22 communicating most of the time, but every now and then it drops the comms. Not sure if it is the PIC over running the serial buffer or the device simply re-establishing comms. The protocol is very capable but the PIC is almost max'ed out trying to keep up.

    Baud: 562500
    Parity: Even for header bytes, Odd for data bytes
    Number of bytes: variable (min 5, max 64)
    Time out period: 1mS
    One byte is 19.5uS
    PIC clock 54 Mhz (external clock)
    Am running DT's instant interrupts.
    Second serial port is running at a sedate 38k4.

    I built an interface which commited the received data to RAM but it very quickly runs out of memory and gives only a snapshot of what is happening. I would need to monitor both RX and TX against time as it is full duplex.

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


    Did you find this post helpful? Yes | No

    Default Re: Serial monitor required. Suggestions please.

    Hi,
    There are a ton of serial port monitor/sniffer software around but they are usually aimed at sniffing communication going into and out of the PC on which the port monitor is running. If you're trying to sniff the communications between two devices where the PC running the sniffer software isn't one of them you'd need two serial ports and the software would need to keep the data in sync. I don't know any software that does this but I'm sure it exists.

    Now, if you don't need to see the data in real time I'd suggest you get a LOGIC from Saleae. If I understand the problem correctly you could possible set an output when the serial timeout trips, trig the logic analyzer off of that signal and have it setup to have enough pre-trigger data stored to be able to see what was being sent back and forth between the devices. Another option is of course to just sample the data, store it and hope that it errors out before the memory runs out - which, depending on sample rate etc can actually be quite some time.

    Unfortunately the LOGIC isn't able to trig off of specific serial data etc, (since it isn't analyzing it in real time) but it's still a VERY usable device IMO.

    /Henrik.

  3. #3
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Serial monitor required. Suggestions please.

    One Logic16 ordered.
    Thankyou Henrik.

Similar Threads

  1. I'm looking for some suggestions
    By Roddy Wayne in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th July 2010, 14:26
  2. Looking for O-scope suggestions / reviews
    By Byte_Butcher in forum Off Topic
    Replies: 32
    Last Post: - 17th June 2010, 00:24
  3. seeking polling suggestions
    By rdxbam in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd January 2009, 21:46
  4. Need suggestions for noise suppression
    By paul.barsamian in forum General
    Replies: 2
    Last Post: - 29th March 2008, 14:37
  5. PIC Suggestions
    By Tobias in forum Off Topic
    Replies: 10
    Last Post: - 7th January 2008, 06:04

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