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.

TMS570LS3137: RTI doubt

Part Number: TMS570LS3137

Hello,

I want to use two RTI notification compare. However, It only interrupts when the 'compare period 0' reaches the specified value (30000). The 'compare period 1' (1000) does not work.

Following, I attach the code of rtiNotification.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void rtiNotification(uint32 notification)
{
uint8_t i,j;
uint16 A2 = 0x00, A1 = 0x00, A0 = 0x00;
uint8 exTime0 = 0, exTime1 = 0;
switch (notification)
{
case rtiNOTIFICATION_COMPARE0:
/* enter user code between the USER CODE BEGIN and USER CODE END. */
/* Toggle HET pin 15 */
gioSetBit(hetPORT1, 15, 1); //0x00100000
gioSetBit(hetPORT1, 20, 1); //0x00100000
for(i = 0; i<10; i++){for(j = 0; j<10; j++){}} // It defines the pulse width
gioSetBit(hetPORT1, 15, 0); //0x00000000
gioSetBit(hetPORT1, 20, 0); //0x00100000
break;
case rtiNOTIFICATION_COMPARE1:
exTime0++;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks and regards,

Leandro