|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We noticed that the color changes when a different voltage is applied to the pins. For example, the intensity for the red color varies depending on the voltage applied to the red pin. The higher the voltage, the brighter the color will be. This discovery enables us to create a wider variety color palette.
Now we procede with the explaination of creating another 8 colors. The
extra 8 colors are created by substituting 0V as logic '0' to +2.5V. MaxPlus2
does not support any variation of voltage to the output pins, therefore
we have to use Pulse Width Modulation. Pulse Width Modulation is alternating
a signal at regular interval to create the effects of variating voltage.
The +2.5V is created by alternating a signal at 50% duty cycle. A good
example of 50% duty cycle signal is the clock signal. The graph for generating
+2.5V is shown below:
The table below shows all 16 colors.
( Clock gives a 50% duty cycle that modulate a +2.5V)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We have created another set of color palette. The colors that use +2.5V as logic '0' are called intense colors. They are slightly brighter than the colors that use 0V for logic '0'. Although the differences are not much, it is noticeable. The only color that is similar is white and intense white.
A wider set of color can be created however due to the limitation of the clock, we can only display 16 colors in 640*480 resolution at 60fps (frame per second). If we reduce the resolution or the fps, more clock cycle can be used to refresh each pixel. Therefore we can modulate more colors signal at different interval to create different level of voltage.
The limitation is caused by generating a signal at regular interval. The reference signal to use generate the regulating signal is the clock. Any signal faster than the clock is not possible on the UP1 board unless a faster external clock crystal is connected to it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|