Olivier,
Do you HAVE to use I2C?
Is there any reason why you couldn't use USART to communicate between the 16F877A and 16F87?
16F87 p.99 section 11 AUSART
16F877A p.113 section 10 USART
The AUSART can be configured in the following• Synchronous – Slave (half-duplex)
modes:
• Asynchronous (full-duplex)
• Synchronous – Master (half-duplex)
The acronym is slightly different, but when you read the descriptions, they are the identical.
The USART can be configured in the following modes:• Synchronous – Slave (half-duplex)
• Asynchronous (full-duplex)
• Synchronous – Master (half-duplex)
Bookmarks