Rigel RMB-167 User Manual Download Page 33

-  -

27

10

READS166 VERSION 3.0

READS166, version 3.00, is Rigel Corporation’s Integrated Development Environment for the
SGS Thomson 16-bit processors.  READS166 includes an editor, a host-to-board
communications system, an assembler, and a C compiler.  READS166 is completely rewritten in
native 32-bit code to run on Windows95 and WindowsNT. READS166 includes a sophisticated
project management system to simplify code reusability and version control.  The C compiler is
rewritten to support a full debugger.  The debugger allows you to step through your code with
breakpoints and variable watches as the compiled code runs on the target board, similar to the
operation of an in-circuit emulator.
RMON166 -  The READS166 monitor program
RMON 166 is downloaded after bootstrapping (or it may be placed into ROM) and supports basic
memory and port functions.  RMON166 allows downloading and running applications programs.
The complete source code for user modifications or upgrades is included on disk.
Ra66 - The READS166 Assembler
Ra66 is a cross assembler for the C166 family of microcontrollers.  It is intended to be used by
the hardware and software products available from Rigel Corporation.  Ra66 is a two-pass
assembler.  Forward references are resolved during the second pass.  The second pass is used
only when necessary.  If no forward references are used, Ra66 completes assembly in a single
pass.
Rc66 - The READS166 C Compiler
Rc66 is a C Compiler for the C166 family of processors.  It compiles code for the tiny memory
model which fully resides in the first segment of memory. Rc66 is a designed as a low-cost C
compiler which provides a quick development cycle for simpler applications which do not need
more than 64K of code, or the use of standard C libraries.  Rc66 implements a subset of ANSI C.
Rc66 works in conjunction with Ra66: first an assembly language program is generated from the
C source then a HEX file is created.

The READS166 software has the following distinctive features:

  Project management for organized software development

  Archive storage for source code modules

  Multiple project management with drag and drop module transfers

  Enhanced graphical user interface for easy monitoring

  Stand alone compiler and editor applications connected to READS166 in a client/server

fashion

  Drag and drop code development

  Mixed mode projects  (C and assembler)

  Wizard code generator

10.1 READS166 V3.00 CONCEPTS

READS166 introduces a project-oriented code development and management system.  The new
concepts are defined below.

10.1.1 Project

A project is collection of files managed together.  Each file in a project corresponds to a code
module.  All projects are kept in their individual subdirectories.  You may copy or save projects as
a single entity.  When saved under a different name, a new subdirectory is created and all
components of the project are duplicated in the new subdirectory.

Summary of Contents for RMB-167

Page 1: ...RMB 167 USER S GUIDE Version 1 0 July 1998 RIGEL CORPORATION P O Box 90040 Gainesville Florida 32607 352 373 4629 www rigelcorp com...

Page 2: ...form or by any means electronic mechanical photocopying recording or otherwise without the prior written permission of Rigel Corporation The abbreviation PC used throughout this guide refers to the IB...

Page 3: ......

Page 4: ...MS IF THE FOREGOING LIMITATIONS ON LIABILITY ARE UNACCEPTABLE TO YOU YOU SHOULD RETURN ALL ITEMS PURCHASED TO YOUR SUPPLIER 3 READS166 referred to as simply READS License The READS166 or the READS166...

Page 5: ...ware Set up 7 3 7 3 PC set up 7 4 OPERATING NOTES 8 4 1 POWER 8 4 2 SERIAL PORT 0 8 4 3 SERIAL PORT 1 8 4 4 JUMPER SELECTION 8 4 5 LEDS 8 5 MEMORY OPTIONS 9 5 1 RAM MEMORY OPTIONS 9 5 2 EPROM MEMORY O...

Page 6: ...10 1 1 Project 27 10 1 1 1 Executable Projects 28 10 1 1 2 Archive Projects 28 10 1 2 Module 28 11 CIRCUIT DIAGRAMS 29...

Page 7: ...rm 1 1 Hardware SAB C167 high performance microcontroller Internal 16 channel 10 bit analog to digital converter Bootstrap loading feature Runs at 40Mhz with zero wait states One serial port One high...

Page 8: ...66 is a designed as a low cost C compiler which provides a quick development cycle for simpler applications which do not need more than 64K of code or the use of standard C libraries Rc66 implements a...

Page 9: ...el Products 166 Software READS166 exe program Click on the exe file and the program will begin to load in your system Follow the standard install directions answering the questions with the appropriat...

Page 10: ...d customer numbers If you are using the demo version of the software you may press CANCEL and the box will disappear and the About Box will appear Press the OK button in the About Box and the software...

Page 11: ...will need to select the COM port you are using and the baud rate 3 5 Bootstrapping In the default configuration all monitor programs are downloaded to the boards after the boards are bootstrapped That...

Page 12: ...e letter commands the monitor will recognize The READS monitors use single letter commands to execute basic functions Port configurations and data as well as memory inspection and modifications may be...

Page 13: ...elds are for information purposes only If the fields are not as listed above you may search for a record which matches the desired fields Once located go to the TTY Options dialog and select the corre...

Page 14: ...lines by G Ground T Transmit and R Receive on the RMB 167 silk screen 4 3 Serial Port 1 Serial port 1 is used as a synchronous serial channel by the SAB C167 It has 3 TTL level signals MRST Master Re...

