Problem with Interrupt

"Rajesh" <[email protected]> Fri, 07 Jul 2006 06:16:43 -0000
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <[email protected]>
Hi All,

I am working with MPC566. I am using PIT for generating interrupt at 
1 sec. Following is my code :

ISR_function()
{

ReadUART(a);   // reading data from serial port at each sec of 
               // interval       

} 

main()
{

WriteUART(b);  // writing a data to serial port;

ReadUART(c);   // reading data from serial port 

}

Now the problem I am facing is like this:

when "ReadUART(c)" is executing in main loop, then at that time 
interupt is generated and "READUART(a)" from ISR_function is executed.
Because of this,after some time, my code is getting hanged in this 
function "ReadUART(c)" of the main loop, but the interupt for 1 sec 
is still generated and ISR_function is executing.

Can anyone help me on this problem?

-regards
Rajesh










------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/dN_tlB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/