SXBASIC good for video work?
cbmeeks
Posts: 634
I'm pretty sure Bean used it for video and I've used it a little on PICs.
But what is the general opinion on using BASIC for a video kernel driven by an SX?
Or should things like that be kept to pure asm?
Thanks
cbmeeks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://metroidclassic.com
=========
DMCA Sucks
RIAA Sucks
But what is the general opinion on using BASIC for a video kernel driven by an SX?
Or should things like that be kept to pure asm?
Thanks
cbmeeks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://metroidclassic.com
=========
DMCA Sucks
RIAA Sucks
Comments
<edit> If the time between signal changes for your video are far enough apart, you can place the code for doing that in the ISR (likely encoded in asm), then use SX/B for the non-interrupt code </edit>
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 10/6/2005 2:01:42 PM GMT
I'm not sure as I haven't tried it but I think it's worth trying. I agree with Paul that you will end up needing to go to ASM to get the best performance but I bet you can get something running with just SX/B.
I did something similar with an ATMega and C and was surpized at how good the results were. I did end up going to ASM to increase the resolution but since I was learning about video, it was a nice natural step for me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.speechchips.com
Speech & Video IC's for BasicStamps
SX/B is getting more useful/powerful by the day [noparse];)[/noparse]
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
Color video is quite a bit more challenging.
You can download the source code for the SX video module from www.sxvm.com
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
Product web site: www.sxvm.com
Available now... SX-Video OSD module $59.95 www.sxvm.com
"I'm a man, but I can change, if I have to, I guess"
Red Green
·
I've done both color and B/W in ASM and will probably just stick to ASM but I was wondering the general opion on BASIC and video.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://metroidclassic.com
=========
DMCA Sucks
RIAA Sucks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax