Categories

PIC32 oscilloscope

Posted on Tuesday, July 15th, 2014 in hacks, oscilloscope by DP

PIC32-Oscilloscope-500x215

Bruce Land writes:

Turns out that the DMA channels on a PIC32 can move data from the ADC using the ADC done interrupt flag, but without wasting time in an ISR. The ADC can be triggered by a timer interrupt flag, again without software intervention. Doing this means that you can blast ADC into memory at just under a Megasample/sec with NO software overhead!
Using another DMA channel to feed memory to a buffered SPI port means that video data can be streamed to a TV with less than 7% software overhead, sustaining a 5 megabit/sec pixel rate. Most of the video overhead is in the SYNC generator state machine ISR. But the rigid NTSC time requirements are easy to meet because all the actual SYNC generation and video timing are also done completely in hardware with no software intervention. One timer triggers two output pulse generators, one to generate SYNC, one to time the video “backporch”.
When the backporch pulse gen times out, it triggers the video DMA burst from the frame buffer in memory to the SPI port.
A simple 3 resistor DAC combines the SYNC and video stream. Resolution is 256×200. There is plenty of CPU left for FFT or game generation.

Via Hacked Gadgets.

Check out the video after the break.

This entry was posted on Tuesday, July 15th, 2014 at 11:14 am and is filed under hacks, oscilloscope. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “PIC32 oscilloscope”

  1. Alex Henrique says:

    Strange Bruce Land using PIC Microcontroller. In his curse in Cornell university he uses only Atmel. I love both.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Parkview: Another great idea! Be handy to be able to purchase the corresponding SMD and TH sockets as well.
  • Ryan White: Second that. I'd love the option to extend this already awesome tool to RF cables, hoping it's already in the works because I know the...
  • Tom Keddie: Hi Ian, Congrats on the launch. Suggest you name all the CHRO connectors you have as female. It's not done often but you can insert...
  • Craig Hollabaugh: Excellent post! Thanks
  • Drone: We need RF/Coaxial cables with connectors. Pre-made custom RF cables/connectors are insanely high in price. We'll pay more for an option to sweep them.