dsPIC33 VDC with GLCD or PAL TV output
HTML-код
- Опубликовано: 9 сен 2024
- This is a modification of a program running on a dsPIC33FJ128GP802 to support output to a PAL TV. The code previously only supported a 320x240 pixel graphical LCD (PG320240H-P9). Due to performance and refresh rate concerns, only one display is driven at a time; you may be able to see the Mandelbrot pattern on the LCD at the start of this video when the "TV" (a VGA box connected to a PC monitor) is unplugged.
Please see benryves.com/jo... for more information and a code download.
@sikthehedgehog If you look at the old "PG320240H-P9 Demo" video you'll see that the final Mandelbrot is even slower when the LCD is used instead of the TV (much more CPU intensive to refresh the LCD than the TV).
No special tricks are in use for the cube (not even fixed point). The dsPIC33 is running at 40MHz, so up to 40 MIPS are available (quite a lot of that time is spent generating the video signal, but as you can see there's plenty left over for some graphics routines.
@BinaryReader Cheers. :-) One can't have a demo without a spinning cube!
awesome Ben, you seem like your always up to doing interesting things with these devices you build. looking forward to the next vid / demo. oh, and it wouldn't be complete without that 3d spinning cube :D
LOL, the Mandelbrot pattern rastering at the end looks like the computer I'm using right now... except this computer is even slower =/
Also, any tricks for the math-intensive parts (e.g. 3D) or are you just using multiplication and division as is?
@sikthehedgehog (In addition) - Source is available at the bottom of the page linked in the video description - see main.c for the demo code if you're interested.
@sikthehedgehog Heh, have fun! ;-) Single-cycle multiplication is always pleasant to have. I haven't even looked at the DSP stuff yet!
I see Google still haven't got the hang of stripping HTML from comments - "descri.ption" becoming "deion" is an interesting one.
facing the same issue :) (did this many times in the past anyway)
@benryves D'oh, how I didn't notice that >_< Although no tricks then, eh? Oh well, I guess I'll have to keep using my lame cheats on weak hardware (which includes stuff like addition abuse or look-up tables =P).