background image

 

14

 

RUNNING INTERACTIVE C 

 

Interactive C (IC) is a simple to use C compiler for the 68HC11. The freeware version of IC can be 
downloaded from MIT’s FTP site at 

ftp://cherupakha.media.mit.edu/pub/projects/6270/interactive-c

 along with a manual that 

can be printed out for reference.  There is also more information on the “Handy Board” web page on 
how to use IC. 
 
To use the Finger Board you need to connect the serial port of your PC to the serial connector P1 of 
the Finger Board Communications board. You should be able to run version 2.86 or the newest 
commercial version of IC from Newton Labs, but you must load the “Rug Warrior” version of the 
pcode. 
  
The MODB setting (JP18) should be un-jumpered. This sets the 68HC11 CPU in “Special Test Mode” 
with a reset vector address location of $BFFE:BFFF. Interactive C will not run if JP18 is jumpered.  
 
When using version 2.86.  Make sure ic.exe is set. Example setup by executing “ic -config” is shown: 
 
C:\IC>ic -config 
       Interactive C for 6811.  Version 2.860 BETA (Nov 29 1994) 
 
IC written by Randy Sargent and Anne Wright.  Copyright 1994. 
    (uses board pcode by R. Sargent, F. Martin, and A. Wright) 
 
This program is freeware and unsupported.  It is provided as a service to 
hobbyists and educators.  Type 'about' for information about support 
and obtaining newer versions of IC. 
 
