Increment Getting Clobbered

Started by Brian C. Lane in TMS320c54x18 years ago 2 replies

This code runs in an interrupt (a DMA irq) TC = (*(_timer_10ms) == #0) if(TC) goto hold_10ms *(_timer_10ms) -= #1 In...

This code runs in an interrupt (a DMA irq) TC = (*(_timer_10ms) == #0) if(TC) goto hold_10ms *(_timer_10ms) -= #1 In non-interrupt time I check for it being at 0, do some stuff, and reset it to 12. if( timer_10ms == 0 ) { inc_clock(


AW: Interrupt Servicing

Started by Thomas Hupp in TMS320c54x23 years ago

-----Ursprungliche Nachricht----- Von: Leigh Wells [SMTP:] Gesendet am: Donnerstag, 8. Juli 1999 18:05 An: Betreff:...

-----Ursprungliche Nachricht----- Von: Leigh Wells [SMTP:] Gesendet am: Donnerstag, 8. Juli 1999 18:05 An: Betreff: [c54x] Interrupt Servicing Hi all: I am using the '5410 eval board from Spectrum Digital and the TI emulator. I have a qu


Interrupts with timer (TMS320C5402)

Started by jjnews2000 in TMS320c54x18 years ago

Hi everybody, I'm trying to realise an interrupt generated by the timer but unfortunately the code lines included in the...

Hi everybody, I'm trying to realise an interrupt generated by the timer but unfortunately the code lines included in the interrupt program (i hope this is clear enough)are never done. I read the documentation about the timer and also about interrupts, but i don't s


HPI Host Interrupt

Started by eli_zarka in TMS320c54x19 years ago

Hi all, I am new in DSP development. From the Host point of view: Is there an usual method to know if the DSP is out of reset...

Hi all, I am new in DSP development. From the Host point of view: Is there an usual method to know if the DSP is out of reset or in regular stage when the host receive a Host Interrupt (HINT)? Thanks, Eli.


DMA channel 0 interrupt on 5402

Started by Eli in TMS320c54x20 years ago

Hello All. A peculiar thing just happened to me (with a new DSK 5402). What I did, was to read McBSP0 with DMA using...

Hello All. A peculiar thing just happened to me (with a new DSK 5402). What I did, was to read McBSP0 with DMA using auto-initialize. The idea is to fill a buffer, and then go on to the next one. The interrupt routine is supposed to alter the global registers, so the


External interrupts

Started by bartzuid in TMS320c54x19 years ago 2 replies

Hello, I'm doing a university project with the 5416DSK. In this project I'm using external interrupt pins INT0 and INT1. I've...

Hello, I'm doing a university project with the 5416DSK. In this project I'm using external interrupt pins INT0 and INT1. I've set up the hardware interrupt using the configuration tool of CCS. The HWI calls a function which lights up a LED on the DSK. Although I would like it


5402, problems using timer 1

Started by Anonymous in TMS320c54x22 years ago

I have made a delay function where I use Timer 1. It seems to work fine until the first timer underflow. I can see that the Timer1...

I have made a delay function where I use Timer 1. It seems to work fine until the first timer underflow. I can see that the Timer1 flag is set in the interrupt flag register, but the flag is not reset when the interrupt is taken. The other interrupts I use in my program resets their


C5402 DSK Interrupt Problem Fixed

Started by Anonymous in TMS320c54x20 years ago 1 reply

Got my interrupts going. I can now read data from the AD50 every time a receiver interrupt occurs. As Dave Helsley suggested, the...

Got my interrupts going. I can now read data from the AD50 every time a receiver interrupt occurs. As Dave Helsley suggested, the problem I had was that the DRR register was being overrun because I was not reading it quick enough. If DRR has not been since the last RBR to DRR copy, a


Drive led blinking by hardware interrupt

Started by rfur...@hotmail.it in TMS320c54x15 years ago 1 reply

Hello all. Excuse me for my bad English. I have a problem: how I can drive a userled (led on C54x board) blinking by hardware interrupt? Which...

Hello all. Excuse me for my bad English. I have a problem: how I can drive a userled (led on C54x board) blinking by hardware interrupt? Which steps I must do in the *cdb file to control the led by HWI? Thanks, Roby


DMA problem in mutiframe mode--no syncronisation

Started by sura...@yahoo.co.in in TMS320c54x16 years ago

hello experts, i am using the two DMAs channels in mutiframe mode along with IMOD(interrupt mode) bit enabled so that i get interrupt...

hello experts, i am using the two DMAs channels in mutiframe mode along with IMOD(interrupt mode) bit enabled so that i get interrupt for every frame been transferred or received .i also used isr routine function for both of the DMAs seperately.i am just trying to transfer samples from DMA0 TO DMA1 buffer(16samples each).But ,desperately i do not seem to find any sychronis


Not receiving IACK signal when asserting INT0

Started by Anonymous in TMS320c54x20 years ago

Hi, According to TI documentation, after the INT0 maskable interrupt line is asserted the following should occur: 1.) The...

Hi, According to TI documentation, after the INT0 maskable interrupt line is asserted the following should occur: 1.) The corresponding IFR bit is set 2.) If INTM=0 and corresponding IMR bit = 1 then the CPU acknowledges the interrupt by asserting the IACK


