Hi Sir,
I'm confusing on driving LED on lanchPad of TM4C123G.
as below
<code>
(*((volatile uint32_t *)(SYSCTL_RCGCGPIO_R)))=0x3F;//enable PA~PF GPIO clock
(*((volatile uint32_t *)(GPIO_PORTF_LOCK_R)))=0x4C4F434B;//unlock
(*((volatile uint32_t *)(GPIO_PORTF_CR_R)))=0x00000001;//enable all
(*((volatile uint32_t *)(GPIO_PORTF_PUR_R)))=0x00;//
(*((volatile uint32_t *)(GPIO_PORTF_PCTL_R)))=0x00000000;//
(*((volatile uint32_t *)(GPIO_PORTF_DIR_R)))=0x0E;//PF1,2,3 output
(*((volatile uint32_t *)(GPIO_PORTF_AFSEL_R)))=0;//
(*((volatile uint32_t *)(GPIO_PORTF_DEN_R)))=0xff;
(*((volatile uint32_t *)(GPIO_PORTF_DATA_R)))=0X02 ;// Turn on PF1
(*((volatile uint32_t *)(GPIO_PORTF_DATA_R)))=0X00 ;//Turn off PF1
</code>
I dont know why can't drive LED,who can support me solve this problem.