PDA

View Full Version : I2CWRITE using SSP ?



BigWumpus
- 25th April 2005, 20:11
Hello,

I have a projekt, were I have to divide the current Controller into two parts:
The first part is the main Controller with the most parts on it,
the second part is a little display and some buttons several meters away.
I use a I2C-interface on both controllers.

I change the existing LCDOUT-commands into I2CWRITE-commands...
First I noticed, the I2CWRITE-command doesn't support the extensions like SEROUT2 (DEC, BIN...). :-(
And I think, the hole I2C-part is solved in software. Is there any way in PBP to use the hardware in the SSP ? (on the display-controller I programmed the slave-Mode interrupt-driven by using the hardware...)

mister_e
- 26th April 2005, 06:15
Hello,
Is there any way in PBP to use the hardware in the SSP ?

Acces the internal register or use the assembly example in your datasheet. Unfortunately, PBP don't have this built-in function as HSEROUT or HPWM. Could be an interesting future PBP statement since many PIC have this module now.