Servicing INT0 in assembly

Started by Anonymous in TMS320c54x20 years ago 2 replies

I'm asserting the INT0 line to the DSP, but am not having any luck getting my interrupt service routine to execute. How do I set up ...

I'm asserting the INT0 line to the DSP, but am not having any luck getting my interrupt service routine to execute. How do I set up vectors.asm to point to the interrupt routine in my code? Please note that our code is written in assembly. Thanks David Weatherwax W


C5402 DSK INTERRUPT PROBLEM

Started by Anonymous in TMS320c54x20 years ago 1 reply

I have a problem with interrupts on the C5402 DSK. I use the IDLE 1 instruction to wait until a BRINT1 interrupt occurs from the...

I have a problem with interrupts on the C5402 DSK. I use the IDLE 1 instruction to wait until a BRINT1 interrupt occurs from the AD50 codec, indicated by IFR=400h. When this occurs, the program does not jump to vector table and hence to the ISR, instead it loops around and waits for


DMA and MCBSP syncronization

Started by jason_c_wachholz in TMS320c54x17 years ago 1 reply

I'm having troubles getting the DMA and the BSP to syncronize with interrupts. In general I cannot get the DMA to fire an interrupt...

I'm having troubles getting the DMA and the BSP to syncronize with interrupts. In general I cannot get the DMA to fire an interrupt after a block transfer is complete. The interrupts are enabled in the IMR. I can enter my interrupt with the MCBSP running alone. I can also run my DMA in no sync mode. I can conduct one block transfer based on t


c5402 linker (I think...) problem

Started by matt...@yahoo.com in TMS320c54x12 years ago

Hi all, I'm a student and I've to develop a FIR filter with Interrupt using c5402 DSK. I use ccs 2.1. For first I start from a perfectly...

Hi all, I'm a student and I've to develop a FIR filter with Interrupt using c5402 DSK. I use ccs 2.1. For first I start from a perfectly working Hello World(I think you say WOW!!! :D ). My Idea is to create an interrupt-ed Hello World and then start the implementation of the filter. The problem is that when I create and add a .cdb file with the configuration of Timer and HWI Service Routine M...


software interrupt 18

Started by seshu babu in TMS320c54x18 years ago

Hi all   I am working on a c5409 based board. How to invoke periodically sint18(s/w interrupt 18) without...

Hi all   I am working on a c5409 based board. How to invoke periodically sint18(s/w interrupt 18) without directly calling/using RESET or INTR or TRAP in the code.   Thanks Seshu  


MCBSP External Frame Sync

Started by jason_c_wachholz in TMS320c54x17 years ago

I'm trying to set up the bsp for an 8-bit, n-word frame transfer syncronized with the frame sync signal. At the end of the n-word frame I...

I'm trying to set up the bsp for an 8-bit, n-word frame transfer syncronized with the frame sync signal. At the end of the n-word frame I want the interrupt to fire. Ive set up an external pin to toggle inside the interrupt. It continues to fire but randomly and not every frame. Below is my register setup. MCBSP_Config bspConfig = { MCBSP_SPCR1_RMK (


A little bit confusion in Interrupt response to the MCBSP

Started by liusheng12 in TMS320c54x18 years ago

Hi, For DSK5416, If in the MCBSP configuration, the word length is setup as 32bits/word and frame length setup as 2...

Hi, For DSK5416, If in the MCBSP configuration, the word length is setup as 32bits/word and frame length setup as 2 words/frame, sigle phase, The interrupt response is setup to response to each XRDY signal. So for each frame, how many interrupts will be evoked? I


interrupts of uart

Started by Roberto Espinosa in TMS320c54x18 years ago

Hello, I am using the uart in the 5402. I would like to have a program (in C code if possible) that triggers an interrupt when it...

Hello, I am using the uart in the 5402. I would like to have a program (in C code if possible) that triggers an interrupt when it has received a data. Could you help? I have connected 2 with 3, 3 with 2 and 5 with 5. Does I need to use any more connections? I have used th


PMST Register (5416)

Started by Yuri_Feigin in TMS320c54x19 years ago

Dear All ! It is written in technical reference that the default of the IPTR Interrupt vector pointer is FF80h. When I...

Dear All ! It is written in technical reference that the default of the IPTR Interrupt vector pointer is FF80h. When I performing reset - I recieve 7F80 instead. Why is that ? Thanks in advance !