Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Very basic question about GPIO

$
0
0

Hi, folks.

I have very basic question about GPIO configuration. My board is Stellaris Launchpad with LM4F120H5QR and I'm trying to run simple code like this below:

 SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
 GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, 0xFF);
 GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_0,  0x01 );

Result of this code is 0 at pin 0 of port D. I have same problem with other ports B, F, E works correct rest not at all. I've tried that on three different boards and result was the same 0.

Where is my mistake ? That ports need pull-ups or other not common actions ?

I have made HD44782 driver symilar to this project LCD PROJECT but running in 8-bit mode. When I'm using Port B as databus (DB0 - DB7) and Port D as systembus (for RS, RW, E signals) then my LCD Display not working but when I'm using Port E as systembus then all works correct.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>