#91317 - TheRain - Thu Jul 06, 2006 8:27 am
I'm trying to write data to the DS card slot's I/O 0 - 7 pins... i won't be surprised if no one has an answer for this, but I thought I'd try anyway.
I have the folowing code:
in my main loop I have this code for calling the function upon button press:
I can see the text for Button X on the screen when I press it, but I see no data on my oscope.. levels sit at steady 3.27 V I'm starting to think that maybe even though I have Flashme on my DS, I need to do some hardware handshaking with the card slot or something to convince the DS that it is ok to now write data... does anyone know if this is true or not?
I have no IC's or CPLD's or chips of any kind at the card slot as of now, I am just analyzing the pins themselves straight from the card slot. I have been trying to read through and comprehend the VHDL code for the original Passme, but I haven't figured out from that if I need to have a chip at the card slot to send response to something in order to start I/O.
any ideas?? or does anyone know of some documentation for the card.h portion of libnds?
I have the folowing code:
Code: |
void paralellWrite(char b) { CARD_EEPDATA=0x00; CARD_CR1 = /*E*/0x8000 | /*SEL*/0x2000 | /*MODE*/0x40 | 7; // frequency divided 7 EepromWaitBusy(); // waits for CARD_CR1 busy flag to be false CARD_EEPDATA=b; CARD_CR1 = 0x40; } |
in my main loop I have this code for calling the function upon button press:
Code: |
if(held & KEY_X) { iprintf("BUtttON X"); paralellWrite('U'); } |
I can see the text for Button X on the screen when I press it, but I see no data on my oscope.. levels sit at steady 3.27 V I'm starting to think that maybe even though I have Flashme on my DS, I need to do some hardware handshaking with the card slot or something to convince the DS that it is ok to now write data... does anyone know if this is true or not?
I have no IC's or CPLD's or chips of any kind at the card slot as of now, I am just analyzing the pins themselves straight from the card slot. I have been trying to read through and comprehend the VHDL code for the original Passme, but I haven't figured out from that if I need to have a chip at the card slot to send response to something in order to start I/O.
any ideas?? or does anyone know of some documentation for the card.h portion of libnds?