A week passed since I started my adventure with the PSoC6, and I can say it's a love & hate
As I said I will implement a VGA signal generator, and I have selected ports and pins to use. The "love" is that this chip offers a wide range of possibilities for configuration. The "hate" is that I'm not used to this degree of freedom and there are several new concepts to digest.
I have to choose the approach to use for this project. Here is where the "fun" part starts: HAL, PDL, or... The point is that I want to use as many I can standard tools offered by ModusToolbox, as well as standard libraries. This project must be easily used by everyone. Keeping that in mind I would like to use the inline comments as a guide, and the configurators as tools to lay out the code. All in all, this is the goal of Infineon, I presume.
Let's go back to the project. The first step is to create a PWM signal which period is the horizontal period of a video scanline, and the "negative" duty cycle is the horizontal sync.
Then, an interrupt should be called each PWM period (scanline) so that we can drive the vertical sync by counting the lines. This is the most popular way to implement the VGA synchronization signal.
The Device Configurator is very useful to set up the tcpwm stuff, I am still confused about the events/interrupts, but it's a question of learning the PSoC6 way.
Top Comments