Hi,
I am using Tiva C Series (tm4c123gxl) launchpad and Keil IDE. My plan is to toggle the led's connected to PORTD in particular format. I had given the proper settings to the GPIO registers and getting output in the Keil Logic analyzer,but when checked in the hardware, the PD0 and PD7 signals are not getting the proper magnitude and rest of the signals are getting correctly. I had given the code and I want to know whether is it a problem on the register settings or some where else in the coding or can be a hardware fault?
Here is my code
volatile unsigned long delay;
sysctl_rcgc2_r = 0x00000008;
delay = sysctl_rcgc2_r;
gpio_portd_lock_r = 0x4C4F434B;
gpio_portd_cr_r = 0xFF;
gpio_portd_dir_r = 0xFF;
gpio_portd_afsel_r=0x00;
gpio_portd_pctl_r=0x00000000;
gpio_portd_amsel_r=0x00;
gpio_portd_pur_r = 0x80;
gpio_portd_den_r=0xFF;
while(1){
if(z==0)
gpio_portd_data_r=0x05;
for(z=0;z<1508;z++)
gpio_portd_data_r=(1<<0)+(0<<1)+(1<<2)+(0<<3)+(0<<4)+(0<<5)+(0<<6)+(0<<7);
for(z=1508;z<1717;z++)
gpio_portd_data_r=(0<<0)+(0<<1)+(1<<2)+(1<<3)+(0<<4)+(0<<5)+(0<<6)+(1<<7);