GPIO Interrupts

Started by bobhopf in Freescale DSPs17 years ago

I am processing 4 pulse inputs on port B of a 56827, each about 200nsec and somewhat random occurance. I had been losing interrupts ...

I am processing 4 pulse inputs on port B of a 56827, each about 200nsec and somewhat random occurance. I had been losing interrupts (missing pulses) when he pulses occurred within the interrupt processing time. The cause appears to be reseting the IPR via IESR with a BFSET vs a MOVE


Linking constant to x flash

Started by ljube20022000 in Freescale DSPs18 years ago 1 reply

Hi, I am trying to link constant coefficients that i declared in my filtercnt.asm file to x.flash between locations 0x2000 and...

Hi, I am trying to link constant coefficients that i declared in my filtercnt.asm file to x.flash between locations 0x2000 and 0x200A. I am using this constants in interrupt service routine. All my other initilaized data from my main.c file is linked at address location 0x200F.


DSP56F827: IRQB Problem: active when shouldn't

Started by bmbmz123 in Freescale DSPs16 years ago

Hello, A strange behaviour from the IRQB - it calls the NORMAL-Interrupt even though it is disabled. At init stage, the IRQB...

Hello, A strange behaviour from the IRQB - it calls the NORMAL-Interrupt even though it is disabled. At init stage, the IRQB is disabled. At debug, I read IPR=0xFE05, which is ok. The init is done while archDisableInt() is in effect. When I enable interrupts


RE: [motoroladsp_unmoderated] Interrupt/context problem?

Started by Art Johnson in Freescale DSPs18 years ago

We have had problems with the MSCAN error interrupts (as I'm sure you've already read about), but I developed a work around that...

We have had problems with the MSCAN error interrupts (as I'm sure you've already read about), but I developed a work around that fixed the problem. It's described in my message "MSCAN problem" on October 3, 2002. Since fixing that problem, we have been having some program


Occasional code restart.

Started by Roberto Bonacina in Freescale DSPs15 years ago 2 replies

On DSP56F807, I found a condition on which occasional code restart happens. The code in execution when the code restarting occurs is the...

On DSP56F807, I found a condition on which occasional code restart happens. The code in execution when the code restarting occurs is the following (C code and relative disassembly): // CAN Rx interrupt disabled during queue counter manipulation. periphBitClear(CANRXFIE, &ArchIO.CAN.RxIntEnableReg); P:00003471: 80F411850001 bfclr #0x1,X:0x1


803 - using ADC in loop mode - accessing data

Started by Steve & Elena Yepez in Freescale DSPs17 years ago 1 reply

I'm using the 803 dsp and would like to configure the adc to sample data in loop sequential mode for the hightest through put. ...

I'm using the 803 dsp and would like to configure the adc to sample data in loop sequential mode for the hightest through put. However, the manual on the adc claims that you can not use the "endofscan interrupt" to fetch the data at the end of each cycle.


MSCAN and CanReadCallBack interrupt problem

Started by jamessconnors in Freescale DSPs16 years ago 2 replies

I am using the mscan drivers from SDK3.0 and the example program can.h which comes with that version of the SDK. In their CAN ...

I am using the mscan drivers from SDK3.0 and the example program can.h which comes with that version of the SDK. In their CAN example they setup a function "CanReadCallBack" to handle newly received CAN messages. It is setup in the appconfig.h file as #define CAN_RAW_CALLBA


Unsigned long substraction problem...

Started by Nitin Madhukar Yewale in Freescale DSPs17 years ago

Hi, I am doing simple subtraction of two long variables, out of which one variable I have declared as volatile unsigned long...

Hi, I am doing simple subtraction of two long variables, out of which one variable I have declared as volatile unsigned long TODCounter = 0; I am updating TODCounter variable in TOD Interrupt routine. I have different timeout duration for different operatio


RE: poking the Vector Table - Processor Expert and IDE 6.0.1

Started by Corey, Rick in Freescale DSPs16 years ago

Hi All I tried to set up a FlexCAN peripheral using Processor Expert under CW IDE 6.0.1 and seem not get any interrupt setup...

Hi All I tried to set up a FlexCAN peripheral using Processor Expert under CW IDE 6.0.1 and seem not get any interrupt setup code. Maybe I did something wrong or failed to do something right. I enabled a FlexCAN MB IRQ and gave it a name and a procedure in my code, but can't f


Using Sections in Code Warrior for DSP56807

Started by wjschint in Freescale DSPs17 years ago 1 reply

I want to link in an interrupt vector table (written in C). I assume I need to create a special section - starting at 0x4 or what...

I want to link in an interrupt vector table (written in C). I assume I need to create a special section - starting at 0x4 or what ever, and then link the table at this location. Specifically, how does one do this? I know how to create sections in the linker command file, and I


Using DMA on DSP56309

Started by Wygonski, John in Freescale DSPs16 years ago 4 replies

