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

How do I make 9356SPI work

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







How do I make 9356SPI work
PostPosted: Mon Oct 16, 2006 4:20 am     Reply with quote

Hello

I have a problem on using the 93LC56A eeprom with my 16f877A. I have used it with software and it works fine. Now that I need to use it with hardware, it doesn't work.

At first, why is the READ command 0xc on software include file and 0x18 on SPI-hardware include file?

I changed it to 0xc!!! ( it didn't work then, i doesn't work now Evil or Very Mad )

As I have seen the problem might be this
The value stored on address 0 is 92 but i get value 46. It seems that there is a 1bit shift to right (div by 2). I just don't know why this happens.

Please help! pleasepleaseplease
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 16, 2006 12:20 pm     Reply with quote

Quote:
I have used it with software and it works fine.

Does this mean Proteus ? That's a simulator.

Quote:

Why is the READ command 0xc on software include file and 0x18 on
SPI-hardware include file?

What are these two files ? I assume one of them is the 9356.c driver
file. What is the filename of the other file ? Is it a CCS file, or a
Proteus file ? I can't give you any help on Proteus.
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