3-28 Software Functional Overview
1.
Enable SMBus interface by writing 01h to SmbHstCfg register.
2.
Get SMBus I/O port base address by reading from SmbBA register.
3.
Clear SMBus status by writing 1Eh to SmbHstSts register.
4.
Write the PIC16C62 slave address to SmbHstAdd register.
n
Send command to PIC16C62 -- Slave address is 04h.
n
Read data from PIC16C62 -- Slave address is 05h.
5.
Write the desired command to SmbHstCmd register.
6.
Write the desired parameters to SmbHstDat0(High byte) and
SmbHstDat1(Low byte) registers if the system wants to send commands to
PIC16C62.
7.
Wait for SMBus interrupt occurred by monitoring SmbHstSts register INTR
bit.
8.
Get the desired data by reading from SmbHstDat0(High byte) and
SmbHstDat1(Low byte) registers if the system wants to read data from
PIC16C62.