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

About I2C communication

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



Joined: 26 Sep 2005
Posts: 10

View user's profile Send private message

About I2C communication
PostPosted: Tue Nov 22, 2005 8:44 am     Reply with quote

i have used PIC 16F877 and the code is working fine the only problem i am facing is that during simulation when i give the command for an I2C write the PIC gets hanged. How do i write and read to I2C.
i have tried with the sample programs given in the HELP of the CCS compiler.
Can anyone help me on this please.
Reply .Bhaven.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 22, 2005 12:33 pm     Reply with quote

Quote:

the only problem i am facing is that during simulation when i give
the command for an I2C write the PIC gets hanged.

If you go to MPLAB Help for the Simulator, and search under Limitations,
you will see this:

Quote:

Depending on device, the following are not simulated:
- User ID memory.
- Programmable Switch-Mode Controller (PSMC).
- Brown-out detection (BOD) and low voltage detection (LVD).
- Power saving modes.
- Serial I/O (i.e., SSP including I2C and SPI).
As a result, the SSPSTAT register has been made
readable and writable.
- USB and CAN.
- Parallel Slave Port (PSP).
- D/A converter (DAC) and Op Amp (OPA).
- Quadrature Encoder Interface (QEI) of the Motion Feedback module.
- Output Compare (OCx) for PIC24F, dsPIC devices.

For more information, go to the Search engine for the Microchip forums:
http://forum.microchip.com/search.asp
Do a search like this:
Search Term: i2c
Search in Forum: - - MPLAB Simulator
Time Filter: (within) All Topics

Then you can read threads like this, where people on the Microchip
forum provide suggestions and ideas on this problem:
http://forum.microchip.com/tm.asp?m=102604&mpage=1&key=i2c&anchor#102604
http://forum.microchip.com/tm.asp?m=81786&mpage=1&key=i2c&anchor#81800
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