Show Posts
Pages: [1]
1  Using Arduino / Storage / Setup DDRB, SPCR,PORTB for connect RAM 32k with Arduino MEGA???? on: November 15, 2011, 09:04:49 am
Hi! I´m trying to connect an external memory RAM 32KB with Arduino MEGA. I connect it with Arduino Duemilanove and I got it, but now I want to do it with the MEGA, and I have to configure the pins MOSI, MISO, CLK and SS (11,12,13,10 in Duemilanove) for to use it with Arduino MEGA.
This is how is defined in the SRAM library (Duemilanove):

#define setupSPI SPCR = 0x50 //Master mode, MSB first, SCK phase low, SCK idle low, clock/4
#define setupDDRB DDRB |= 0x2c  //set  SCK(13) MOSI(11) and SS as output
#define selectSS PORTB &= ~0x04  //set the SS to 0 to select
#define deselectSS PORTB |= 0x04  //set the SS to 1 to deselect

And my question is, which address do I have to change for to use it with MEGA device??I found this, but it doesn´t work.


#define setupSPI SPCR = 0x2c //Master mode, MSB first, SCK phase low, SCK idle low, clock/4
#define setupDDRB DDRB |= 4  //set  SCK(13->52) MOSI(11->  51) and SS as output
#define selectSS PORTB &= ~5  //set the SS to 0 to select
#define deselectSS PORTB |= 5  //set the SS to 1 to deselect


Thank you everyone!

2  Using Arduino / Storage / Does anybody know if SPIEEPROM tutorial works?? on: November 14, 2011, 05:08:50 am
Hi! My question is simple, Does anybody know if SPIEEPROM tutorial works?? This is the link -> http://www.arduino.cc/es/Tutorial/SPIEEPROM
3  Using Arduino / Storage / LIbrary for 23K256 SRAM to connect duemilanove on: November 09, 2011, 06:49:28 am
Good morning!

I am trying to connect a SRAM memory 23K256 to a Duemilanove device. I have downloaded the SpiRAM library from the Arduino tutorial but this library it doesn´t work, and also I´ve downloaded a library called RAM9. I´m trying to use the code example of the SpiRAM website (http://arduino.cc/playground/Main/SpiRAM) for testing the memory RAM with other library changing some sentences in the code, and no results. I´ve attached the two libraries (SpiRAM and RAM9) and the code example of SpiRAM and the code modified of RAM9. I would like that somebody help me with this last modified code (RAM9).

Thanks
4  Using Arduino / Storage / Max capacity external memory RAM on: October 03, 2011, 11:30:58 am
Hi everyone! I am working in a project about realiable wireless communication, and I need a external memory for store data when the Arduino is out of range. So, my question is very simple. Does anybody know which is the bigger memory RAM that i can add to the arduino? Because the biggest that i found it was 23K256 (32KB), and this is too small. Thanks!
Pages: [1]