merging docs into .h file
maybe not perfect but has it's pros
This commit is contained in:
parent
7129b23947
commit
8828550edf
|
@ -17,6 +17,9 @@
|
||||||
#define INIT_REG2_RD 0x7E // Read Initialization Register 2
|
#define INIT_REG2_RD 0x7E // Read Initialization Register 2
|
||||||
|
|
||||||
/**********************************************************************************
|
/**********************************************************************************
|
||||||
|
* Courtesy "Turbo SOB"
|
||||||
|
* http://www.turbo-mopar.com/forums/showthread.php?77041-Wideband-O2-Controller-Project-with-EGT-A2D-DAQ-Diagnostic-Etc&p=1110559#post1110559
|
||||||
|
|
||||||
INIT_REG1 - CJ125 Initialization Register 1
|
INIT_REG1 - CJ125 Initialization Register 1
|
||||||
00x000x0
|
00x000x0
|
||||||
||||||||---- VL - Pump Current Sense Amplifier - 0 = x8, 1 = x17
|
||||||||---- VL - Pump Current Sense Amplifier - 0 = x8, 1 = x17
|
||||||
|
@ -42,6 +45,40 @@
|
||||||
|----------- ENABLE/HOLD - Must be set to 1 to enable
|
|----------- ENABLE/HOLD - Must be set to 1 to enable
|
||||||
***********************************************************************************/
|
***********************************************************************************/
|
||||||
|
|
||||||
|
/**********************************************************************************
|
||||||
|
INIT_REG2 - CJ125 Initialization Register 1
|
||||||
|
xxx00000
|
||||||
|
||||||||---- PR0 - Reference Pump Current (10 uA)
|
||||||
|
|||||||----- PR1 - Reference Pump Current (20 uA)
|
||||||
|
||||||------ PR2 - Reference Pump Current (40 uA)
|
||||||
|
|||||------- PR3 - Reference Pump Current (80 uA)
|
||||||
|
||||-------- ENSCUN - Enables diagnostics for pin UN of the CJ125
|
||||||
|
|||--------- Unused
|
||||||
|
||---------- Unused
|
||||||
|
|----------- Unused
|
||||||
|
***********************************************************************************/
|
||||||
|
|
||||||
|
/**********************************************************************************
|
||||||
|
DIAG_REG - CJ125 Diagnostic Register Definition (Read Only)
|
||||||
|
00000000
|
||||||
|
||||||||---- Sensor VM Diagnostic Bit 0
|
||||||
|
|||||||----- Sensor VM Diagnostic Bit 1
|
||||||
|
||||||------ Sensor UN Diagnostic Bit 0
|
||||||
|
|||||------- Sensor UN Diagnostic Bit 1
|
||||||
|
||||-------- Sensor IA/IP Diagnostic Bit 0
|
||||||
|
|||--------- Sensor IA/IP Diagnostic Bit 1
|
||||||
|
00 = Short circuit to ground
|
||||||
|
01 = Low Battery
|
||||||
|
10 = Short circuit to Vbatt
|
||||||
|
11 = No Failure
|
||||||
|
||---------- Ext. Heater DIAHD Diagnostic Bit
|
||||||
|
|----------- Ext. Heater DIAHG Diagnostic Bit
|
||||||
|
00 = Short circuit to ground
|
||||||
|
01 = Open Load
|
||||||
|
10 = Short circuit to Vbatt
|
||||||
|
11 = No Failure
|
||||||
|
***********************************************************************************/
|
||||||
|
|
||||||
#define CJ125_INIT1_NORMAL_8 0x88 // 0b10001000 (Normal mode, Amplification 8)
|
#define CJ125_INIT1_NORMAL_8 0x88 // 0b10001000 (Normal mode, Amplification 8)
|
||||||
#define CJ125_INIT1_NORMAL_17 0x89 // 0b10001001 (Normal mode, Amplification 17)
|
#define CJ125_INIT1_NORMAL_17 0x89 // 0b10001001 (Normal mode, Amplification 17)
|
||||||
#define CJ125_INIT1_CALBRT 0x9D // 0b10011101 (Calibration mode, LA=1, RA=1)
|
#define CJ125_INIT1_CALBRT 0x9D // 0b10011101 (Calibration mode, LA=1, RA=1)
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
* Courtesy "Turbo SOB"
|
|
||||||
* http://www.turbo-mopar.com/forums/showthread.php?77041-Wideband-O2-Controller-Project-with-EGT-A2D-DAQ-Diagnostic-Etc&p=1110559#post1110559
|
|
||||||
|
|
||||||
/**********************************************************************************
|
|
||||||
INIT_REG1 - CJ125 Initialization Register 1
|
|
||||||
00x000x0
|
|
||||||
||||||||---- VL - Pump Current Sense Amplifier - 0 = x8, 1 = x17
|
|
||||||
If VL is set to "0" the amplification of Ip is 8.
|
|
||||||
If VL is "1" the amplification is 17. The higher
|
|
||||||
amplification is needed for a better resolution
|
|
||||||
at Lambda > 1, amplification 8 for Lambda < 1.
|
|
||||||
Note: It seems to make no difference, always set to 1.
|
|
||||||
|||||||----- Unused
|
|
||||||
||||||------ LA - Pump Current Sense Amplifier - 0 = measurement, 1 = calibration
|
|
||||||
If LA is "0" the measurement mode for Ip is active.
|
|
||||||
The current pump current is displayed on Ua. If LA is
|
|
||||||
set to "1" the calibration mode is active. The shown
|
|
||||||
voltage on Ua must been subtracted from the later measurement.
|
|
||||||
|||||------- Undocumented Bit - Note: CJ125 only seems to work when set to 1.
|
|
||||||
||||-------- RA - Measurement Current for Ri - 0 = measurement, 1 = calibration
|
|
||||||
If RA is "0" the measurement mode for Ri is active and
|
|
||||||
the current resistance of the probe is "displayed" on Ur.
|
|
||||||
If RA is "1" the calibration mode is active. You get the
|
|
||||||
optimal voltage for the inner resistance of the probe on Ur.
|
|
||||||
|||--------- Unused
|
|
||||||
||---------- PA - Pump Current Control - Set to 0 to be active
|
|
||||||
|----------- ENABLE/HOLD - Must be set to 1 to enable
|
|
||||||
***********************************************************************************/
|
|
||||||
|
|
||||||
/**********************************************************************************
|
|
||||||
INIT_REG2 - CJ125 Initialization Register 1
|
|
||||||
xxx00000
|
|
||||||
||||||||---- PR0 - Reference Pump Current (10 uA)
|
|
||||||
|||||||----- PR1 - Reference Pump Current (20 uA)
|
|
||||||
||||||------ PR2 - Reference Pump Current (40 uA)
|
|
||||||
|||||------- PR3 - Reference Pump Current (80 uA)
|
|
||||||
||||-------- ENSCUN - Enables diagnostics for pin UN of the CJ125
|
|
||||||
|||--------- Unused
|
|
||||||
||---------- Unused
|
|
||||||
|----------- Unused
|
|
||||||
***********************************************************************************/
|
|
||||||
|
|
||||||
/**********************************************************************************
|
|
||||||
DIAG_REG - CJ125 Diagnostic Register Definition (Read Only)
|
|
||||||
00000000
|
|
||||||
||||||||---- Sensor VM Diagnostic Bit 0
|
|
||||||
|||||||----- Sensor VM Diagnostic Bit 1
|
|
||||||
||||||------ Sensor UN Diagnostic Bit 0
|
|
||||||
|||||------- Sensor UN Diagnostic Bit 1
|
|
||||||
||||-------- Sensor IA/IP Diagnostic Bit 0
|
|
||||||
|||--------- Sensor IA/IP Diagnostic Bit 1
|
|
||||||
00 = Short circuit to ground
|
|
||||||
01 = Low Battery
|
|
||||||
10 = Short circuit to Vbatt
|
|
||||||
11 = No Failure
|
|
||||||
||---------- Ext. Heater DIAHD Diagnostic Bit
|
|
||||||
|----------- Ext. Heater DIAHG Diagnostic Bit
|
|
||||||
00 = Short circuit to ground
|
|
||||||
01 = Open Load
|
|
||||||
10 = Short circuit to Vbatt
|
|
||||||
11 = No Failure
|
|
||||||
***********************************************************************************/
|
|
||||||
|
|
Loading…
Reference in New Issue