b. Digital oscilloscope application that uses a microcontroller

PIC18F24J50 and PIC18F26J50

PIC18F2xJ50 microcontrollers have an A/D converter with a 10-channel analog input multiplexer. Any of the channels may be used with the oscilloscope application. However the sample application uses AN0 input. To test it you can either use K8055 or K8055N experiment board with operation amplifier, or build a basic circuit from subsection 5.b and add your own an input voltage range adaptor.

The oscilloscope application with source code displays the input signal as a curve, so the signal shape can be observed. The sample application is suitable for signals up to 1 KHz, because it doesn’t use buffering. Go to Downloads section to get 32-bit or 64-bit sample application: PIC18F2xJ50 oscilloscope application with souce code.zip or PIC18F2xJ50 oscilloscope application with souce code x64.zip.

PIC32MX250F128B

PIC32MXxxxFxxxB microcontrollers have an A/D converter with a 10-channel analog input multiplexer. Any of the channels may be used with the oscilloscope application. However the sample application uses AN0 input. To test it you can either use K8055 adapter or K8055N adapter for Velleman K8055(N) experiment board with operation amplifier, or build a basic circuit from 5.q. Basic circuit for PIC32MX2xxFxxxB to work over USB with a 20 MHz external oscillator and add your own an input voltage range adaptor.

The oscilloscope application with source code displays the input signal as a curve, so the signal shape can be observed. The sample application is suitable for signals up to 1 KHz, because it doesn’t use buffering. Go to Downloads section to get 32-bit or 64-bit sample application: PIC32MX250F128B simple oscilloscope application v1.0.zip or PIC32MX250F128B simple oscilloscope application v1.0 x64.zip.

NOTE: Read 1 Msps modular oscilloscope for everyone on how to build an oscilloscope that goes up to 1 MHz.

Here is a screen shoot to give you a glimpse on how the application works: