Jump to content
43oh

MSP430F550x based logic analyzer


Recommended Posts

My rule for uc based measuring devices, is fast (sampling) and simple (zero parts if it is possible) realization. Result is here, under 0.1 us resolution, no extra parts, just basic MSP430F550x board, powered by USB from PC.

Logic signal is from PCM2707 3.3V USB to I2S audio bridge. By default word select frequency is 48 kHz (P1.2), and clock is 64 * 48 kHz =  3.072 MHz (P1.1).

 

post-26480-0-85079600-1369839556_thumb.gif

Link to post
Share on other sites

Nice work! Any more info about the GUI? Also, quote me when you respond, or mention @ me... so I know you replied.

 

10 years ago (or more) I was working on Win32 schematic editor. Didn't found graphic support that fit to my needs, so I made graphic library (based on DIB, writing directly to graphic memory) in x86 assembler. I'm still using it in combination with free pascal. For logic analyzer I used GUI from my spectrum analyzer project (PC side finished few years ago, uC side not started yet).

 

post-26480-0-36400300-1369929117_thumb.gif

 

post-26480-0-37596100-1369929190_thumb.gif

 

post-26480-0-31817500-1369929453_thumb.gif

 

post-26480-0-00684000-1369929473_thumb.gif

Link to post
Share on other sites
  • 1 year later...

Firmware is done for MSP430F5510, but it should work with any MSP430 USB device. First byte in firmware txt file is XT2 frequency (default 24 MHz, 18h), and it can be changed manually before flashing to requested XT2 value. Supported XT2 values are 4, 6, 8, 12, 16, 18, 24, 25, 26.

 

At start, it will be checked is it everything OK with setup, and after enumeration, LED on P4.7 (5529 LP LED2) will turn on. Blinking LED is related to setup error. Device will be enumerated as CDC with name 'LA', VID 2047h and PID 099Fh.

 

PC side is done in Lazarus 1.4.0 (http://www.lazarus-ide.org), under Win32, but it should work also on Linux. By scroll bar on left down side can be selected port.

 

post-26480-0-66630400-1431600590_thumb.gif

 

After port is open, right down side will be enabled, together with "Measure" button. Blinking LED is indication for data exchange (2 bytes ping pong, every second) between micro and PC.

 

post-26480-0-57587600-1431600683_thumb.gif

 

P1 is used as logic analyzer input. Measurement is triggered by PC side, pressing "Measure" button. It also can be triggered by P2 on micro side, P2.0 with high level, and P2.1 (S1 button on 5529 LP) with low level.

 

post-26480-0-04411500-1431600931_thumb.gif

 

Chart used for result presentation have zoom possibly. "Reset" button will zoom out to start up screen. Here is example of measured 1 MHz signal on P1.2.

 

post-26480-0-71567600-1431601106_thumb.gif

 

Firmware: la_frm.zip

CDC Win driver: la_cdc.zip

PC source: la_source.zip

PC Win Exe:la_win_exe.zip

Link to post
Share on other sites
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...