Hi everybody,
I'm using an STR912 on the MCBSTR9 board from Keil. Programming is done in uVision with the RealView compiler.
For getting started I wanted to modify the blinky-example and read in one of the pins of port 3.
My code:
unsigned char status; GPIO3->DDR = 0x00; // port3 input status = GPIO3->DR[0x3fc]; // read whole port 3
This code is working perfectly for the LCD (as written in the blinky example). But whatever I connect to port 3, status will always be written with 0x00.
Can somebody tell me what's wrong?
Thanks and regards, Philipp