Reader small image

You're reading from  Hands-On Embedded Programming with C++17

Product typeBook
Published inJan 2019
Reading LevelIntermediate
PublisherPackt
ISBN-139781788629300
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maya Posch
Maya Posch
author image
Maya Posch

Maya Posch is a senior C++ developer with more than 15 years of experience. Discovering the joys of programming early on, and later the joys of electronics, she has always expressed a profound interest in technology, a passion that she gladly shares with others. Describing herself as a C developer who happens to like C++ and Ada, she likes to seek the limits of what can be done with the minimum of code and hardware to accomplish everything that is cool, new, and exciting. She also enjoys FPGA development, AI, and robotics research, in addition to creative writing, music, and drawing.
Read more about Maya Posch

Right arrow

Example – basic oscilloscope


This example gives a basic overview of how one could use an FPGA in an embedded project. It uses the FPGA to sample an input and measure a voltage or similar, the way an oscilloscope would. The resulting ADC data is then sent over a serial link to a C++/Qt-based application, which displays the data.

 

The hardware

For the project, we will use a Fleasystems FleaFPGA Ohm board (http://fleasystems.com/fleaFPGA_Ohm.html). This is a small, sub-$50, sub-€40 FPGA development board in a Raspberry Pi Zero form factor:

It has the following specifications:

  • Lattice ECP5 FPGA with 24K LUT elements and 112KB Block RAM.
  • 256-Mbit SDRAM, 16 bits wide and 167 MHz clock.
  • 8-Mbit SPI Flash ROM for FPGA configuration storage.
  • 25 MHz Crystal oscillator.
  • HDMI video out (up to 1080p30 or 720p60 screen modes possible).
  • μSD card slot.
  • Two micro USB host ports with alternate PS/2 host port functionality.
  • 29 user GPIO, including 4 x medium-speed ADC inputs and 12 x LVDS signal pairs available from...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-On Embedded Programming with C++17
Published in: Jan 2019Publisher: PacktISBN-13: 9781788629300

Author (1)

author image
Maya Posch

Maya Posch is a senior C++ developer with more than 15 years of experience. Discovering the joys of programming early on, and later the joys of electronics, she has always expressed a profound interest in technology, a passion that she gladly shares with others. Describing herself as a C developer who happens to like C++ and Ada, she likes to seek the limits of what can be done with the minimum of code and hardware to accomplish everything that is cool, new, and exciting. She also enjoys FPGA development, AI, and robotics research, in addition to creative writing, music, and drawing.
Read more about Maya Posch