FIC a440 Service Manual
Software Functional Overview
FIC A440 Series Service Manual
3-29
3.7
3.7
3.7
3.7 PIC16C62A
PIC16C62A
PIC16C62A
PIC16C62A –––– uP
uP
uP
uP
The micro controller PIC16C62A acts as a supplement for power management control. It
supports many functions via SMBus interface.
supports many functions via SMBus interface.
3.7.1 System Communication with PIC16C62A
The system communicates with PIC16C62A via SMBus interface. The SMBus host (M38867)
should be firstly initialized before starting the transaction. The following is the procedure for
system communication with PIC16C62A:
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.
should be firstly initialized before starting the transaction. The following is the procedure for
system communication with PIC16C62A:
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.
− Send command to PIC16C62A -- Slave address is 04h.
− Read data from PIC16C62A -- 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)
6. Write the desired parameters to SmbHstDat0(High byte) and SmbHstDat1(Low byte)
registers if the system wants to send command to PIC16C62A.
7. Wait for SMBus interrupt to occur, 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 PIC16C62A.
3.7.2 PIC16C62 Command List
The micro controller PIC16C62 (called micro-P or uP) acts as a supplement for power
management control. It supports the following functions via SMBus command:
management control. It supports the following functions via SMBus command:
Command/Data
Access
Unit
Function Description
0x00
Reserved
0x01
read
word
Read PIC software version
0x02
read
byte
Read LCD contrast level (DAC)
0x03
read
byte
Read LCD brightness level (DAC)
0x04 read
word
byte0
byte1
byte0
byte1
Read primary battery DQ_NAC
NACH
NACL
NACH
NACL
0x05 read
word
byte0
byte1
byte0
byte1
Read 1st battery DQ_LMD&NACH
DQ_LMD
DQ_NACH
DQ_LMD
DQ_NACH
0x06
read
byte
Read primary battery DQ_FLGS1
0x07
read
byte
Read primary battery DQ_TMPGG
0x08
read
byte
Read primary battery DQ_FLGS2