
I
2
C
I
2
C is a more versatile system level serial data transfer method. It only needs
two bus connected signals; clock (SCL) and data (SDA) lines (Figure 9.6).
These allow a master controller to be connected to up to 1023 other devices.
These can include other MCUs, memory devices, analogue converters and so
on. The example used here is access to an external EEPROM memory, which
would be used to expand the non-volatile data storage in an MCU system, and
Interfacing PIC Microcontrollers
210
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SPIM.ASM MPB 13-9-05
;...............................................................
;
; SPI Master ...