problems with interrupt driven uart, 16C63
Dan Michaels email (remove spam text)
Michael Shiloh wrote:
>I've become very frustrated with my inability to program a simple
>buffered interrupt driven uart transmitter. I hope one of you
>can figure out where my mistake is:
I noticed no one responded to your query - maybe because your
code is too long for anyone to want to look at, or maybe because
serial comm and C compilers have been beaten to a tiny pulp on
piclist numerous times.
I have never used a C compiler with PICs, so cannot help you there.
However, what I "would" recommend is stripping your code down to
the bare minimum, get that going, and then built it back up, one
step at a time.
First, try straight serial comm w/o interrupts. Then add in the
interrupts. Then add in the buffering stuff. Much easier to debug
the component parts individually, than to debug the entire thing
as a whole.
- Dan Michaels
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the