The PSoC ecosystem by Cypress is a range of microcontrollers (PSoC 3, 4, 5 and 5LP) and IDEs (PSoC Designer and PSoC Creator).
PSoC devices are great in the fact that almost all hardware peripherals are reconfigurable to any port/pins. You don’t have specific ports/pins for UART peripherals, nor for ADCs e.t.c. However, I have to say almost, because there are some restrictions. These include:
- Power/ground pins - These are fixed (not really a big surprise there)
- Reset pin - This is also fixed. You could make another reconfigurable reset pin by using a GPIO, an interrupt, and a software reset, but this would have slightly less functionality
- External oscillator pins - If you want to use an external oscillator for better timing, it has to be connected up to specific pins (separate pins for kilohertz and megahertz oscillators)
- Op-Amp Inputs/Outputs - I think these are pre-defined to optimise resolution/signal-to-noise ratios.
- USB D+ and D- pins - Because of the high communication speeds of the USB protocol, these pins require special design and hence are fixed.
FreeRTOS and PSoC
As far as I know, there are three ports for the PSoC family for using freeRTOS, all for the PSoC 5 family. Two are supplied with the freeRTOS download (i.e. officially supported), and the other is available on the Cypress forums (specifically, here). The two official ports both have the same functionality, but one is for the GCC compiler while the other is for IAR. It utilises the CY8CKIT-001 development board and features some sophisticated RTOS feature tests, as well as flashing the lights and using the LCD screen. The unofficial port is targeted for the same dev board, but is much simpler and just flashes two lights. They all use the native ARM M3 timer interrupt for the RTOS tick, which can be misleading since this is not set-up graphically (as most interrupts are, you can see them on the schematic editor). However, it is pretty easy to change this tick to run off a different source, such as the sleep timer, and ignore the ARM timer interrupt completely. You can find various FreeRTOS firmware modules for the PSoC microcontroller on my GitHub account. This includes:
- The Cypress website naturally has tons of information about PSoC devices. A really handy feature is that the IDE has one-click links to the datasheets with many of the supplied “components” (blocks of code).
- Planet PSoC http://www.planetpsoc.com is a small website with some information and block designs for PSoC 1 and PSoC 3 devices. UPDATE Dec 2017: Website no longer accessible.
This work is licensed under a Creative Commons Attribution 4.0 International License .