emPC-CX+
(
System Reference
Manual)
System Control
3 - 31
Rev. 1.2
©
Janz Tec AG
0b1000000000000000
Sensor error
FANCON_RDWR
Pointer 33 (16bit, wo/ro)
15
7
0
FR
FW
FS
FADDR
FDATA
RESET:
FR
Write this bit as 1 to trigger register read operation from the fan controller
with the programmed address. This bit clears to zero when the read
operation has been completed. Unless an error is indicated, the data can
then be read from the FDATA field
FW
Write this bit as 1 to trigger register write operation to the fan controller
with the programmed address and data. This bit clears to zero when the
write operation has been completed.
FS
Status for the last operation: 0 = ok, 1 = fail. Valid when either FR or FW
have cleared to zero after an operation.
FADDR
The fan controller register to be read or written.
FDATA
For write operations this register field supplies the data to be written. For
read operations the data can be read from this register.
3.1.3
Command Codes
This section lists the command codes that are accepted by the PMON firmware. Undocumented
command codes should not be issued.
CMD
code
Command
Description
0
IDLE
When read, this command code indicates idle state.
1
SAVE_EEP
Save al
l parameters that are indicated as “EEPROM saved”
into the PMON MCUs internal EEPROM. This makes
changes permanent.
Before writing, some simple sanity checks are made. E.g.
you cannot save a voltage threshold that is higher than the
supported operating value.
No checks are made on the timing parameters.
2
RESET_ERR
Reset the PMON MCU reset information in the STATUS
register.
9
PACADCREAD
Read ADC data from the ispPAC chip. The channel is
selected by the DATA register.
Channel
Voltage Rail
Factor
0
Vin
7.8
1
+12V
3
2
N/A
-
3
+5V
1
4
+3.3V
1
5
+1.2V
1
6
+12V (exp.)
3
7
N/A
-
8
+1.5V
1
9
N/A
-
The returned value is a correct ADC value if bit 0 of the
DATA register is 1.
To convert to a voltage value use the following formula:
Voltage
/mV = ((
DATA
>>4)&0xfff) * 2 *
factor
Where factor is taken from the table above.
Summary of Contents for emPC-CX+
Page 8: ......