Hi everybody !
I'm trying to generate a PWM in order to make blink a LED.
On the Hercules RM42, this LED is connected to GIOA6_NHET[31] pin.
In HalCoGen, I have :
- Enable HET drivers
- Enable the PW0 on pin 31
- Enable output direction for pin 31
- Generate the code
- Include the file in CCS
In CCS, I've placed the following code in the syst_main.c file (I've following the TI tutorial):
/* USER CODE BEGIN (1) */
#include "het.h"
/* USER CODE END */
void main(void)
{
/* USER CODE BEGIN (3) */
hetInit()
while(1);
/* USER CODE END */
}
I can activate the led with the gioSetBit function, but the LED doesn't blink...
What the problem ?!
Thanks,
Anthony