Backing up C:\IC\IC.EXE to C:\IC\IC.bak 
Done 
Default editor:  edit 
Directory where libraries reside:  /ic/libs/ 
Default library file (blank for none):  /ic/libs/lib_rw11.lis 
Default serial device name (in the form /dev/*):  com1 
Finished configuring 
 
Note: lib_rw11.lis should be edited if you need to add additional library routines. The nicest thing 
about 2.860 is all source code is made public and can be recompiled. 
 
To put Finger Board in download mode. You need to hit the reset switch or just re-power Finger Board 
while pressing the download push button S1 on the Communications board. Once you release the 
download push button S1, the LED D1 will turn off, indicating that the board is in download mode. This 
LED works the same as on the “Handy Board”. Note: If you are using a reset switch you must release 
the reset switch first then release the download push button S1. Initially, the LED may not be on, once 
initial communications is established it will function normally.   

 

Содержание 68HC11

Страница 1: ...le Board Computer Ver 11 24 03 Embedded Acquisition Systems 2517 Cobden Drive Sterling Heights MI 48310 http www embeddedtronics com email sales embeddedtronics com copyright 2003 All trademarks are those of their respective companies ...

Страница 2: ...der wick to remove excess solder A good source of information for beginners is found on the Handy Board web site An online construction manual with images is available on our web site to help in the construction of the Finger Board A copy of the Finger Board schematic silkscreen and parts placement guide can also be downloaded from our web site and printed out Caution Integrated circuits are stati...

Страница 3: ...acitor will normally be 104 denoting a 1uf value Note R1 and C13 are no longer needed Step 8 Install diodes D2 and D3 Observe proper orientation Place the cathode side of the diodes to line up with the silkscreened bar on the PCB D2 1N4007 or 1N5817 D3 1N4148 Note 1N5817 has a lower voltage drop while the 1N4007 can handle more current your choice You can omit diode D2 and use solder pad J4 to bri...

Страница 4: ...th Dallas DS1233 from JDR Microdevices We are still looking for a source for the DS1233m this is an equivalent part but has the same pin configuration as the mc34064 The DS1233 is a far superior reset chip we are very happy with the results and highly recommend it over the mc34064 It will also reduce your parts count If you are using the DS1233 you will need to put the part in backwards and move t...

Страница 5: ...te a DS1244Y if a real time clock is needed You can also use a Dallas DS1216D 28pin lithium battery socket but will need separate 256kbit 62256 100LP static memory chip Note If you are using a header for JP6 place a couple of jumper shunts on JP6 This is the A D reference input voltage Install a shunt across pins 1 and 2 to tie VRH to VCC Install a shunt across pins 3 and 4 to tie VRL to ground A ...

Страница 6: ...with attached Communications board you do not have to install JP15 There are already pcb traces connecting JP14 to JP15 Step 20 To connect the main CPU board to the Communications board you will need a short length of ribbon cable and two female IDC connectors 3x2 When making the cable make sure pin 1 line up together on both connectors The ribbon cable length should be no more than 1 foot between...

Страница 7: ...on the PCB Do not bridge solder pad J5 D4 D5 IN5817 Note Placing a 3 to 5 volt battery on header JP19 will retain the SRAM memory when the main supply voltage is disconnected We do recommend using the Dallas battery backed memory chip as it is very reliable However if you do use standard SRAM memory use a good quality on off switch for the power Power cycle switch bounce can corrupt the data in me...

Страница 8: ...0K ohm resistor 22 1 R3 1Meg ohm resistor 23 1 R4 47Kohm 10 pin inline resistor pack Part 10 1 473 24 1 R7 2 2K ohm resistor model 90 1555 LED 3ma or 1K ohm resistor HLMP 1790 LED 2ma rating 25 2 S1 S2 Momentary normally open push button switch Digikey Part SW263CT ND 26 1 U1 DS1233m Note DS1233 can be used but its pins are positioned differently from the DS1233m 27 1 U2 LM7805 or LM340T 5 volt re...

Страница 9: ...9 CONNECTING TO THE FINGER BOARD ...

Страница 10: ...ry SPI compatible devices that can be attached to this port For those who wish to connect two Finger Boards together using the SPI port you must not connect pin 2 VCC together between the Finger Boards Doing so will short out the voltage regulators You can use a straight through IDC ribbon cable but cut out pin 2 from one or both of the JP4 headers For other SPI devices pin 2 can be used to supply...

Страница 11: ...unctions Pin Function Pin Function 1 PA0 2 ground 3 PA1 4 ground 5 PA2 6 ground 7 PA3 8 ground 9 PA4 10 ground 11 PA5 12 ground 13 PA6 14 ground 15 PA7 16 ground JP9 is the expansion bus It is setup so you can easily enhance the Finger Board with additional circuits You can have up to 32 memory mapped digital inputs and 32 digital outputs Circuit diagrams are available at our Web page on how to ut...

Страница 12: ...mitter when running Interactive C Pin Function 1 Infrared transmitter 68HC11 output pin PA6 2 ground JP14 is the serial communications header on the CPU board that is used to connect to the Communications Board Pin Function Pin Function 1 PD0 2 MODA 3 PD1 4 reset 5 ground 6 VCC JP15 is the serial communications header on the Communications board that is used to connect to the main CPU board Pin Fu...

Страница 13: ...into memory open closed Special Test Default mode for Interactive C reset at 0xBFFE 0xBFFF JP19 is used to connect an external battery for SRAM battery backup Use a 3 5 volt battery This is not needed if you use a Dallas battery backup memory module Pin Function 1 BT1 3 5Volt battery 2 ground P1 is the Communications board DB9 RS232 connector It is a simple three wire asynchronous serial interface...

Страница 14: ...Sargent and Anne Wright Copyright 1994 uses board pcode by R Sargent F Martin and A Wright This program is freeware and unsupported It is provided as a service to hobbyists and educators Type about for information about support and obtaining newer versions of IC Backing up C IC IC EXE to C IC IC bak Done Default editor edit Directory where libraries reside ic libs Default library file blank for no...

Страница 15: ...is Special Test Mode and the reset vector is located at address BFFE BFFF By jumping JP18 the reset vector location can be set to address FFFE FFFF Read the M68HC11 Reference Manual by Motorola for a better description You can use DL EXE found in Interactive C to download compiled S19 records to the Finger Board There are other C compilers for the 68HC11 that can be used Small C ICC11 and GCC For ...

Страница 16: ...ong COM port on the PC Verify that your communications port is working by substituting a known good serial device or by doing a loopback diagnostic Also check your power source The input voltage should not fall below 7 volts DC For kits Check for 5VCC voltage on header JP16 Check and make sure all components are installed and properly orientated Check all resistor and capacitor values Check LED po...

Страница 17: ...17 Silkscreen Top View Pin 1 on all headers are indicated by the square pad Parts placement ...

Страница 18: ...MODB select JP18 External A D reference input JP6 Optional external battery backup capable JP19 Optional Low Dropout voltage regulator Optional remote reset through serial port Optional real time clock Power requirements 7 to 18volts DC Can easily run from a 9volts DC battery Current consumption 24 ma DC without communications board 10ma in WAIT mode or STOP mode 30ma with communications board For...

Страница 19: ...and are protected by worldwide copyright laws and treaty provisions They may not be copied reproduced modified published uploaded posted transmitted or distributed in any way without EAS s prior written permission Other rights may be granted to you by EAS in writing or incorporated elsewhere in the Materials TERMINATION OF THIS LICENSE EAS may terminate this license at any time if you are in breac...

Страница 20: ...rt 19 1 P1 Female DB9 pin connector short profile 20 Q1 BS170 or MOSFET N optional for remote serial reset 21 4 R2 R5 R6 R8 10K ohm resistor 22 1 R3 1Meg ohm resistor 23 1 R4 47Kohm 10 pin inline resistor pack Part 10 1 473 24 1 R7 2 2K ohm resistor model 90 1555 LED 3ma or 1K ohm resistor HLMP 1790 LED 2ma rating 25 2 S1 S2 Momentary normally open push button switch Digikey Part SW263CT ND 26 1 U...

Отзывы: