[color=black]Hola :-/:
Estoy intentando comunicar un 18F2520 con un ds1307 mediante comunicación serie. Tengo el puerto C ocupado con un LCD; Mi pregunta es la siguiente: [color=black][/color]¿Esto es correcto?: #use i2c(Master, SDA=PIN_A0, SCL=PIN_A1). ME LO ENCONTRE EN UN PROGRAMA ASI y CCS COMPILA aunque mi duda viene motivada porque en el datasheet del PIC dice esto:
"17.3 SPI Mode:
The SPI mode allows 8 bits of data to be synchronously
transmitted and received simultaneously. All four
modes of SPI are supported. To accomplish
communication, typically three pins are used:
• Serial Data Out (SDO) – RC5/SDO
• Serial Data In (SDI) – RC4/SDI/SDA
• Serial Clock (SCK) – RC3/SCK/SCL
Additionally, a fourth pin may be used when in a Slave
mode of operation:
• Slave Select (SS) – RA5/SS
Figure 17-1 shows the block diagram of the MSSP
module when operating in SPI mode."
Gracias piclisteros, toda aportación será útil.
Saludos :mrgreen:[/color]