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 CCS Technical Support

what activates the PSP interupt?

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



Joined: 23 Mar 2006
Posts: 9

View user's profile Send private message

what activates the PSP interupt?
PostPosted: Mon Mar 27, 2006 11:19 am     Reply with quote

I would like to know what activates the PSP interupt. Is is CS going low? Is is WR going low? does it have something to do with the data on the pins?

Zach
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Mar 27, 2006 11:57 am     Reply with quote

The easy answer would be: RTFM...

You didn't tell us which processor you are using, but as most PIC processors are using the same basic principles I had a look at the PIC18F458 datasheet. Figure 10-2 and 10-3 tell me the PSP interrupt is triggered by:
- the WR line going inactive at writing.
- The RD line going inactive at reading.

When you would have had a look at the datasheet yourself you would have had an answer even faster than the time it took me to write the answer down.
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Mon Mar 27, 2006 12:11 pm     Reply with quote

More specifically, the CS line going high will also trigger PSPIF, but it is unlikely the CS would deassert before ether the WR or RD signals.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 27, 2006 12:19 pm     Reply with quote

ckielstra wrote:
The easy answer would be: RTFM...

You didn't tell us which processor you are using, but as most PIC processors are using the same basic principles I had a look at the PIC18F458 datasheet. Figure 10-2 and 10-3 tell me the PSP interrupt is triggered by:
- the WR line going inactive at writing.
- The RD line going inactive at reading.

When you would have had a look at the datasheet yourself you would have had an answer even faster than the time it took me to write the answer down.


While the CS line is low.
zachavm



Joined: 23 Mar 2006
Posts: 9

View user's profile Send private message

PostPosted: Mon Mar 27, 2006 12:20 pm     Reply with quote

I did look at the data sheet, but this is my first semester using PICs and I am still learning. Thanks for the help.

Zach
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