I work in embedded hardware (roughly electronics that interface with a microcontroller) and am looking for something akin to a digital pattern generator to test sections of this hardware before firmware is available for the MCU (a different team does that where I work).
This is more or less the desired set of capabilities:
- Selectable output voltage, at least 3.3V and 5V. I haven't seen a USB-based digital pattern generator that can swing 5V.
- 6 or more PWM-capable outputs. Up to 25kHz frequency.
- 8 or more plain digital outputs, controllable at 100µs period or finer.
- Programmable from a computer. Load a sequence and run it is fine; realtime / online control is not needed. Programmable realtime response to inputs is not needed.
These features would be nice to have:
- Additional isolated digital output port.
- Trigger input to start sequence from other test equipment.
- Dedicated trigger output.
Does something like this exist? I did look around, but the 5V ask is brutal for anything modern, which is typically USB based. I also looked at PLCs, but the scan time / cycle time seems a little long for this application, and the PLC digital output modules are specified oddly (only sink / only source). My best off-the-shelf option seems to be chaining low cost arbitrary waveform generators together using the trigger output from one of them and programming them over SCPI. I would love to build something like this using an appropriate MCU, level shifters, etc. but the effort involved is a lot given my day job.
To give a little more detail, being able to run a sequence along the lines of:
- Set digital output port state
- Set PWM duty cycles
- Delay 100 * X µs
- Set digital output port state
- Set PWM duty cycles
- Delay 100 * X µs
- ...
- END
would do it.