This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cant write port output with str912 demo board

Hi, I am new to ARM (usually work with 8051), and am working on a little RS232 GPIO board. Project is a serial input on port 3 (uart 1) takes 3 bytes in and writes the values to ports 0-2, and 4-9.

The program seems to be working fine on ports 4,7,8 and 9. On the other ports the direction registers seem to be stuck as inputs. in my main routine I have lines to configure all the ports as outputs:

SCU->GPIOOUT[0] = 0x5555; GPIO0->DDR = 0xFF; "" "" SCU->GPIOOUT[9] = 0x5555; GPIO9->DDR = 0xFF;

When I stop the program and look at the output registers the GPIO_DIR[x] registers stay at 0x00 on ports 0,1,2,3 5 and 6.

I tried single step through my startup configuration
code and the direction registers never change. Is there something I am missing for using these
ports as outputs?

Thanks,
Andrew

0