Other Parts Discussed in Thread: HALCOGEN, RM48L950
Tool/software: Code Composer Studio
Hi ,
I'm using RM48L950. I want to change pwm duty cycle with interrupt ( 100 us ) . I'm doing that but i have a signal problem in ossiloscope.I did every setting in HALCoGen. Below are the codes and the error i got. There are interruptions in the signal.What is the reason of this and how can I fix this problem? I will be grateful if you could help me and I would be very happy if you can come back quickly.
Have a good day.
-CODES-
#include "sys_common.h"
#include "rti.h"
#include "het.h"
#include "gio.h"
int i;
void main(void)
{
sciInit();
hetInit();
rtiInit();
gioSetDirection(hetPORT1, 0xFFFFFFFF);
pwmStart(hetRAM1, pwm0);
rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
_enable_IRQ();
rtiStartCounter(rtiCOUNTER_BLOCK0);
while(1);
}
void rtiNotification(uint32 notification)
{
if (i < 101)
{
i++;
}
else
{
i=0;
}
pwmSetDuty(hetRAM1, pwm0,i);
}
