I have an old spectrum analyzer which outputs X and Y voltages for external display or analogue plotting together with a pen up/down signal (not GPIB data). I have in mind using a 20X2 to perform two channels of 10 bit A/D and converting to HPGL plotting commands to send out as serial data to the PC which runs plotter emulation software. On starting a plot the 20X2 would send a string of HPGL set up data to set scale, origin, graph border and text etc. then perform the A/D conversions and send as a string of 'GOTO' X, Y commands to perform the plot. My previous projects show that I can handle serial data transmission to the PC reliably at a speed of 9k6 using HSEROUT which is adequate for this application. Dual channel A/D and noise reduction (averaging) may be a problem with a rapidly varying input voltage and the speed of the data transmission ( probably around 4 to 10 seconds for 1024 data pairs).
This is very like a 2 channel data logger interface so the A/D conversion to serial data is probably reinventing the wheel. Can anyone point me to a good thread on handling the dual channel A/D and etc.
Thanks
Richard
This is very like a 2 channel data logger interface so the A/D conversion to serial data is probably reinventing the wheel. Can anyone point me to a good thread on handling the dual channel A/D and etc.
Thanks
Richard