Re: Help needed with SCI interrupts (HC12)
- From: ryufrank@xxxxxxxxxxx
- Date: Sat, 30 Jun 2007 01:07:08 -0700
Hi.
Sorry for the late reply.
I took some time to play around with my code and discover various
flaws thanks to your help.
My biggest mistake was that my ISR function was in the wrong place in
vectors.c. Using the file MC9S12NE64.h and the board`s manual i
figured out the correct position.
Now everything in the program appears to function as it should...
apart from the SCI1 interrupt that skips several readings.
For example I'm inputting to SCI1 "1234567890" and it reads "1470".
The SCI1 status register 1 returns OverRun bit as 1. (I'm checking the
value of SCI1DRL right after the ISR occurs).
So this means that for some reason it misses those characters.
Tomorrow I will sit down and struggle to find what can be wrong with
it.
If you have any more suggestions they are more than welcome :)
Thank you for all your help so far.
.
- Follow-Ups:
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- References:
- Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Re: Help needed with SCI interrupts (HC12)
- From: ryufrank
- Re: Help needed with SCI interrupts (HC12)
- From: cs_posting
- Help needed with SCI interrupts (HC12)
- Prev by Date: Re: MIPS vs ARM architectures
- Next by Date: Re: OT: a wooden computer (almost)
- Previous by thread: Re: Help needed with SCI interrupts (HC12)
- Next by thread: Re: Help needed with SCI interrupts (HC12)
- Index(es):