I'm having some trouble modifying a working app to use DMA. I have timer 2 on the DSP56309 set up in "Toggle" mode so that I can...

I'm having some trouble modifying a working app to use DMA. I have timer 2 on the DSP56309 set up in "Toggle" mode so that I can produce waveforms whose pulse width varies. The current version of the program works fine as I am using the timer compare interrupt to update the TCPR


RE: how to calculate the maximum rate for serial po rts of dsp56002/56303

Started by Corey, Rick in Freescale DSPs16 years ago

I think it depends a lot on how fast your interrupt service routine winds up being. If you have total control over bit times and...

I think it depends a lot on how fast your interrupt service routine winds up being. If you have total control over bit times and inter-character-gaps on the sending device, you could make it as fast or as slow as your DSP chip can handle. I doubt if the "line speed"


Reading Timer register on the fly

Started by christian_rosnoblet in Freescale DSPs16 years ago 2 replies

Hello all, I am using the timer A chanel 3 to generate a overlfow interrupt a a fixed period on my DSP56F807. For order...

Hello all, I am using the timer A chanel 3 to generate a overlfow interrupt a a fixed period on my DSP56F807. For order job, i want, in my main loop, to read the value of the counter on the fly. I reading directly the Counter (CNTR) register and when read a second


help regarding pragma in CodeWariror...

Started by Rajesh in Freescale DSPs14 years ago

Hi evryone... My power PC MPC566 supports #pragma interrupt [SRR DAR DSISR fprs vrs enable nowarn]. on | off | reset i am getting a...

Hi evryone... My power PC MPC566 supports #pragma interrupt [SRR DAR DSISR fprs vrs enable nowarn]. on | off | reset i am getting a warning that my function size is exceeding 256 bytes, and to supress this warning i have to pass 'nowarn' option to the pragma. Can anyone suggest me how to pass this option? Any kind of help is welcome. -regards Rajesh


Assembler Instruction

Started by josalfe2002 in Freescale DSPs18 years ago 3 replies

Hi Everyone. I'm running a code on my DSP56824EVM, and I found the "Interrupt Service Routines" or IRS, specifically: ...

Hi Everyone. I'm running a code on my DSP56824EVM, and I found the "Interrupt Service Routines" or IRS, specifically: pmemwrite((WORD)0xE9C8,(WORD)0x0010); // Write JSR instruction pmemwrite((WORD)Irqa_ISR,(WORD)0x0011); // IRQA's ISR address pmemw


simple project demonstrating how to set-up interrupts without the use of SDK

Started by Daniel Malik in Freescale DSPs18 years ago 2 replies

Hi, Art has suggested that he has "tried (and given up) using "#pragma interrupt" ISRs directly". If you would like to...

Hi, Art has suggested that he has "tried (and given up) using "#pragma interrupt" ISRs directly". If you would like to take a look at a very simple project which shows how set-up interrupts directly without the use of SDK, please go to


successful transmission of MSCAN message frame

Started by yadu...@yahoo.co.in in Freescale DSPs14 years ago 1 reply

hi everybody, i am working MSCAN protocol (v02.15) for the MC9S12D64BCPV(16MHz) MCU....can anybody suggest me that how can we...

hi everybody, i am working MSCAN protocol (v02.15) for the MC9S12D64BCPV(16MHz) MCU....can anybody suggest me that how can we know the Succesfull Transmission of the particular CAN message. after the succesful transmission of the CAN message,we can enable the CANTXIE interrupt..but how can we know the successful transmission of the message... plz provi...


Capture signal period w/ 5680x timer

Started by Steve Glow in Freescale DSPs17 years ago 1 reply

I'm trying to use a quad timer block to capture the period of an encoder input for velocity calculation. The problem I'm having is...

I'm trying to use a quad timer block to capture the period of an encoder input for velocity calculation. The problem I'm having is that the input period is quite small and frequent, so I really don't want to service an interrupt as part of the capture. One problem I'm having i


Metrowerks Debugger SR I1 Mask Presented State

Started by jepochert in Freescale DSPs17 years ago 2 replies

Hello all, We have recently discovered that the Metrowerks Debugger wants to lie about the Status Register (SR) Interrupt 1...

Hello all, We have recently discovered that the Metrowerks Debugger wants to lie about the Status Register (SR) Interrupt 1 Mask (I1) state as presented within its Register Status Display window. Let me first qualify this a little. We are using the DSP56805 (rev F


Interrupts in 56301

Started by timxdunn in Freescale DSPs14 years ago

Hello, I have inherited a project that uses the 56301. I am trying to figure out some variable boot behaviour and I have a question about...

Hello, I have inherited a project that uses the 56301. I am trying to figure out some variable boot behaviour and I have a question about the host command interrupt vector. The user manual for the chip states that "the personal hardware reset sets HV to the default host command vector, which is programmable" I cannot find out from the spec how the default host command vector is set. ...