PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Nov 22, 2005 12:33 pm |
|
|
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 |
|