I use TMS570LS3137 Development Kit and HallCoGen 4.07.00 version do the clock test and I want to use 16Mhz crsytal osilator on the development kit. Here is my HallCoGen configuration:
I use main oscillator for the OSC(don't want to use PLL) clock source, on the development kit, it's a 16MHz crystal. Just, my while loop run the led blink in main.
here my code,
#include "sys_common.h"
/* USER CODE BEGIN (1) */
#include "het.h"
#include "gio.h"
/* USER CODE END */
/** @fn void main(void)
* @brief Application main function
* @note This function is empty by default.
*
* This function is called after startup.
* The user can use this function to implement the application.
*/
/* USER CODE BEGIN (2) */
/* USER CODE END */
int main(void)
{
/* USER CODE BEGIN (3) */
hetInit();
gioSetDirection(hetPORT1, 0xFFFFFFFF);
while(1)
{
gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001);
}
/* USER CODE END */
return 0;
}
when ı want to measure output of the led with oscilloscope, I observed toggle frequency 108Khz in oscilloscope but I need to observe 16Mhz
But the problem is : watch the OSC frequency, it seems the actual frequency 108Khz, please tell me why.
Regards