- It is currently Mon Aug 15, 2022 5:55 am • All times are UTC - 8 hours [ DST ]
Have the shield working with Mega - library attached
18 posts
• Page 1 of 2 • 1, 2
Have the shield working with Mega - library attached
- Attachments
-
AudioCodecMega.zip
- Codec Library updated for Mega
- (26.49 KiB) Downloaded 1818 times
- scott2
- Posts: 15
- Joined: Thu Sep 27, 2012 5:48 pm
Re: Have the shield working with Mega - library attached
this is awesome, thanks for digging into it. ill give the library a read over.
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Have the shield working with Mega - library attached
np!
It's exactly the same code, except:
- just moved the location of the SPI init calls
- Updated to timer 5 being driven by the shield instead of 1 I think it was before. Updated the example code to look @ the T5 interrupt vector instead.
You may want to update the docs with the new pin mappings as discussed in other forum threads. Didn't write anything about that in there.
It's exactly the same code, except:
- just moved the location of the SPI init calls
- Updated to timer 5 being driven by the shield instead of 1 I think it was before. Updated the example code to look @ the T5 interrupt vector instead.
You may want to update the docs with the new pin mappings as discussed in other forum threads. Didn't write anything about that in there.
- scott2
- Posts: 15
- Joined: Thu Sep 27, 2012 5:48 pm
Re: Have the shield working with Mega - library attached
cool, will do. i will also add in the clobber list at the end of the asm calls. its something i forgot to do on the first library i wrote, which is probably the one you ended up grabbing. basically, it tells the compiler which registers the assembly calls are using, so that they can be handled correctly in interrupts and such.
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Have the shield working with Mega - library attached
those are all the correct UNO pins. how are you testing it?
- guest
- Site Admin
- Posts: 449
- Joined: Thu May 20, 2010 11:58 pm
Re: Have the shield working with Mega - library attached
My testing procedure was to load up the mega library version of the sine generator example and listen to the output through headphones. There is currently no output.
I will try with another non-mega arduino tonight to test the codec board.
EDIT: Tested with a Diecimila board. The non-mega sine sketch works perfectly, so it's not my codec shield.
I will try with another non-mega arduino tonight to test the codec board.
EDIT: Tested with a Diecimila board. The non-mega sine sketch works perfectly, so it's not my codec shield.
- Brownian Lotion
- Posts: 6
- Joined: Fri Aug 08, 2014 7:15 am
Re: Have the shield working with Mega - library attached
That works!
So I2C is working?
So I2C is working?
- Brownian Lotion
- Posts: 6
- Joined: Fri Aug 08, 2014 7:15 am
18 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest