Sorry to Interrupt!

Started by July 2, 2004
I know, I know... corny subject, but relevant. I need a way to
handle interrupts with CCS C Compiler and the PIC 18F458.
Basically, I'll be sending output from the PIC constantly through
the serial line, but every so often, I might be getting something
back, I need a way to handle that. Any suggestions?

Shamoon



I assume you mean that you get something back on the serial line? If
so, the PIE register, bit 5, will enable an interrupt to occur
whenever data arrives on the receive line. PIR can be checked in your
interrupt routine to verify that it was triggered by data arriving.
Section 18.2.2 (page 191 of the datasheet) gives details on how to do
this.

--Joe Jansen

On Fri, 02 Jul 2004 16:29:29 -0000, <> wrote:
> I know, I know... corny subject, but relevant. I need a way to
> handle interrupts with CCS C Compiler and the PIC 18F458.
> Basically, I'll be sending output from the PIC constantly through
> the serial line, but every so often, I might be getting something
> back, I need a way to handle that. Any suggestions?
>
> Shamoon > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
> Yahoo! Groups Links




Look in the CCS help for #INT_RDA

Duane On Fri, 2 Jul 2004 13:13:27 -0400, Joe Jansen <> wrote:
> I assume you mean that you get something back on the serial line? If
> so, the PIE register, bit 5, will enable an interrupt to occur
> whenever data arrives on the receive line. PIR can be checked in your
> interrupt routine to verify that it was triggered by data arriving.
> Section 18.2.2 (page 191 of the datasheet) gives details on how to do
> this.
>
> --Joe Jansen >
>
> On Fri, 02 Jul 2004 16:29:29 -0000, <> wrote:
> > I know, I know... corny subject, but relevant. I need a way to
> > handle interrupts with CCS C Compiler and the PIC 18F458.
> > Basically, I'll be sending output from the PIC constantly through
> > the serial line, but every so often, I might be getting something
> > back, I need a way to handle that. Any suggestions?
> >
> > Shamoon
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
> > Yahoo! Groups Links
> >
> >
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
> Yahoo! Groups Links