Programming Interrupts on the Serial Port

Started by josalfe2002 in Freescale DSPs17 years ago

Hi everyone. Let me explaing what I'm trying to do. I developing an application on Visual Basic that will send an "start" signal...

Hi everyone. Let me explaing what I'm trying to do. I developing an application on Visual Basic that will send an "start" signal to my DSP board, the board will execute some code and return the results to VB. I want to do it through the serial port. But I want t


56f807 + SDK + ucos

Started by max_mont in Freescale DSPs16 years ago

Hi, I'm developing an application on the 56f807 with SDK and ucos II. The application is running very well. But when it runs...

Hi, I'm developing an application on the 56f807 with SDK and ucos II. The application is running very well. But when it runs during a long time, all the interrupts are disabled, including the OS timer (D0), excluding the PWM reload interrupt. This problem appears,


RE: MORE: '826 - when interrupts are active - Softw are is loosing it....

Started by Corey, Rick in Freescale DSPs16 years ago 1 reply

Hi Boaz What version of CodeWarrior are you using? I think it was version 5.0.2 or 5.0.3 that had problems with pragma...

Hi Boaz What version of CodeWarrior are you using? I think it was version 5.0.2 or 5.0.3 that had problems with pragma interrupt, at least if you checked "deferred inlining" under Language Settings under Target settings. The absence of an RTI at the end of an ISR wou


DSP56F827: IRQB Problem: active when shouldn't

Started by bmbmz123 in Freescale DSPs15 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


Using C-declared Variables in Assembly Code

Started by emespina in Freescale DSPs12 years ago 1 reply

Hi, I'm currently working on a project on the 56F8013 DSP. I have implemented all my codes in C to make code sharing and maintenance...

Hi, I'm currently working on a project on the 56F8013 DSP. I have implemented all my codes in C to make code sharing and maintenance easier. However, I would like to use Fast Interrupts and only Assemble codes are allowed within the ISR. My problem now is how to access the variables that I have declared in C within the ISR. I have started to go thru the documentations to see ...


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: ADC Interrupts, SDK

Started by titt...@fzi.de in Freescale DSPs14 years ago

typedef struct { adc_eAnalogChannel AnalogChannel; adc_tSampleMask openSampleMask; Frac16 OffsetRegister; Frac16...

typedef struct { adc_eAnalogChannel AnalogChannel; adc_tSampleMask openSampleMask; Frac16 OffsetRegister; Frac16 LowLimitRegister; Frac16 HighLimitRegister; adc_eZeroCrossing ZeroCrossing; } adc_sState; ..... adc_sState adc_state; adc_state.ZeroCrossing = ADC_ZC_DISABLE; adc_state.OffsetRegister = 0;


Protecting Critical Section Code on a Pipeline Digital Signal Controller

Started by ahchewt in Freescale DSPs15 years ago

The following is an FAQ about to appear on the Frescale website: Ref # 24969 KBase DSP Level 1 Pending (1 of 2) Author...

The following is an FAQ about to appear on the Frescale website: Ref # 24969 KBase DSP Level 1 Pending (1 of 2) Author Winters John (r54531) Abstract How can critical section code best be protected from interrupts? The effect of the pipeline must be


DSP56F807 - Mutual exclusion using IPL 0 masking

Started by Aaron Needles in Freescale DSPs17 years ago

Hi, I need a mutual exclusion mechanism that allows access to two global variables as an atomic unit. To prevent code within an...

Hi, I need a mutual exclusion mechanism that allows access to two global variables as an atomic unit. To prevent code within an ISR from accessing one of the variables during this short period, I would like to mask IPL 0 interrupts while I access the pair and then unmask IPL 0


Doubt regarding context saving for SCI callback routine.

Started by Nitin Madhukar Yewale in Freescale DSPs17 years ago 1 reply

Hi, I am using 56F826/7 processors for my project and SDK for development. I have initialized callback function for...

Hi, I am using 56F826/7 processors for my project and SDK for development. I have initialized callback function for SCI_CALLBACK_RX command using ioctl function call with 1 byte as SCI read length. Also I am using IRQA and IRQB interrupts with saveall pragma option. Pragma opti


Measuring PW using Quad Timer Captures

Started by dflieb20 in Freescale DSPs17 years ago 2 replies

Hello- I am using the 56807 with the Motorola SDK. I am tryng to measure the pulse-width of a ~50Hz squarewave using the...

Hello- I am using the 56807 with the Motorola SDK. I am tryng to measure the pulse-width of a ~50Hz squarewave using the capture registers on two timers (one to save the rise time, one to save the fall time). The rise and fall interrupts fire correctly, but the values returned


GPIO interrupts configuration...

Started by Nitin Madhukar Yewale in Freescale DSPs17 years ago

Hi, I am using 56F827 in my project. One of the push button is connected to one GPIO pin. I want to execute two different...

Hi, I am using 56F827 in my project. One of the push button is connected to one GPIO pin. I want to execute two different operations when push button is pressed. Operation to execute will be decided on the duration till which button is pressed like....if button is pressed for 2


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. ...


I2C Communication Interrupt Priority

Started by tomc...@yahoo.com in Freescale DSPs6 years ago

Hello: I am writing some simple pass-thru-with gain code for the 56371. How should one setup the interrupt priority so that my external...

Hello: I am writing some simple pass-thru-with gain code for the 56371. How should one setup the interrupt priority so that my external micro (connected to the 56371 I2C port) can from time to time change the gain registers in the 56371 without upsetting the interrupts on the I2S signal ports? Any direction or sample code would be greatly appreciated. Thank you in advance for your help...


AW: Multiple Interrupts in GPIO and Flash Memory Data

Started by Bende Georg in Freescale DSPs16 years ago

Variable access: You can assign a variable to a specific memory address like this: UInt16 GPIOE_DR:0xff1; This assigns the...

Variable access: You can assign a variable to a specific memory address like this: UInt16 GPIOE_DR:0xff1; This assigns the variable GPIOE_DR to the memory address 0xff1. I don't clearly understand the second question. Variables are normally in the Data Memory. Data that isn't c


Question regarding interrupts in DSP56F805

Started by Chandrasekar Ramkumar in Freescale DSPs14 years ago 2 replies

Hi Rick, I read thru the AN2283 document, which explains the interrupt structure in 805. In my program i have used the Transmit buffer 0 to...

Hi Rick, I read thru the AN2283 document, which explains the interrupt structure in 805. In my program i have used the Transmit buffer 0 to store the message. I initially stored the message in Transmit buffer 0 and clear the TXE0 flag by writing 1 to it. I also set TXEIE0 to give a transmit interrupt. But after this the MSCAN does not set the TXE0 flag to transmit the messag


RE: DSP56F807 - Mutual exclusion using IPL 0 maskin g

Started by Johnson, Jerry in Freescale DSPs17 years ago

My Assembly language code for turning interrupts off is typically like the following snippet:

My Assembly language code for turning interrupts off is typically like the following snippet: