Hi everyone!
I have a strange doubt that I can't understand. I configured my TM4C123GH6PM from my Launchpad with the maximum clock frequency of 80MHz. Why did I obtain a signal output of 1MHz and 2 MHz respectively with only the next code? What is it happen me with the time? With my TM4C1294NCPDT from the Connected Launchpad with the maximum clock frecuency of 120MHz happens the same.
CODE which output is square signal of 1MHz:
while(1)
{
GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_6, GPIO_PIN_6);
//SysCtlDelay(1);
GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_6, 0x00);
//SysCtlDelay(1);
}
CODE which output is square signal of 2MHz:
while(1)
{
HWREG(0x40007100) = 0x40;
//SysCtlDelay(1);
HWREG(0x40007100) = 0x00;
//SysCtlDelay(1);
}
I expect a square signal with either 20MHz or 40MHz.
Someone know what is it the problem?
Thanks in advance!