I think that the first goal is reached. the Pioneer Kit is able to show a real 320x240 8bpp image!
Now it's time for making the VGA video driver more flexible so that I can change the horizontal and vertical resolution for my emulator. I need also to build a better 8-bit resistor DAC to improve the colors.
This driver makes use of one TCPWM that drives the HSync pulse with a PWM wave. An interrupt fired by this counter launches an ISR that handles the VSync, and the stream of pixels for every scanline of the vertical active area.
The clocking system uses the ECO clock, and the PLL to generate a 100MHz clock signal for the peripheral clock. I decided not to go at 150 MHz because the peripheral clock can only work at maximum 100MHz, and I should have divided the clock by 2, resulting in a peripheral clock of 75MHz, not enough fast for the DMA to transfer all the pixels of a scanline.
Thanks to misaz for helping with suggestions, especially for saving me a lot of soldering work for the 8-bit RGB port assigned to pins P2_0..7
What to say, I am very impressed by this MCU so far, and this successful step gives me a lot of enthusiasm and energy to move on in this project!
Top Comments