Page 15: ...The RMB 167 has sockets to accommodate two 27C256 type 32K EPROMS Two chips are needed one for EVEN and the other for ODD addresses The EPROMS may be configured to occupy low memory high memory or sta...

Page 16: ...RMON167 to EPROM As an example of placing a valid program in EPROM consider modifying the monitor program RMON167 as given below It is assumed that the lower 32K of memory is EPROM and the higher 32K...

Page 17: ...F800h 1111 1000 0000 0000 b nop initialize CPS 0xFA 0x00 0x10 0x80 jmps far 1000h jump to next1 far intersegment jump to update CPS next1 dw 000FAh dw 01010h next1 initialize DPPx mov DPP0 0 no change...

Page 18: ...12 mov SYSCON 0F800h SYSCON is 89h on the 167 dw 089E6h dw 0F800h nop mov SYSCON 0F800h SYSCON is 89h on the 167 dw 089E6h dw 0F800h...

Page 19: ...IAL PIN 4 A21 COMBINATORIAL PIN 5 A22 COMBINATORIAL PIN 6 A23 COMBINATORIAL PIN 7 RSTIN_ COMBINATORIAL PIN 8 RSTOUT_ COMBINATORIAL PIN 9 CFG0 COMBINATORIAL PIN 11 CFG1 COMBINATORIAL outputs PIN 12 HIS...

Page 20: ...IN 13 RAMSELH_ COMBINATORIAL PIN 14 ROMSEL_ COMBINATORIAL PIN 15 MA14 COMBINATORIAL PIN 16 MA15 COMBINATORIAL PIN 17 MA16 COMBINATORIAL PIN 18 MA17 COMBINATORIAL Boolean Equation Segment EQUATIONS RAM...

Page 21: ...AUX0 COMBINATORIAL PIN 16 AUX1 COMBINATORIAL PIN 17 DUMMY COMBINATORIAL PIN 18 LEDRST_ COMBINATORIAL PIN 19 LEDAUX_ COMBINATORIAL Boolean Equation Segment EQUATIONS RSTCYC RSTIN_ RSTCYC_ RSTCYC_ RSTOU...

Page 22: ...SET COMBINATORIAL PIN 11 AUX0 COMBINATORIAL PIN 19 AUX1 COMBINATORIAL outputs PIN 12 RAMSELL_ COMBINATORIAL PIN 13 RAMSELH_ COMBINATORIAL PIN 14 ROMSEL_ COMBINATORIAL PIN 15 MA14 COMBINATORIAL PIN 16...

Page 23: ...er Individual signals of these jumpers are listed below The tables reflect the physical orientation of the headers and the enumeration of their individual posts Pin 1 is identified as the post with th...

Page 24: ...5 0 5 6 P5 1 P5 2 7 8 P5 3 P5 4 9 10 P5 5 P5 6 11 12 P5 7 P5 8 13 14 P5 9 VAGND 15 16 S1I not used VAREF 17 18 S1O not used P2 0 19 20 P3 0 P2 1 21 22 P3 1 P2 2 23 24 P3 2 P2 3 25 26 P3 3 P2 4 27 28 P...

Page 25: ...0 P7 0 P5 1 21 22 P7 1 P5 2 23 24 P7 2 P5 3 25 26 P7 3 P5 4 27 28 P7 4 P5 5 29 30 P7 5 P5 6 31 32 P7 6 P5 7 33 34 P7 7 P5 8 35 36 P8 0 P5 9 37 38 P8 1 P5 10 39 40 P8 2 P5 11 41 42 P8 3 P5 12 43 44 P8...

Page 26: ...ected to the SAB C167 VAREF and VAGND inputs Post 1 of JP4 marked VCC is connected to the 5 volt supply Thus connecting this post with the center post selects VAREF to be the same as the 5 volt supply...

Page 27: ...top bit and no parity bits The C167 responds with the byte A5h Then the host expects 32 bytes of code to be downloaded to internal RAM starting at address 0FA40h and run Since 32 bytes is not enough t...

Page 28: ...C167 a lot of functionality can be implemented within 604 bytes of code The 604 bytes contained in the file BTL67 DAT downloads a minimal monitor program This program contains an initialization routin...

Page 29: ...sections 2 and 3 First the word is written to register R1 Then the register is copied to memory The file BTL67 DAT contains the bytes downloaded to the RMB 167 board during bootstrapping The file BTL...

Page 30: ...the first 64K segment A jump is performed to this address If a user program is downloaded using the D command say at address 0C000h then the GC000 command branches to the user program In many cases t...

Page 31: ...speed or size but rather for clarity and pedagogical value The legal users are encouraged to modify RMON167 and use portions of it in applications programs The single letter commands of RMON167 are ex...

Page 32: ...current output value to port n Pn mmmm sets the current value of output port n to mm Note that individual bits of the ports may be programmed as input or output Thus the word returned by Pn gives the...

Page 33: ...Ra66 completes assembly in a single pass Rc66 The READS166 C Compiler Rc66 is a C Compiler for the C166 family of processors It compiles code for the tiny memory model which fully resides in the firs...

Page 34: ...ts as a repository which you may add modules to or copy modules from Executable projects can be quickly constructed using already written and debugged modules from an archive project 10 1 2 Module A m...

Page 35: ...29 11 CIRCUIT DIAGRAMS...

Reviews: