Lpc8 Ecu - Reference Manual: Baldur Gíslason January 18, 2021
Lpc8 Ecu - Reference Manual: Baldur Gíslason January 18, 2021
-
REFERENCE MANUAL
Baldur Gíslason
Contents
1 Introduction 3
2 Wiring 4
2.1 Pin-outs and description . . . . . . . . . . . . . . . 4
2.1.1 Pin numbering . . . . . . . . . . . . . . . . 4
2.1.2 Connector A pin-out . . . . . . . . . . . . . 6
2.1.3 Connector B pin-out . . . . . . . . . . . . . 7
2.1.4 Connector C pin-out . . . . . . . . . . . . . 9
2.1.5 Connector D pin-out . . . . . . . . . . . . . 10
2.1.6 Connector E pin-out . . . . . . . . . . . . . 10
2.2 Wiring diagrams . . . . . . . . . . . . . . . . . . . 12
2.3 Wiring guidelines . . . . . . . . . . . . . . . . . . . 14
1
Contents Contents
2.3.1 Grounding . . . . . . . . . . . . . . . . . . . 14
2.3.2 Engine speed sensors . . . . . . . . . . . . . 14
2.3.3 Ignition outputs . . . . . . . . . . . . . . . . 14
2.3.4 Idle control . . . . . . . . . . . . . . . . . . 15
2.3.5 Electronic throttle control . . . . . . . . . . 15
2.3.6 Lambda sensor . . . . . . . . . . . . . . . . 15
2.3.7 Programmable outputs . . . . . . . . . . . . 16
3 Software conguration 17
3.1 Crank/cam trigger conguration . . . . . . . . . . . 17
3.1.1 Basic trigger . . . . . . . . . . . . . . . . . . 18
3.1.2 Versatile multi tooth decoder . . . . . . . . 19
3.1.3 Dual edge trigger . . . . . . . . . . . . . . . 22
3.1.4 Duty cycle coded trigger . . . . . . . . . . . 22
3.1.5 Equal spacing missing tooth . . . . . . . . . 23
3.2 Internal data logging . . . . . . . . . . . . . . . . . 23
3.3 Performing rmware upgrades . . . . . . . . . . . . 24
3.4 OBD2 communications . . . . . . . . . . . . . . . . 25
3.4.1 Wiring . . . . . . . . . . . . . . . . . . . . . 26
3.4.2 Custom OBD2 PIDs . . . . . . . . . . . . . 26
3.4.3 Transmitting data back . . . . . . . . . . . . 27
A Real time data elds 29
B Error codes 30
2
1 Introduction
3
2 Wiring
(e) Connector E
4
2. Wiring 2.1. Pin-outs and description
5
2. Wiring 2.1. Pin-outs and description
7
2. Wiring 2.1. Pin-outs and description
8
2. Wiring 2.1. Pin-outs and description
10
2. Wiring 2.1. Pin-outs and description
11
2. Wiring 2.2. Wiring diagrams
12
2. Wiring 2.2. Wiring diagrams
13
2. Wiring 2.3. Wiring guidelines
14
2. Wiring 2.3. Wiring guidelines
The LPC8 includes a controller for one wide band lambda sensor.
Calibration is provided to run Bosch LSU 4.9 sensors but if you
are able to create your own calibration data, other LSU sensors
as well as certain NTK sensors may be used.
15
2. Wiring 2.3. Wiring guidelines
The ECU has eight programmable outputs and while all low
speed functions are applicable to every output, some PWM functions
have dedicated outputs. This means that if those functions are
used, they can only be assigned to the specied output. Outputs
1, 3 and 4 provide high accuracy PWM capability, with events
timed to the nearest microsecond and a maximum PWM frequency
of 2000Hz. Outputs 5 through 8 provide lower accuracy PWM
capability with microsecond timing but possible timing error of
individual pulses up to 100 microseconds. Maximum frequency
on those outputs is 200Hz and although average error is on the
order of zero, due to the nature of these software driven outputs
occasional pulses may be out by as much as 100 microseconds.
The exception is output 5 when in PWM idle anti phase mode,
where it is driven at full 1 microsecond precision.
Function Output
Tachometer output 1
PWM idle control 3
PWM idle anti-phase 5
Figure 2.5: Functions with dedicated outputs
16
3 Software conguration
17
3. Software conguration 3.1. Crank/cam trigger conguration
This mode has only three congurable options. The trigger angle
oset whose useful range would be from zero up to the angle
between ring events. (90 degrees on a 4 stroke V8 f.ex). The
crank trigger active edge and the pulses skipped when starting
options are also used. Cam sync, trigger teeth and other options
not used. Primary trigger lter period does apply.
18
3. Software conguration 3.1. Crank/cam trigger conguration
19
3. Software conguration 3.1. Crank/cam trigger conguration
rst dened tooth must have its dened angle greater than
the other teeth.
Extra tooth In this mode, the decoder compares the spacing
of adjacent events and if the most recent interval is shorter
than the previous interval by a congurable threshold (typically
no more than 0.7, preferrably less) then that tooth is ignored
and the next event following it is deemed tooth one and
decoding can start. There is a very good reason why the
extra tooth is ignored in the code. For one, having extra
crank angle resolution at one part of the cycle is of little
benet, but if the exact angle of the extra tooth is not
known then it would be very detrimental to engine control
to include it in the decoder output. Therefore, in this mode,
the extra tooth must not exist in the tooth denitions, the
rst tooth is the tooth following the extra tooth.
Two adjacent long gaps is used for 36-2-2-2 and similar congurations
where the sync is found by detecting two adjacent gaps
that are wider. (One tooth, two missing, one tooth, two
missing again, for example.) In this strategy the sync threshold
ratio is multiplied with the last tooth before the two big
gaps, the previous two intervals must be bigger than the
result and the interval before the referenced interval must
also be smaller than the result to register sync.
Double check missing tooth takes the last interval (before
the current tooth), multiplies by the threshold and both
the current interval and the interval before the previous
one must be shorter than the result. This is the recommended
mode to use for most 36-1 and 60-2 and similar triggers.
Note that in this mode the rst tooth in the teeth table is
the second tooth after the gap in the trigger wheel.
If a cam position sensor is present, there are a number of dierent
strategies available to decode that. The behaviour of the cam
sync diers if a crank sync strategy is congured or not. When
a crank sync strategy is congured, the cam sync will not apply
unless crank sync has been found, and when that happens the
20
3. Software conguration 3.1. Crank/cam trigger conguration
21
3. Software conguration 3.1. Crank/cam trigger conguration
A mode for logic type sensors only (hall eect or optical). This
mode is operationally identical to the versatile multi tooth trigger
except that alternating teeth are expected to occur on alternating
edges, with the rst tooth occurring on the congured active
edge for the crank trigger. Examples that use this include the
Mitsubishi 4g63 and Mazda Miata, where it is used with cam
sync.
A mode for logic type sensors only (hall eect or optical). This
mode is operationally identical to the versatile multi tooth trigger
except that the crank sync mode selector is not used. Instead
it is hard coded to use a duty cycle pattern to sync. Normal
trigger operation only happens on either a rising edge or a falling
edge and the period since the last opposite edge divided by the
period since the last active edge is the duty cycle. In the pattern,
a value of 1 matches a duty cycle greater than 50% and a value
of zero matches a duty cycle less than 50%. The pattern can
22
3. Software conguration 3.2. Internal data logging
23
3. Software conguration 3.3. Performing rmware upgrades
24
3. Software conguration 3.4. OBD2 communications
25
3. Software conguration 3.4. OBD2 communications
3.4.1 Wiring
Figure 3.1: OBD2 female connector as seen from the end the
scan tool plugs in to.
The OBD2 connector has four essential connections. Pin 6 (CAN-H)
. Pin 14 (CAN-L) . Pins 4 and 5 connect to ground (any chassis
ground will do) and pin 16 connects to +12V. The standard
species that the +12V should be taken through a fuse directly
from the battery but most OBD2 devices will also perform correctly
if the 12V source is switched. For correct operation it may be
necessary to have a 120 ohm termination resistor connected
across the CAN wires if there is none connected to the CAN bus
already.
26
3. Software conguration 3.4. OBD2 communications
27
3. Software conguration 3.4. OBD2 communications
28
A Real time data elds
The descriptions of all the real time data elds have been moved
into the conguration le as of rmware version 1.15. They can
be read in the dialog for conguring the real time display or
exported to a text document from Calibrator.
29
B Error codes
The error codes are stored on four bit masks, error0, error1,
error2 and error3. They can be read using the Calibrator application
(Communication -> View controller errors in on-line mode,
Tools -> Decode error variables in log view mode). It is
also possible to read the errors using an OBD2 scan tool if OBD2
connector is wired and OBD2 communications are enabled in the
conguration. OBD2 DTC codes take the form of P3XZZ where
X is the error variable, 0 for error0 and so on and ZZ is the bit
oset in that variable, starting with 00. Note that these codes
do not correspond with any auto manufacturer's codes.
As of rmware 2.0 it is also possible to congure the check engine
lamp to ash when error codes are present. The lamp will alternate
between slow and fast ash rate, with the number of slow pulses
preceding the number of fast pulses. For example, four slow
ashes succeeded by a single fast ash signies low battery voltage.
In the following error code tables, the second column shows the
number of ashes associated with each error code.
30
B. Error codes
31
B. Error codes
32
B. Error codes
33