Getting started with Propeller video output...
iam7805
Posts: 14
Hi guys,
I'm getting started with using the Propeller chip. Luckily, the Spin language is based on BASIC which is great, because I already know BASIC quite well.
It's confusing me how to output video to a TV though. I read through the manuals and the comments in the TV.spin and Graphics.spin files, and was still confused on how to do this.
So, could anybody give me a straight-forward guide on how to output graphics and text? This Propeller seems very promising for my project, now to learn how to use it.
Thanks,
iam7805
I'm getting started with using the Propeller chip. Luckily, the Spin language is based on BASIC which is great, because I already know BASIC quite well.
It's confusing me how to output video to a TV though. I read through the manuals and the comments in the TV.spin and Graphics.spin files, and was still confused on how to do this.
So, could anybody give me a straight-forward guide on how to output graphics and text? This Propeller seems very promising for my project, now to learn how to use it.
Thanks,
iam7805
Comments
(The reason i'm asking is because I don't actually have a Propeller yet)
2) There are some shortcuts:
CON
SetX = 10
SetY = 11
VAR
long count
OBJ
textdisplay : "tv_text"
PUB Main
textdisplay.start(12)
textdisplay.str(string("Hello World"))
repeat count from 1 to 1000
waitcnt(80_000_000 + cnt) ' waits one second
textdisplay.str(string(SetX,2,SetY,2))
textdisplay.dec(count)
Note that this will put out a video signal, not a broadcast signal (on some tv channel). To do this, you have
to modify the tv_text object. Attached is a modified version of tv_text. Since the pins for the tv D/A have
to be in groups of 4 (as far as the program is concerned), I use the lower 2 bits of the pin number to specify
the tv channel to be used. If the bits are zero, color, progressive scan video is produced. If the bits are 1 through 3, TV channels
2 through 4 are used. For TV, I've disabled color and used interlaced mode for a better display. I recommend
using channel 3. Because of how the RF is produced, there's more static if channels 2 or 4 are used.