This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PWM and Hercules RM42

Other Parts Discussed in Thread: HALCOGEN

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