Hello
For efficiencies sake in a high speed interrupt service routine, I really need to be able to access an entire 8-bit wide port as a single byte, rather than using the likes of digitalWrite(pin, 0|1). Specifically, I want to be able to assemble bit value in a byte register and then write them all to a physical port in one go. I then also need to reset them all in a single instruction. Well, you get the idea. Pretty common stuff.
To help save me a bunch of time and learning curve with the Maple, can someone please give me an example of how to write and read to an 8-bit wide data port, directly, on the Maple Rev5?
Also -- where do I go looking for a pin map of which 'Arduino' pin numbers are connected to what ports on the Maple Rev.5's MCU?
Thanks!
Post-ample ...
I'm very familiar with how to do all this, having programmed MCU's without Wirish etc for years. I guess what I'm asking for then is some pointers on how to best get under the hood (libmaple?) to get this done in the sort of best, 'libmaple friendly' way -- if that makes sense.
Obviously, my code will not be necessarily compatible from board to board. That's OK. I'm targeting the Maple Rev5 only for this project.
Of course, I *could* just go to the SMT32 data sheets and look up the register addresses, etc. But I'm sure there's "better" ways to handle things, given what I have been able to absorb from the libmaple docs. It's all just a bit overwhelming right now.
Meanwhile, I'll keep reading. Maybe I'll I figure out before someone replies. *gulp*
Thanks again!