Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Design problem!!! Interrupt choking

Status
Not open for further replies.

sarita_sagittaire

Newbie level 1
Newbie level 1
Joined
Nov 18, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
EGYPTE
Activity points
1,288
Design problem!!!

I GET A FASTER Sensitive INPUT DATA IN AN INTERRUPT WHICH PRVENT ME TO PROCESS DATA IN THE MAIN PROGRAM( putchar + getchar).
one way is to disable interrput then process the data in the main after you finish activate it again but any way you lose data;

are there any other solutions to this problem
thanks;
 

Re: Design problem!!!

Can you not write the program so that the interrupt does nothing but store the received byte into a circular buffer and then return from interrupt?
The main program then does all the processing of the data.
 

Re: Design problem!!!

Hi

You need to use a small routine (few line) for the interrupt and a ring buffer to receive and extract data for processing

This method might solve some of the problem you mentioned

All the best

Bobi

The microcontroller specialist
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top