Author Topic: Logic Record/Playback  (Read 1046 times)

0 Members and 1 Guest are viewing this topic.

Offline mtechmattTopic starter

  • Regular Contributor
  • *
  • Posts: 61
Logic Record/Playback
« on: June 18, 2015, 11:41:20 am »
Chaps,

After a tool to record logic (like a Salae, or any logic anayliser, BUT also PLAY BACK those same signals.

Its for remote development, I need to record the signal patterns from a device (a sensor on an engine) and my friend needs to be able to be send said file, load them into his device, and play them back, easily.

Lots of devices can record logic, and lots can play it, even those claim to be both recorders AND generators dont have this middle piece of just hitting 'rewind, play'.

Any ideas?

Or should I just make a basic one on a PIC?

Cheetrs
 

Offline jeroen79

  • Frequent Contributor
  • **
  • Posts: 529
Re: Logic Record/Playback
« Reply #1 on: June 18, 2015, 03:32:51 pm »
Quote
Or should I just make a basic one on a PIC?
You could do that.
Add a clock (an order of magnitude faster than whatever you want to record) and monitor the logic channels you are interested in.
Whenever the logic channels goes high or low an interrupt is called
Then you write the channelID, state and clockcount to your storage.

This will keep storagerequirements low as you only record when the signal changes instead of continuously sampling it.

Playback is done by resetting the clock and then testing if the clockcount is matches the recorded count of the next record.
When that is true you set the state to the recorded state and move on to the next record.

And consider input protection.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf