#14614 - slboytoy - Fri Jan 09, 2004 5:24 pm
Ok I need some help writing some code here. I have a program that resides in the IWRAM and i want to access the CART bus to light up some LEDs.
For example. I have a program that loads in the IWRAM and when you push either button A or button B, it will save a value '1' in two different memory locations. (ie. 0x8000001, 0x8000002). And when there is a '1' placed in those locations, corresponding LEDs will light up.
I'm pretty sure I know how to hook up SRAM correctly using a latch to latch the address when CS is selected.
But i have the program, and i hook up a logic analyzer to see if when I do press a button, if any activity happends on the CART bus. But i'm coming up with nothing. All the lines are high, and stay high.
#define CART_SRAM 0xe000000
*(u16*)(ADDR+0xFFFF) = i;
That is my sample part of my program. Can anyone help me out?
For example. I have a program that loads in the IWRAM and when you push either button A or button B, it will save a value '1' in two different memory locations. (ie. 0x8000001, 0x8000002). And when there is a '1' placed in those locations, corresponding LEDs will light up.
I'm pretty sure I know how to hook up SRAM correctly using a latch to latch the address when CS is selected.
But i have the program, and i hook up a logic analyzer to see if when I do press a button, if any activity happends on the CART bus. But i'm coming up with nothing. All the lines are high, and stay high.
#define CART_SRAM 0xe000000
*(u16*)(ADDR+0xFFFF) = i;
That is my sample part of my program. Can anyone help me out?