Hello!
In today’s example we want to dive into some deeper firmware design ideas. With today's post we are going to provide you four separate examples on how to implement state machines using the PSoC 4. You can implement these examples using the Pioneer kit.
These examples were not written specifically for the Pioneer board so please adjust your pin selections in the DWR window to target the Pioneer kit.
State machines are commonly used to implement decision making algorithms where distinguishable states exist. As part of this project I’ve included our State Machine application note which walks the user through State Machines descriptions and functionality. The four examples posted here are from this application note.
Forum Post Attachments:
At the bottom of this post we are including the following items:
- Example Project Zip File
- Project Images
Components Used:
The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:
- PWM
- UDBClkEn
- LUT
- CyClock
- ISR
- CyPins
- CyClock
Firmware Description:
The main.c firmware is included in the example project. Please review the commented sections for more details.
In this example we are linking four example projects that users can use to generate State Machine designs for their PSoC 4 applications. These four example projects are part of the Cypress PSoC application note “Implementing State Machines with PSoC 3, PSoC 4, and PSoC 5LP”. Please take some time to review the application note before diving into the example projects provided below.
Hardware Connections:
There are no specific hardware connections for these example projects. All of the connections are made in hardware and outputs are brought out to the Arduino headers.
Test Your Project:
Build and program the example project into the Pioneer board.
I hope this example can help you in your design.
Best,
Matt