|
| |
Simple Signal Generator
|
2/7 |
| |
The Firmware
The firmware is written
with Swordfish Basic. The original version used a switch to interrupt
signal generation in order to communicate with the PC for settings.
The updated version uses serial interrupts to load settings, so the
push button switch is no longer required. Special characters surround
the command strings to the TAP-28 signal generator to allow easy
parsing. The signal generator commands start with a # to be accepted
by the serial interface parser, followed by the command string. The
& symbol indicates the end of the command and the / indicates the
end of the message. The commands are:
#?&/ returns the version number and current settings
#Freq: nnn&/ sets the frequency. nnn is the frequency in Hz between 10 - 10K Hz.
#DC: nnn&/ sets the duty cycle. nnn is the duty cycle between 1 and 99
The
duty cycle range is limited at higher frequencies. It's up to the PC
program to send valid values for frequency and duty cycle.
The PC Application
The PC application is written in Visual Basic 6. The signal generator appears as a standard com port to the PC, at 9600/N/8/1. The com port must be specified so that the application can communicate with the signal generator.
Click [Com Port] on the menu bar to get started. To determine which com port to use, look at Device Manager to determine which com port has been assigned. If the signal generator is used on a different USB port, a different number is usually assigned.
If the correct com port has been selected, the main screen will turn green when [Connect] is clicked.
See the downloads page for source files.
|
|
| |
|
|
|
|
|