Lpc4 Ecu - Reference Manual: Baldur Gíslason January 18, 2021
Lpc4 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 Expansion board . . . . . . . . . . . . . . . 8
2.2 Wiring diagram . . . . . . . . . . . . . . . . . . . . 11
2.3 Wiring guidelines . . . . . . . . . . . . . . . . . . . 12
2.3.1 Grounding . . . . . . . . . . . . . . . . . . . 12
2.3.2 Engine speed sensors . . . . . . . . . . . . . 12
1
Contents Contents
2
1 Introduction
3
2 Wiring
4
2. Wiring 2.1. Pin-outs and description
5
2. Wiring 2.1. Pin-outs and description
8
2. Wiring 2.1. Pin-outs and description
10
2. Wiring 2.2. Wiring diagram
11
2. Wiring 2.3. Wiring guidelines
12
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. Since rmware version 1.8, 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
13
3 Software conguration
14
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.
15
3. Software conguration 3.1. Crank/cam trigger conguration
16
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.
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
crank angle will be set to the correct phase according to the
angle oset of crank tooth #1. If no crank sync strategy is selected,
then the cam sync will apply immediately.
The cam sync strategies are the following:
Cam state on crank sync This mode is useful for hall eect
or similar logic output cam position sensors with a single
wide tooth (half moon type). In this mode, the cam signal
is not logged and no interrupts are generated on edge events
but instead the state of the cam signal is polled when a
crank sync event happens (missing tooth, extra tooth).
If the cam input is in a logic low state (less than 1 volt
input) then the congured angle oset is applied and full
sync mode is entered. If the cam input is in a logic high
state, then the congured angle oset is applied, shifted by
360 degrees and full sync mode is entered.
17
3. Software conguration 3.1. Crank/cam trigger conguration
Count cam impulses This mode is useful for all types of sensors
and applies to cam wheels with as little as a single tooth
but also applies to more complex arrangements. In this
mode, every event on the cam input increments a counter
but every event on the crank input reads the counter and
resets it to zero. If the counter value matches the congured
cam sync count, then cam sync is applied at that crank
event and full sync mode is entered.
An example where this mode is used is the Subaru 6/7
pattern, where a series of two or three cam impulses can
be used to determine the crank angle and cam phase.
Count crank impulses This mode applies to certain crank/cam
patterns where there are two or more cam teeth unevenly
spaced or a greater number of evenly spaced cam teeth
with some oddly spaced crank teeth. A counter is incremented
on every crank event but read and reset on every cam
event. If the counter matches the congured cam sync
count then the following crank event will apply the cam
sync. An example where this mode applies is Cosworth YB
where the cam sync has two teeth spaced at 180 degrees of
crank rotation.
Primary trigger is cam This mode allows the use of a missing
tooth or extra tooth trigger wheel rotating at cam speed
so the reference tooth angle is correct and no extra cam
position information is required for full sync operation.
Crank state on cam impulse This mode only applies to dual-edge
trigger decoder mode, used to decode DSM/Miata/Neon
trigger. Has a congurable option for what the crank state
must be for the cam event to register. The crank event
following the cam event is deemed tooth number one.
Cam count pattern Principally the same as count cam impulses
mode, except instead of comparing only the current value
of the counter every crank event, a congurable number
of previous values are also considered. This is useful if the
18
3. Software conguration 3.2. Internal data logging
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
have up to 8 positions. The typical use of this trigger mode is
the GM LS1 engine, where it allows reliable operation with or
without cam sync.
19
3. Software conguration 3.3. Performing rmware upgrades
20
3. Software conguration 3.3. Performing rmware upgrades
21
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.
22
3. Software conguration 3.4. OBD2 communications
23
3. Software conguration 3.4. OBD2 communications
24
3. Software conguration 3.4. OBD2 communications
25
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.
26
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.
27
B. Error codes
28
B. Error codes
29
B. Error codes
30
C Old LPCX expansion board
C.1 Wiring
31
C. Old LPCX expansion board C.1. Wiring
32
C. Old LPCX expansion board C.1. Wiring
34