We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I donÂ't anderstand how define a ports of ADuC831 for I2C communications. The names MOSI and MISO are not anderstandable for Keil programma who I use. Please help me with this problems.
MOSI and MISO are standard signal names, but they are not for I2C, but signal names used for SPI - a completely different serial protocol that has duplex communication.
Excuse me but in the datasheet of ADuC831 are this explication : pin 27 - SDATA/MOSI, pin 26 - SCLOCK. I anderstand that for I2C communication need to use this pins, but this pins in the datasheet are not defined as a ports ( for ex. P2.0 or P3.4 ) and I not anderstand how define this pins as ports. Excuse but I work for first time with this micro.
I don't work with your processor, so I can't give explicit information.
But it is very common that processor pins have multiple names, because you may configure the pin for one of several functions.
In this case MOSI/MISO are names when the pins are used with SPI. SDATA/SCLOCK are probably the names when the pins are configured for use with I2C.
I think that you will find that the datasheet do specify pin names for these signals. But the processor may possibly have multiple pins that can be used, so the description of the I2C function may just use signal names, while the chapter describing how to set modes for all pins may mention these signal names - possibly on multiple pins - and tell how to configure these pins for I2C use instead of being generic GPIO pins.
I not anderstand how define this pins as ports.
You don't, because they aren't port pins --- they're dedicated serial I/O pins.