Build one, get two: CPLD and STM32 development on a single board

综合技术 2017-11-15

Programmable logic devices have claimed their place in the hobbyist world, with more and more projects showing up that feature either a CPLD or their bigger sibling, the FPGA. That place is rightfully earned — creating your own, custom digital circuitry not only adds flexibility, but opens up a whole new world of opportunities. However, this new realm can be overwhelming and scary at the same time. A great way to ease into this is combining the programmable logic with a general purpose MCU system that you already know and are comfortable with. [Just4Fun] did just that with the CPLD Fun Board
, a development board connecting an Arduino compatible STM32F103 Cortex-M3 controller to an Altera MAX II CPLD.

The PCB itself has some standard development board equipment routed to the CPLD: LEDs, buttons, a seven-segment display, and additional GPIO. The rest of the CPLD’s pins are going straight to the STM32 and its SPI, I2C and UART pins. Let’s say you want to create your own SPI device. With the CPLD Fun Board, you can utilize all the pre-existing libraries on the STM32 and fully focus on the programmable logic part. Better yet, every connection from MCU to CPLD has its own pin header connection to attach your favorite measurement device for debugging. And in case you’re wondering — yes, you can attach external hardware to those connectors by setting either MCU or CPLD pins to Hi-Z.

The downside of all this is the need for proprietary design software and a dedicated programmer for the CPLD, which sadly is the everyday reality with programmable logic devices. [Just4Fun] did a great job though writing up a detailed step-by-step tutorial about setting up the environment
and getting started with the board, but there are also other tutorials on getting started with CPLDs out there
, in case you crave more.


Micropython TPYBoard读取芯片上的温度传感器... STM32 内部温度传感器概要 STM32 芯片内部一项独特的功能就是内部集成了一个温度传感器, 因为是内置, 所以测试的是芯片内部的温度, 如果芯片外接负载一定的情况下, 那么芯片的发热也基本稳定, 相对于外界的温度而言, 这个偏差值也是基本稳定的. 也就是说用 STM32 内部传感器来测量...
STM32 定时器输入捕获实现红外遥控数据接收... 之前已经写过了一个使用定时器普通计时功能来识别红外遥控数据的文章。本次是使用定时器输入捕获来实现,这种方法比起定时器普通计数来说要更加复杂一些,不过效果会更好。 一、原理 1、红外发射协议 红外发射协议已经在之前的文章中写过,在此就不赘述。 2、定...
Husarion CORE2 STM32 Board for Robotics Projects W... Husarion CORE2 is a board designed to make robotics projects simpler and faster to complete with pre-configured software and online management. Projec...
一秒出货32颗MCU是如何练成的?| 智慧产品圈... 从事物联网开发设计的唐老师在用了某公司32位MCU和开发板之后,从此就“迷”上了它,一直用了有数年之久。他说,此款芯片的好处不只在性价比,还在于极易上手的开发板,将技术融入服务降低了开发门槛。而这就是ST(意法半导体)的STM32产品系列。 STM32“列车”在开启了“十年”之后,也迎来了...
STM32 延迟函数解析 STM32官方提供的函数库中,可以找到类似于 HAL_Delay() 这样的函数。这个函数的就是通过使用定时器,达到一个较为精确的时间延迟,提供给用户调用。 这个函数一般包含在类似于 stm32f4xx_hal.c 这样的函数中。函数原型如下: __weak voi...
Hack a Day

责编内容来自:Hack a Day (本文源链)
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。