Hi,
i have problem with using timer1. i'm using time 0 with no problems, but timer1 is not producing interrupts. from the registers view it looks the timer is running, like timer0 registers, but for some reason it is not producing the interrupt.
here are the definitions i made (in MAIN function):
"
InitPieCtrl(); // saved function which clear all PIR interrupts
InitPieVectTable();
EALLOW;
PieVectTable.TINT0 = &cpu_timer0_isr; //re-map the entry for CPU-timer0
PieVectTable.XINT13 = &cpu_timer1_isr;
PieVectTable.ADCINT = &adc_isr;
EDIS;
InitCpuTimers(); // setting Timer0 and stopping it
ConfigCpuTimer(&CpuTimer0, 150, 10); // initializing timer0 to work with 150Mhz clk, and to overflow after 10us
ConfigCpuTimer(&CpuTimer1, 150, 100); //100us
PieCtrlRegs.PIEIER1.bit.INTx7 = 1; // enabling PIEIER1 - INT1, bit7. = Timer0 interrupt
PieCtrlRegs.PIEIER1.bit.INTx6 = 1; / / enabling ADCINT
IER |=1; // enable interrupts
EINT; // macro which enable control interrupts
ERTM; // macro to debug interrupts globally
"
inside the program where i wanted to start the timer i wrote:
"
CpuTimer1Regs.TCR.bit.TSS = 0;
"
what can be my problem?
thanks,
Israel