A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
|
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 |
|
|
|
I have some functions and structures written in HI-Tech C that I would like link to my main .asm program in MPLAB. MPLAB claims that my .obj and .lib from Hi-Tech isn't COFF format. I ran the Hi-Tech cromwell utility on the Hi-Tech generated .obj in verbose mode and it reports back that the input file is not of a known type, including Hi-Tech! Anyone know how to get MPLAB to link the Hi-Tech objs into an MPLAB project? Thanks Richard __________________________________ |