ShiftBrite, Mega, Pins, and Ports

Hi,

I'm looking to use a Mega with a ShiftBrite in non-SPI mode, per the second example here (with an Ethernet Shield): http://docs.macetech.com/doku.php/non-hardware_spi_example

But I want to use different pins.

Should I be able to use ANY unused digital pin/port combination for any of the ShiftBrite's pins? Does it matter if they are on the same port? I assume they don't need special features like PWM as the communication is low-level. Is that correct?

I have found these arduino pin/port mapping spreadsheets linked from this forum: http://spreadsheets.google.com/pub?key=rtHw_R6eVL140KS9_G8GPkA&gid=0 https://spreadsheets.google.com/ccc?key=roX9D5pGUrS4muSBJysz1QQ#gid=0

Cheers,

Lee

I made my megabrites work with my mega2560 using non-hardware in non usual pins and works perfectly.

I'd take a look on mega2560 schema to see the port/pins mapping.

Correct, any available digital pins will work fine. I could have used digitalWrite or shiftOut in the soft implementation, but it would have been much, much slower. That's why you have to play a little puzzle game with the PORTx and PINx numbers mapping to Arduino pin numbers. Shouldn't be too bad. Let me know if you need any help. Wonder if it would be possible to set up a macro that automatically prefines the ports and pins based on the Arduino mappings.

macegr: Wonder if it would be possible to set up a macro that automatically prefines the ports and pins based on the Arduino mappings.

what about http://code.google.com/p/digitalwritefast/? :D

Hi, I just posted a plea here: http://arduino.cc/forum/index.php/topic,51429.0.html. At the end is a complete table of pin - port assignments for the 1280 mega (which may be the same as the new board, but you'd have to check the schematic to be sure). My message also contains some code that might be useful to you.