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
I got it fixed now. The use of a correct startup code is quite helpful ;)
regards, Philipp
i do same MCBSTR9. but lcd 's screen is black. can u show bug to me. Regard hiho
Line 17.
i make board same MCBSTR9. I test module lcd. i think my board is true. But lcd 'screen is no change.. can u help me...
"Line 17."
No, I don't think that's the real cause of his problem.
The error message to that will simply be:
C999:Error-Comment is missing or is misleading
He needs to look more closely at line 23.