Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hi,
i have generated with the HET IDE a simple code to generate a pwm on my TMS570 Launchpad. This part is working and i am able to set the frequency and the duty cycle in sys_main.c like the code below:
/*This code is working well*/
int main(void)
{
/* USER CODE BEGIN (3) */
HETPROGRAM0_UN * pHETprogram;
hetInit();
pHETprogram = (HETPROGRAM0_UN*)hetRAM1;
pHETprogram -> Program0_ST.L00_0.cnt.max = 2047;
pHETprogram -> Program0_ST.L01_0.ecmp.data = 2000;
while(1)
{
}
/* USER CODE END */
return 0;
}
This part is working well. But everytime i am trying to select the pin manually there is no output signal at the selected pin. I have already set the wanted pin in HALCOGEN as output. Does someone know what is the problem or can help me to find the solution?
/*This code doesen't generate an output signal*/
int main(void)
{
/* USER CODE BEGIN (3) */
HETPROGRAM0_UN * pHETprogram;
hetInit();
pHETprogram = (HETPROGRAM0_UN*)hetRAM1;
pHETprogram -> Program0_ST.L00_0.cnt.max = 2047;
pHETprogram -> Program0_ST.L01_0.ecmp.pin_select = 0; //With this line there is no output signal.
pHETprogram -> Program0_ST.L01_0.ecmp.data = 2000;
while(1)
{
}
/* USER CODE END */
return 0;
}