Using Sections in Code Warrior for DSP56807

Started by wjschint in Freescale DSPs16 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


A/d sdk driver for 56f807 question

Started by Roelof Oelofsen in Freescale DSPs18 years ago 1 reply

Hi group, I just started to explore the A/D SDK driver for the 56f807. My question is this: If I set the A/D up in loop...

Hi group, I just started to explore the A/D SDK driver for the 56f807. My question is this: If I set the A/D up in loop sequential mode, the conversion complete interrupt will be disabled. In the header file the auther states that I must use the ADC_STATE_READ ADC ioctl


563xx SCI port

Started by wygonski in Freescale DSPs16 years ago

I need to transmit a block of 24-bit words via interrupt-driven SCI of 563xx. User manual says that I can efficiently unpack and...

I need to transmit a block of 24-bit words via interrupt-driven SCI of 563xx. User manual says that I can efficiently unpack and transfer the 3-bytes comprising the word to the SCI Transmit Register (STX) by writing to STXL, STXM, and STXH. What I'd like to do in my ISR is to


RE: RE: #pragma interrupt / modulus (%) affects int errupts?

Started by Wim de Haan in Freescale DSPs16 years ago

Hi William, I think, there is a slip of your keyboard. It must be: In the DSP56800 family: JSR pushes PC & SR on the...

Hi William, I think, there is a slip of your keyboard. It must be: In the DSP56800 family: JSR pushes PC & SR on the stack. RTS pops SR & PC from the stack, restores PC but discards SR from stack (so SR remains unchanged). RTI pops SR & PC from t


Rif: RE: Program xFlash & interrupt problem

Started by Anonymous in Freescale DSPs17 years ago

Very interest discussion. Fortunately for this application I can disable all interrupts during flash erase&write (disabled for...

Very interest discussion. Fortunately for this application I can disable all interrupts during flash erase&write (disabled for 40msec!!!!! during page erase) . But I want see your code because the problem is hot. Could send me your applicaton file another time in ZIP format ? Th


RE: simple project demonstrating how to set-up inte rrupts without the use of SDK

Started by Jarrid Gross in Freescale DSPs17 years ago

I agree with Art here. Daniel sent me (last year) a proto-type project using the simple intrinsic methods for dealing with an...

I agree with Art here. Daniel sent me (last year) a proto-type project using the simple intrinsic methods for dealing with an interrupt. This is what I used for some time, without any significant problem. I had setup direct (NON SDK) vectors and handlers for 4 timers, async TX


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


successful transmission of MSCAN message frame

Started by yadu...@yahoo.co.in in Freescale DSPs13 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...


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


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

Started by Corey, Rick in Freescale DSPs15 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 DSPs15 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


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


Assembler Instruction

Started by josalfe2002 in Freescale DSPs17 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


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


56803 PWM duty cycle sweep speed

Started by Corey, Rick in Freescale DSPs15 years ago 4 replies

Hi We are presently trying to use the DSP56F803 PWM (channel 4) as a simple independent PWM output. We are sweeping the output...

Hi We are presently trying to use the DSP56F803 PWM (channel 4) as a simple independent PWM output. We are sweeping the output duty cycle from 0% to 100% and therefore, updating and reloading the PWM timer on every timeout interrupt of the PWM. When we then observ


Interrupts in 56301

Started by timxdunn in Freescale DSPs13 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. ...


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


56303evm irqa and irqd all dead

Started by rtur...@yahoo.de in Freescale DSPs12 years ago 5 replies

hello all, I have a weird problem. The irqa and irqd switches on my 56303evm have stopped functioning. Everything else is running fine....

hello all, I have a weird problem. The irqa and irqd switches on my 56303evm have stopped functioning. Everything else is running fine. (it's not about my code, they were both functioning fine before with the same program) All of this started when I tried to burn my program into flash perom to no success. I have simulated my programs everthing is running okey, but when the interrupt butto...


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


803 - using ADC in loop mode - accessing data

Started by Steve & Elena Yepez in Freescale DSPs16 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.