Shop OBEX P1 Docs P2 Docs Learn Events
Object of the week- Event Driven LSA (Logic State Analyzer) — Parallax Forums

Object of the week- Event Driven LSA (Logic State Analyzer)

HannoHanno Posts: 1,130
edited 2010-01-24 10:05 in Propeller 1
A while back Bob wrote an Add-on to ViewPort- it's this week's object of the week at http://parallax.com

More about it:
"The Event Logger program is an add-on that communicates with ViewPort via the DDE (Dynamic Data Exchange) protocol and provides an event oriented LSA as opposed to the sampling LSA that ViewPort includes. The EventLogger.spin program is loaded into a cog (either instead of QuickSample or in addition to). After a specified trigger condition is satisfied, this cog records the time (via the CNT register) of changes of state on a specified set of I/O pins. Up to 99 events will be recorded and then sent via Conduit.spin running in the Propeller chip to ViewPort and on to the Event Logger Client.exe where a GUI displays the results in a plot that can be zoomed, scrolled, measured, printed, etc.

An event driven LSA is better able to deal with "bursty" data where some events of interest take a relatively long period of time, but are then followed by much faster events. On a sampling LSA, the sample rate would have to be set low enough to allow the long events to be seen, but then there would be insufficient resolution to see the fast events accurately. Sometimes ways can be found to work around this conflict, but an event driven LSA is easier to use in such a case."

It's here: obex.parallax.com/objects/554/

Also check out Bob's script engine- very useful for further customizing output: obex.parallax.com/objects/555/
Hanno

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Co-author of the official Propeller Guide- available at Amazon
Developer of ViewPort, the premier visual debugger for the Propeller (read the review here, thread here),
12Blocks, the block-based programming environment (thread here)
and PropScope, the multi-function USB oscilloscope/function generator/logic analyzer

Comments

  • RossHRossH Posts: 5,519
    edited 2010-01-24 10:05
    I wish I'd had one of these when I was debugging the XMM code in the Catalina kernel! I had to go out and buy a USB oscilloscope, but this type of thing would have been far more useful.

    Congratulations, Bob and Hanno.

    Ross.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Catalina - a FREE C compiler for the Propeller - see Catalina
Sign In or Register to comment.