Hi Odddlaw,
SCTIE is the interrupt enable for SCTE which is the same as TDRE in a GB as described in my previous post. And TCIE is the interrupt enable for TC as in previous post.
You seem to be unsure of what you are doing with both interrupts in general and with using the SCI. I would suggest you get the SCI going in polled mode first to remove one layer of complexity.
Your answer to Q2 is found by using the info above combined with my previous post.
You don't need to use interrupts with the ADC because the conversion will be much quicker than to send the result over the SCI.
I would suggest this as a concept to start with.
cause a conversion
when complete (polled)
write result to SCI (just low byte for now to make it easy)
cause a conversion
when complete
* write to SCI
cause conversion
wait for SCTE
loop back to *
when you have that working you can put the stuff in the loop in a SCI interrupt routine so you can go and do something else.
This concept relies on the fact that sending one byte will take longer than 1 conversion so you don't need to wait for the conversion to end.
Let us know how you go!
BR Peg
Message Edited by peg on 04-26-200603:59 PM