Mailing List flyrotary@lancaironline.net Message #65871
From: Finn Lassen finn.lassen@verizon.net <flyrotary@lancaironline.net>
Subject: EC3 software for Renesis RX-8/LS2 coils fixed and uploaded
Date: Wed, 17 Jun 2020 18:10:52 -0400
To: <flyrotary@lancaironline.net>
Here it is:
https://drive.google.com/drive/folders/1mVzPOxUwcGUlPizxnRF40nUyKBzfT4DC?usp=sharing
It's EC3closedloop.zip.

You may want to grab it now in case Google decides to close my account :)

You can program the 18F452 chips directly using the EC3CL8.HEX file, or open EC3ClosedLoop.mcp in MPLAB IDE, compile and program. This is for RX-8 (EC3 engine type A8), LS2 coils (D585), large secondary injectors, default is wide band O2 sensor.

Turns out Tracy has never programmed or delivered an EC3 for Renesis with LS2 coils.
Software was missing code to load LS2 coils dwell time.

I added Steve's code for configuration bits so don't have to remember what to set them to when programming.
I set all protection bits to zero to avoid any chip reprogramming troubles, but you could change to:
; CONFIG6L
  CONFIG  WRT0 = ON             ; Write Protection bit (Block 0 (000200-001FFFh) write protected)
Finn

ENG            EQU    0xA8      ;PUT ENGINE TYPE CODE HERE AND CHECK **** ALL **** FLAGS BELOW!!!!!!!!!!!!!!!!! 

N109TC        EQU 0x00    ;N109TC USES A DIFFERENT assignment of coil drivers  CLEAR for ALL except N109TC !!!!! and KERMIT unit   20B controllers

DIAG        EQU 0x00        ;DIAG ==1 ALLOWS DIAGNOSTIC USE OF 02H&L

;  *****************     CHECK ALL FLAGS BEFORE PROGRAM MING CHIPS  !!!!!   **************************************************

;   ***************    DWELL TIME FLAGS   *SET ONLY ONE*      ***********************************************

RX8COIL        EQU    0x00        ;1= 2.6MS DWELL TIME  (RX-8 COIL)
RX7COIL        EQU 0x00        ;1= 3.5MS DWELL TIME USED   (also used for A7 2007 option)
LS1COIL        EQU    0x00        ;1= 4.3 MS DWELL USED
HONDACOIL    EQU 0x00        ;1= 1.7 MS DWELL            (A REALLY TINY COIL)
LS2COIL        EQU    0x01        ;1= 4.0 MS DWELL       

 
TURBO        EQU    0x00        ;0 = NA, 1 = TURBO VERSION     (BIT 0 SET IN ECINFO IF TRUE)
BFACTOR        EQU    D'20'        ;BOOST RETARD FOR IGNITION TIMING  lower value = more boost retard (25 IS USED FOR MOST ROTARY 20 on 03-05-09,
LGSEC        EQU    0x01        ;0 = PRI & SEC INJECTORS SAME SIZE  1 = LARGER SECONDARY INJECTORS (RENESIS 4 port)
WIDEBAND    EQU 0x01        ;0 = NARROWBAND O2 SENSOR IN USE, 1 = WIDEBAND SENSOR IN USE.
TEMPSENSOR    EQU    0x00        ;0 = THERMISTOR, 1 = LM34
MAPSENSOR    EQU    0x00        ;0 = MPX4250 SENSOR, 1 = MPX4115 (EARLIER VERSION OF EC2 ONLY)
BUSENSOR    EQU    0x00        ;0 = NO BACKUP SENSOR, 1 = BACKUP INSTALLED (0xA8,0xA9,AB,AD,B1,B2,B4 0-200 ENGINE ONLY)
BREW        EQU    0x00        ;0 = SET TO 1 FOR 3RD GEN 13BREW ENGINES :  COMPENSATES FOR 5 DEG EARLIER 3RD GEN TIMING OF CAS
ONEINJ        EQU    0x00        ;0 = NORMAL 2 INJECTOR PER ROTOR  1 = 1 INJ PER ROTOR  (NOT RECOMMENDED)
CONT        EQU    0x00        ;0 = NORMAL 0xA9 ENGINE, 1 = CONTINENTAL/Lyc VARIENT (also sets bu at 18 geg before primary)
EMT            EQU    0x00        ;0 = A9 W/ TRIG @ 6 DEG ATDC   1 = TDC @ TOOTH 11 (ELECTROMOTIVE TIMING SPEC) also sets BU at 180 deg
A72007        EQU    0x00        ;0 = PRE 2005 SUBE EJ25   1 = 2005 OR LATER EJ25 W/ RX-8 TYPE CAS         
WTF         EQU 0x00        ;0 = normal version  1 = BRAT  - AKA - WhatTheFuck project version with transmission control functions       

TBINJ        EQU    0x00        ;1= THROTTLE BODY INJECTION FLAG
LS2_60_2    EQU    0x00        ;1= LS2 ENGINE EQUIPPED W/60-2 TOOTH TRIGGER WHEEL  (USE ENG CODE 0xAB)
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster