CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Interrupting SPI routines

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
DonWare



Joined: 18 Jan 2006
Posts: 43

View user's profile Send private message

Interrupting SPI routines
PostPosted: Fri Jul 27, 2007 3:14 pm     Reply with quote

Hi, I'm using SPI and the CCS SPI routines to talk to a Microchip EEPROM.
Processor in this case is a 16F877 but may be an 18F452 later.

My code to r/w the eeprom is running fine now with nothing else going on.

My project uses tx and rx serial interrupts and also timer0 to generate an operating system timebase.

Is it OK to interrupt the SPI read and write routines this way ?

Thanks, Don
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jul 27, 2007 3:54 pm     Reply with quote

1. What's the part number of the eeprom ?

2. Are you using hardware or software SPI ?

3. If you're using hardware SPI, what clock divisor are you using in
your setup_spi() statement ?

4. Are you using a CCS driver ? Which one ?

5. What is the oscillator frequency of your PIC ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group