Hi
I need to connect my MCBSTR9 board to a FPGA board. I have been trying to get input via GPIO pins. I am able to get input only over P4 and P5 (I have tried P0 - P6). I am displaying the output on the LEDs. Also I would like to know more about the 4 modes selected by GPIOOUT.
I have written the following small code.
#include <91x_lib.h> int main(void){ SCU->GPIOOUT[7] = 0x5555; GPIO7->DDR = 0xFF; SCU->GPIOOUT[6] = 0x0000; /* tried 0-5 also in place of 6*/ SCU->GPIOIN[6] = 0xFF; GPIO6->DDR = 0x00; while(1){ GPIO7->DR[0x3FC] = GPIO->DR[0x3FC]; } }
Thanks Aseem