Hi all,
I am using tm4c129encpdt controller: -> crystal used 16Mhz
my gpio configuration is as bellow:
case A)
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
SysCtlGPIOAHBEnable(SYSCTL_PERIPH_GPIOD); GPIOPinTypeGPIOOutput(GPIO_PORTD_AHB_BASE, GPIO_PIN_0);
while(1)
{
HWREG(GPIO_PORTD_AHB_BASE + GPIO_O_DATA + (GPIO_PIN_0 << 2)) = GPIO_PIN_0;
HWREG(GPIO_PORTD_AHB_BASE + GPIO_O_DATA + (GPIO_PIN_0 << 2)) = 0;
}
case B)
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD); GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_0);
while(1)
{
HWREG(GPIO_PORTD_BASE + GPIO_O_DATA + (GPIO_PIN_0 << 2)) = GPIO_PIN_0;
HWREG(GPIO_PORTD_BASE + GPIO_O_DATA + (GPIO_PIN_0 << 2)) = 0;
}
In case A and B i am getting the same frequency as 3.54MHz i have observed it on DSO(digital storage osc) . Why AHB bus is not working. Is there any mistake in pin configuration?