> Hello everybody. > > I've got a question about interrupt handling and asynchronous serial > communication. > > In my application I'm counting how often an input signal on a comparator > raises a certain level. After about 1 second the counted pulses are > transferred via the UART to the PC. The counting is realized by > interrupts trigerred by the comparators. > > But strange things happen: Mostly after the first byte is transferred > via the UART (and read on the PC screen), the circuit freezes. Actually > I expect 3 Bytes per second but after the transmission of the first byte > nothings happens any more. But not very often I can read 2 or 3 Bytes > before it gets stuck, but most of the time it freezes after one > transmitted byte. > > I belive there must be something wrong with the interrupt setting but > after having gone through the datasheet for several times I can't see > where my fault counld be. I've attached the .asm code so If anyone of > you has the time to have a look at it and can help me, I'd be very happy. Have you simmed it? It sounds like it's pretty simple to set up a sim, while it might take a couple minutes to get the result it should be pretty easy to figure out WHERE it is getting stuck. TTYL -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body