FIC a440 服务手册
Hardware Functional Overview
FIC A440 Series Service Manual 4-30
4.8 PIC16C62A - uP
The micro controller PIC16C62 acts as a supplement for power management control. It supports a lot of
functions via SMBus interface.
functions via SMBus interface.
4.8.1
The System Communication with PIC16C62
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
PIC16C62:
initialized before starting the transaction. The following is the procedure for system communication with
PIC16C62:
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 PIC16C62A slave address to SmbHstAdd 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 PIC16C62A slave address to SmbHstAdd register.
i.) Send command to PIC16C62A -- Slave address is 04h.
ii.) Read data from PIC16C62A -- Slave address is 05h.
ii.) 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) registers if the system
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 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
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.
4.8.2
PIC16C62A Command List
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
0x09
read
byte
Read primary battery DQ_PPD
0x0A
read
byte
Read primary battery DQ_PPU
0x0B
read
byte
Read primary battery DQ_VSB 2014
0x0C
read
byte
Read primary battery DQ_VTS 2014
0x0D read
word
byte0
byte1
byte0
byte1
Read secondary battery DQ_NAC
NACH
NACL
NACH
NACL