It is currently Thu Sep 09, 2010 6:53 am




Post new topic Reply to topic  [ 3 posts ] 
 AVGA as Arduino library 
Author Message

Joined: Wed Oct 14, 2009 6:11 pm
Posts: 2
Post AVGA as Arduino library
Hi there,

After long searching for implemening video stuff for HAM ATV with AVR based hardware i stumbled on AVGA.

I think it's a great piece of software.

I studied the code and already hacked a quick stripboard shield for hooking up my arduino's for trying some things.

Just a question...

I wonder if the AVGA code can be incorporated as an Arduino include library
Or is this a tricky job due to incompatibilties in the arduino core code?

Greetings

MaBerY


Wed Oct 14, 2009 6:20 pm
Profile
Site Admin

Joined: Tue Mar 24, 2009 10:25 pm
Posts: 36
Post Re: AVGA as Arduino library
Hi,

I know little about arduino, but i guess this should be possible. Some people yet asked about this. There should not be any problem since no other interrupts are used in the system.

Hope you make it working :)


Tue Oct 20, 2009 8:04 am
Profile

Joined: Wed Oct 14, 2009 6:11 pm
Posts: 2
Post Re: AVGA as Arduino library
Hi Jerry

I indeed think that adapting the AVGA code to a Arduino is pretty simple since it's just a ATMega168 or ATmega328 chip on a board.
It has a bootloader on board to load the hex code into it.
I think it wil pretty much run out of the box without much efford.
Just hook up the resistor network to the pins and go.

About porting it to the arduino Wiring style language..
The problem is probably the assembly piece, since you cannot include a .S file in the arduino IDE. Basically you need to wrap it into a .CPP file with ASM directives.

The other thing what worries me is the fact the AVGA code hardwires a bunch of registers and I'm not sure if the GCC compiler will allow that incuding that in the regular arduino library templates.

Basically the arduino library templates dictates defining a Video class and wrap the functions into a CPP constructor and methods.

But I think it can be done so I'll give it a try
:roll:


Wed Oct 21, 2009 5:21 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.