Hello ...
Am using tms320c6701 and i configured all the interrupt registers i.e IER and CSR to enable the timer0 interrupt and ISTP was updated with the value 1C0h. but PC is not branching to 1C0h. Can you help me with this.
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.
Hello ...
Am using tms320c6701 and i configured all the interrupt registers i.e IER and CSR to enable the timer0 interrupt and ISTP was updated with the value 1C0h. but PC is not branching to 1C0h. Can you help me with this.
HI,
Thanks for your post.
In order to ensure the timer is active, we would recommend you to probe the TSTAT signal which directly drives the CPU interrupt and also the general purpose timer input pin (TINP0) and timer output pin(TOUT0) to check the status of the same. Alternatively, you could also evaluate the staus of TSTAT bit field in the timer control register (CTL) to tap the status of timer output value. Likewise, you could check the status of TINP0 and TOUT0 through DATIN and DATOUT bit fields of timer control register (CTL) sothat, we could tap the values of TINP and TOUT pins to know the status of each pin.
For more details, please refer the 32-bit timer reference guide as below:
http://www.ti.com/lit/ug/spru582b/spru582b.pdf
Kindly ensure the above to validate the issue, so that, it would be better to clarify the same.
Thanks & regards,
Sivaraj K
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
-------------------------------------------------------------------------------------------------------
since i dont have any board schematics ..i tried checking the CTL register and in that the TSTAT is toggling as required and DATIN and DATAOUT is always 1. i came to know that TOUT0 pin is connected to D4 LED and hence i could see the LED also toggling so i think timer is working fine. Now when i set the interrupt registers PC is not getting its vector adress that is 1C0h
Ranjana,
Why do you not have the schematics for your board? Is this an EVM or your own custom board?
Try clearing the IER register to all 0's and run your code. Check the IFR register to see if the correct interrupt bit is being set in IFR.
1. If it is being set in IFR, make sure the correct bit was being set in IER before this small test.
2. If it is not being set in IFR, then your problem is in the interrupt path logic from the timer to the IFR register. Look at the timer registers and the interrupt mapping registers.
3. If ISTP = 1c0h, which interrupt number are you using for your timer interrupt? You would not expect to use interrupt 0 (reserved for reset), so some other interrupt vector would usually be the target, such as interrupt 4. The program would not go to 1c0h, then, but to the interrupt 'vector'/code at a slightly higher address from where the ISTP is pointing.
I hope I do not have some of these names and facts confused. This is a very old processor that I have not seen used for many years.
Regards,
RandyP
sir...
I have checked and configured all that you mentioned above but still PC is not getting the vector address