Other Parts Discussed in Thread: EK-TM4C129EXL
Tool/software: Code Composer Studio
#include<stdint.h>
#include <stdio.h>
#include "inc/tm4c129encpdt.h"
void delay(int value);
int main(void)
{
SYSCTL_RCGCGPIO_R |=(1<<0);
GPIO_PORTA_AHB_DIR_R &=(1<<6);
GPIO_PORTA_AHB_AFSEL_R &=(0<<6);
//GPIO_PORTA_AHB_PC_R |=(1<<0);
//GPIO_PORTA_AHB_DR4R_R |=(0<<0);
//GPIO_PORTA_AHB_DR8R_R |=(1<<0);
//GPIO_PORTA_AHB_ODR_R |=(1<<0);
//GPIO_PORTA_AHB_DEN_R |=(1<<0);
while(1)
{
GPIO_PORTA_AHB_DATA_R &=(1<<6);
delay(30000);
GPIO_PORTA_AHB_DATA_R &=~(1<<6);
delay(30000);
}
return 0;
}
void delay(int value)
{
int i,j;
for(j=0;j<1000;j++)
for(i=0;i<value;i++);
}
When the code is run then port A pin 6 are not toggle. What is my problem. Please some help me..