Getting Started

Knowledge

For those not familiar with Forth we would advise you start with one of the books in the Appendix. For those with some familiarity, the Win32for introduction offers further information

Requirements

- IBM-PC with Windows95/98 or NT

- 16Mb of RAM

- COM1: Serial Port

- Hard Disk

- Mouse

Target system with a +5V power source of at least 50 mA capability to power the ISP serial programmer.

The ISP must be connected to a serial port before running IRTC.

Hard Disk Installation

Place the IRTC CD in the CD drive and run the Setup program found in the Win32For directory. The setup wizard will install Win32Forth on to your hard drive in the directory of your choice. The default is C:\Win32For.

Next copy the contents of the IRTC directory on the CD to your Win32For directory. This will give you the IRTC version of Win32For, RAMFAVR and the demo extensions.

If you wish to have a shortcut to a particular AVR device on your desktop select RAMFAVR.EXE file and use 'Send to Desktop as Shortcut' to create. You will need to edit the Shortcut command line to include an FLOAD AVRxxxx.INI for the device you are using, see below.

To run IRTC either select from a shortcut or run from RAMAVR.EXE file in the Win32For\AVR directory. e.g.

  RAMFAVR.EXE FLOAD 90S2313.INI

IRTC will then load for the 90S2313.

Floppy Disk Use

It is not practicle to run Win32For or IRTC from floppy disks unless the LS120 format is used.

However, it is quite practicle to use the floppy disk to retain the application source code and to compile directly from the floppy.

Connecting the Interactive Serial Programmer

The ISP is connected to your IBM® compatible computers serial port, COM1 to COM4. IRTC sets the port configuration to 38400 baud 8 bits one-stop-bit and no-parity. The ISP 25 way D-type connector is then plugged into your computer port or via a cable.

The header on the 6 way strip cable is plugged into a pin header on your Target hardware. The Target powers the ISP through the strip cable via the power pins from your Target. See ISP description.

NOTE: Your Target hardware Xtal frequency will dictate the baud rate value needed by the TLM to achieve 38400 baud. This is calculated by XTAL>BAUD defined in the .INI file for the processor you select. You will need to edit the Xtal value in the .INI file if you use anything other than 4.9152 MHz.

Configuration File Win32for.CFG

This file configures Win32for when it loads up. You may find in necessary to change Win32for .CFG still further to reflect different directories, or any other set-up characteristic you prefer. These are all accomplished with the editor WinView. Refer to the Win32for files for further information.

For AVR Target configuration in AVR xxxx.INI, see Target Configuration.

AVR Configuration

IRTC is modified by the .INI file to reflect the properties of the AVR device chosen. IRTC is extended by TALKxxxx.F and the functions not appropriate to the device are marked as 'NOT Available'. IRTC considers the Mega103 to be the default device.

New AVR xxxx.INI files may be edited in WinView to specify new devices as they become available. Existing .INI files may be used as a template and new .INI files will be available on the web site as required

Loading your AVR with TLM

IRTC runs the ISP in two modes, Programming and Interactive Communication. The serial programming mode is as described in the Atmel databook, the interactive communications uses the same pins, MISO, MOSI and serial communication at the ISP baud rate, 38400 baud. For the interactive mode to operate a small program, the Target Link Monitor, must first be programmed into the AVR Flash code space. An image of this is created by TALKxxx.F at load time and this must first be programmed into your device before development may begin.

You may program the TLM with REPROGRAM. The ISP and Target must be powered and connected to a selected serial port. No external connection , except the ISP, should be made to the Reset pin on the Target device or to the MISO, MOSI and SCK pins. REPROGRAM erases the AVR Flash before programming the code image from $0000 to HERE.

When successful the AVR will now be ready for development.

Changing Processor

Once loaded it is NOT possible to change the AVR type selection without restarting IRTC with another .INI file.

Keyboard Macros

A set of keyboard macros are pre-set when IRTC is invoked. The following keys are defined as;

?REM is defined as the Ctrl+R

HOST is Ctrl+Shft+H

REPROGRAM is Ctrl+Shft+D

VERIFY is Ctrl+Shft+V

.STATISTICS is Ctrl+S

NOTE: These functions are also available from a pop-up generated by a right mouse click.

 

Contents