Hi,

My experiences are similar. 

I fought long with a misbehavior of a piece of harmless USART1 routines till I 
found out (the hard and miserable way =) that the receive register bit became 
initially set with no reason. So all the external spi traffic went out of sync 
because of this. I still don't know for sure why this happened but I suspect it 
is related somehow to the other flags and their activity in the IE1 register, 
as this did not happen in my other pieces of code that employed (the same) 
USART1 routine.

Hence, for reliable operation I have since then had the (USART1 receive) 
register read during the initialization of the said peripheral. I recommend 
this to others too.

Oh, and the module was/is F149.

Regards,
Matti




======================================================================
Matti Ruusunen               IST International Security Technology Oy
Hardware Designer            Melkonkatu 16A FIN-00210 Helsinki Finland
tel. +358-50-4341321         fax. +358-9-68723681
matti.ruusu...@istsec.fi     http://www.istsec.fi
======================================================================

Reply via email to