The FCALIB Manual (ver 0.4)

Summary

FCALIB can be used to load a SLNTHR with the FRED Software or the calibration and test programm. It can also be used to load the ADC calibatrion data in the EE data memory.

This Manual is for Version 0.4 and 0.5 of FCALB. There current version of FCALIB is 1.0.

Distribution

The FCALIB can be found here:

Hardware and Software required

You need an JDM84 programmer:

And a PC (286+) running MS-DOS (3.3+) that has a working serial Port (COM1 oder 2). The output drivers on this port must have some power to drive the JDM84. We have found that some notebooks do not work.

Installation

Unzip the archive to a directory of your choice. Now start a real MS-DOS (no DOS-BOX in Windows or so). Change to the directory you used to unzipd the archive. Start FCALIB by entering FCALIB. First select SETUP with the mouse or the cursor keys:

Screencapture

Than press ENTER to open the setup window

Screencapture

select the port you have used to connect the JDM84 with the spacebar and close the window with ENTER. To check your Installation you can try to read some config data from a throttle (Menu: Config>Read from Throttle) and write them back (Menu: Config>Write to Throttle). See below for more info on that.

Loading a Throttle with the Testprogram

Start FCALIB (as described in the Installation section) and use the mouse or cursor keys to select Program>Load Text Program:

Screencapture

the hex file TEST.HEX is written into the throttle:

PICPROG.EXE TEST.HEX 2 -p -c
Reading file 'TEST.HEX'
835 program locations and 64 (EE) data locations read
PIC PROGRAMMER at COM2
Device ID is 11111111111111b (Dev=unknown, Rev=31)
Programming Program Memory
Verify Program Memory TRUE
Programming configuration word
Verify TRUE
press any key to return

Check that the output shows "Verify ... TRUE" two times. If not, something with the programmer or hardware ist wrong. Leave the screen with any key.

LNMON

Now use LNMON to read the ADC_RAW_min, ADC_RAW_max and the CD-Time from the throttle...

Calibrartion of the Throttle

(as described in the Installation section) and use the mouse or cursor keys to select Config>Edit:

Screencapture

press ENTER, the Edit Dialog ist shown

Screencapture

use the TAB-key to set the cursor in the Id (HEX) field, and enter the desired Id. Now press F2 to enter the ADC_RAW values:

Screencapture

on pressing ENTER the calibartion values are calulated for you:

Screencapture

Leave the Dialog by poressing F10, and select

Screencapture

on pressing ENTER the calibarion values are written to the throttle:

PICPROG.EXE $$$$TEMP.HEX 2 -d
Reading file '$$$$TEMP.HEX'
0 program locations and 64 (EE) data locations read
--- Notice: No configuration word in hex-file ---
PIC PROGRAMMER at COM2
Device ID is 11111111111111b (Dev=unknown, Rev=31)
Programming EE Data Memory
Verify EE Data Memory TRUE
press any key to return

Check for a correct verify: Verify EE Data Memory TRUE and press any key.

Now you have written the calibartion data to the throttle. Next step is replacing the test programm with the real code

Writing the FRED software

Use the mouse or the cusor keys to select Program>Update Program in Throttle

Screencapture

on pressing ENTER the program ist written:

PICPROG.EXE 16F84.HEX 2 -p -c
Reading file '16F84.HEX'
931 program locations and 64 (EE) data locations read
PIC PROGRAMMER at COM2
Device ID is 11111111111111b (Dev=unknown, Rev=31)
Programming Program Memory
Verify Program Memory TRUE
Programming configuration word
Verify TRUE
press any key to return

Check if the Program and config word hase been written (VERIFY TRUE).

Thats it, now check if you can drive some train....


© 2003 by Martin Pischky (martin@pischky.de)
http://pischky.rose-intech.de/dcc/fred/fcalib/manual04/index.en.htmlhttp://www.pischky.de/dcc/fred/fcalib/manual04/index.en.html | Datenschutzerklärung | version 20041023 ]