Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To use another Arduino Board #3

Open
jesuspk157 opened this issue Jan 31, 2016 · 2 comments
Open

To use another Arduino Board #3

jesuspk157 opened this issue Jan 31, 2016 · 2 comments

Comments

@jesuspk157
Copy link

Hi, this project is awesome. I have tried this with the Arduino Uno and it run perfectly, but what about to use a powerfull board? For example the Arduino Mega.

You about this topic said: "I used the Duemilanove with an AtMega328 running at 16MHz. A different chip may have different timings, and a different speed will most certainly require modifications to the timing code."

Differences between Uno and Mega:
Uno: ATmega328 - 16MHz - 32Kb
Mega: ATmega2560 - 16MHz - 256Kb

What I should investigate or read and modify to run your project in a Arduino Mega? My project it is about create a wearable or a gun controller for N64 using Arduino, Maybe I wont use a Wii controller for that reason I need a many digital entries for the different buttons.

Thank you.

@NicoHood
Copy link

Just follow the readme and click this link:
https://github.com/brownan/Gamecube-N64-Controller#see-also

@brownan
Copy link
Owner

brownan commented Feb 1, 2016

If the other chip is 16MHz as well, then the cycle budgets in the assembly critical sections should stay the same. You just have to make sure each instruction takes the same number of cycles. Most instructions take the same number of cycles regardless of chip according to the AVR Instruction Set Manual, but a few instructions have notes next to them.

If they're both 16MHz I'd suggest trying it and seeing what happens. It may work just fine. I just didn't want to make a blanket statement about which chips it works with and which it doesn't. I've only tested it on the one chip.

If you get it to work, let us know. I'll leave this issue open as a discussion on getting the code to work on ATmega2560 chips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants