Tetris using a PIC16F84 running @ 12MHz:
(NTSC video signal).
http://www.web-ee.com/Schematics/PIC.../PICTetris.htm
![]()
Tetris using a PIC16F84 running @ 12MHz:
(NTSC video signal).
http://www.web-ee.com/Schematics/PIC.../PICTetris.htm
![]()
Last edited by Luciano; - 11th November 2005 at 08:23.
I was afraid that PicBasic would be too high level of a language to work. I guess Ill attempt to learn some assembly. Uhg.
it's not impossible in PICBasic but it will depend of what kind of video signal you want to generate.
Sure the assembly method will provide a better range of possibility if you want a decent/great 'resolution'. Timing issue??? Hard to create Delay? Learn how to use internal Timer or learn or to work with MPLAB stopwatch and assembly loop.
A previous thread => Assembler for dummies => http://www.picbasic.co.uk/forum/show...ssembler+blink
12Mhz, 20Mhz work great for me for OSD... but plain text with plain lines... no 3D and ... of course no colours
The Michael link is a great start point. Maybe you can find out few example on www.epanorama.net
good luck.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes I stand corrected (but only slightly). You probably can generate video on a PIC and programmed in PicBasic, but I guarantee you it will still be quite a challenge taking this approach. And depending on your needs (which we know very little about), it still might not produce acceptable results. If you are just looking at producing a small number of units with this capability, then I would suggest using something like a BOB3 video board from these guys: http://www.decadenet.com/. Or for something even simpler (and much cheaper) may I suggest the SV1000 chip from: http://www.speechchips.com/shop/item.asp?itemid=7. Of course the BOB3 is much more capable, has 8 color text, hardware scrolling, and video overlay. But it will cost you to get these features.
If you do decide to roll-your-own, I would also suggest doing all the video generation with a separate PIC that communicates with another that runs your main code. This really would be the best approach (and similar to using your PIC with one of the above mentioned products), unless your needs are fairly simple.
Cheers,
I'm not going for somthing with a really high resolution. I was just interested in seeing if I could produce some simple video stuff, possibly even a game or two. I really wanted to use PB instead of ASM. Ill give it a shot in PB and post again when I have some results.
Just a quick question about assember: I'm trying to translate the "white stripe" code from http://www.rickard.gunee.com/project.../pic/howto.php into PicBasic and I came across the ASM statement "DNOP". I know very very little about ASM. What does this do?
DNOP is a macro. (Two NOP instructions).
See instruction NOP.
Luciano
Bookmarks