# OSCILLOSCOPE

Function: Implement a digital oscilloscope on the C54x DSK Plus.

Location: ftp://ftp.ti.com/pub/tms320bbs/c5xxdskfiles/Oscope.exe
By: William Erfurt

> #### Oscilloscope Application Code: dskposcp.exe

> Starting off:
> The file "dskposcp.exe" can be downloaded from the above listed FTP site. This is a software oscilloscope that can be run on the C54x DSKplus. First save dskposcp.exe into it’s own directory, Then run the executable (either in DOS or Windows) allowing it to explode into the following list of files:

            dskposcp.exe    - The original file that was downloaded
            Oscope.exe      - Executable oscilloscope code
            Osc_main,asm    - Main assembly program
            Osc_main.obj    - Object file for main assembly program
            Osc_ac01.asm    - Initializes the analog interface on the DSK Plus
            Osc_vecs.asm    - Initializes the C542 interrupt vector table
            Egavga.bgi      - Graphics driver
            Oscope.txt      - Read me file

> To start the oscilloscope run the file oscope.exe. This program loads the default kernal and it also loads the application file Osc_main.obj onto the DSP. The oscilloscope graphical interface will appear on the screen and it will be ready for input. The volts/div and time/div will be displayed on the top of the screen. You will need to supply an input to the scope through the input RCA jack on the DSKPlus board. The jacks are labeled on the DSK board, for more information on the jacks please see the TMS320C54x DSKPlus User’s Guide page 1-4.

> Using the scope:
> You can use the up/down arrow keys to change the voltage scale, and the right/left to change the number of samples that the scope takes. The number of samples can also be specified exactly by pressing "S" and entering the number of samples that you would like to have taken. The input signal can also be viewed frame by frame, in this mode the space bar is used to advance frames.

> Hints:
> If you are working in a lab with several 54x DSKs you can use one DSK as a function generator and a second as the scope. To do this simply download and run the function generation code on one DSK. (function generator code is available at ftp://www.ti.com/mirrors/tms320bbs/c5xxdskfiles/ dskpfunc.exe). While the first DSK is running and remove the RS232 cable and attach it to the second DSK. Download and run the scope program on the second DSK leaving the RS232 cable attached for PC interface. Use a cable with 1/8 inch connectors to connect the output jack of the first DSK to the input of the second DSK. The scope on your screen will now display the wave being generated.