Rigel RMB-167 User Manual

Rigelcorp rmb-167 monitor user's guide

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RMB-167 and is the answer not in the manual?

Questions and answers

Summary of Contents for Rigel 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 (C) 1998 by Rigel Corporation All rights reserved. No part of this document may be reproduced, stored in a retrieval system, or transmitted in any 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 IBM Personal Computer or its compatibles.
  • Page 4: Warranty

    WARRANTY RIGEL CORPORATION - CUSTOMER AGREEMENT Return Policy. This return policy applies only if you purchased the RMB-167 evaluation board directly from Rigel Corporation. If you purchase the board from a distributor please contact them for their return policy. If you are not satisfied with the items purchased, prior to usage, you may return them to Rigel Corporation within thirty (30) days of your receipt of same and receive a full refund from Rigel Corporation.
  • Page 5: Table Of Contents

    OVERVIEW ...1 1.1 H ...1 ARDWARE 1.2 READS166 E VALUATION 1.3 P ...2 ARTS SOFTWARE ...3 2.1 S ...3 YSTEM EQUIREMENTS 2.2 S OFTWARE NSTALLATION 2.3 T HIRD ARTY OFTWARE START-UP ...4 3.1 C ONNECTIONS UMPER 3.2 S OFTWARE NITIALIZATION 3.3 S ...4 ERIAL...
  • 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 CIRCUIT DIAGRAMS ...29...
  • Page 7: Overview

    Overview The RMB-167 is an evaluation board for the Siemens SAB C167 microcontroller. The RMB-167 board accepts the following processors, the SAB C167-LM, the SAB C167SR-LM, and the SAB C167CR-LM. The evaluation board is designed as a low-cost demonstration board using the microcontroller in the 16-bit non-multiplexed addressing mode.
  • Page 8: Part List

    The C-compiler in the demo version of READS166 limits the size of code to about 8K. Parts List Your RMB-167 package includes the following: Hardware RMB-167 evaluation board with a 64K of static RAM. Serial modem cable with adapter Software RMON167 monitor program with source code.
  • Page 9: Software

    SOFTWARE The RMB-167 board comes with software from Rigel Corporation and third party vendors, whom we work very closely with. Rigel’s own software for the 166 family may be found on the CD-ROM in the Rigel Products file, under 166 Software.
  • Page 10: Start-Up

    3. Check to make sure jumpers are the correct position. There are two jumpers, one in position P0.4 the other in P0.6. This is the default configuration for the RMB-167 and the board will be populated this way from the manufacturer.
  • Page 11: Bootstrapping

    2. Open the TTY window using the Tools | TTY menu command. Select the communication port parameters using the Tools | TTY | TTY Options menu command. You will need to select the COM port you are using, and the baud rate. Bootstrapping In the default configuration, all monitor programs are downloaded to the boards after the boards are bootstrapped.
  • Page 12: Verifying That The Monitor Is Loaded

    RMON16x. Once the monitor program is loaded, the monitor commands are available to the user. 1. Press the reset button on the board. 2. From the menu in the TTY window select TTY | Bootstrap and Download Monitor. The board will now bootstrap and download the monitor program. You may observe the bootstrap progress in the status line of the TTY window.
  • Page 13: Jumper

    Troubleshooting All the boards are functionally tested before shipment. If the system does not bootstrap as expected, review the hardware, software, and PC setup. 3.7.1 Hardware Set-up 1. Make sure that that you have the power connected correctly. 2. Verify that the power-on LED is lit. 3.
  • Page 14: Operating Notes

    5 volt DC source is required. The (+) and (-) terminals are marked on the board. Note that a diode is placed across the input in reverse. Thus if the power is applied to the RMB-167 board in reverse polarity, the diode will short the power supply attempting to prevent damage to the board.
  • Page 15: Memory Options

    Alternate Memory Map with EPROM in Low Memory The default RMB-167 memory map uses only the RAM chips. That is the range 0 to FFFFh is decoded as RAM. The addresses are decoded by a GAL device. Alternate memory maps are possible by changing the GAL programs.
  • Page 16: Moving Rmon167 To Eprom

    The microcontroller simply starts executing from address 0. With the jumpers CFG0 or CFG1 (or both) installed, the RMB-167 may still be bootstrapped. Again, the jumper P0.4 must be installed. This forces the SAB-C167 to enter the bootstrap mode upon reset.
  • Page 17 ; --- !!! ASSUMES 8000h-FFFFh is RAM !!! --- 08000h cmdbuf equ 08000h pbuffr equ 08020h ;--------------------------------------------------- RSTISR proc cc_UC, mon RSTISR endp 00008h NMISR proc cc_UC, mon NMISR endp ; -------------------------------------------------- 01000h ; -------------------------------------------------- ; --- monitor program --- MON proc near SYSCON, #0F800h...
  • Page 18 ; SYSCON is 89h on the 167 dw 089E6h dw 0F800h ; SYSCON is 89h on the 167 dw 089E6h dw 0F800h SYSCON, #0F800h SYSCON, #0F800h...
  • Page 19: Gal Equations

    GAL EQUATIONS Two PALCE16V8 are used. The first (U1) is responsible for the reset logic and auxiliary options, and the second (U2), for the memory decode logic. Refer to the circuit diagrams for more information. Default GAL Equations 6.1.1 U1 Equations ;U1 Bootstrap Loader Logic ;----------------- PIN Declarations --------------- ;...
  • Page 20: U2 Equations

    ; ----------- ------- NONE CFG0 EPROM CFG1 ;CFG0 and CFG1 EPROM ; --- Declaration Segment ---------------------------- TITLE RMB-167 Memory Decode Logic -- RAM/EPROM PATTERN REVISION AUTHOR COMBINATORIAL ; COMBINATORIAL ; COMBINATORIAL ; COMBINATORIAL ; COMBINATORIAL ; COMBINATORIAL ; COMBINATORIAL ;...
  • Page 21: U2 Equations For Eprom In Low Memory

    ; CFG0 and CFG1 select RAM and EPROM jumper at low 32K ; ----------- ------- NONE CFG0 EPROM CFG1 ;CFG0 and CFG1 EPROM ; --- Declaration Segment ---------------------------- -TITLE RMB-167 Memory Decode Logic PATTERN REVISION AUTHOR COMPANY Rigel Corporation DATE 09/14/94 CHIP _r167u2 PALCE16V8 COMBINATORIAL COMBINATORIAL...
  • Page 22 ; --- PIN Declarations --------------------------------; --- inputs --- BHE_ HISEG RESET PIN 11 AUX0 PIN 19 AUX1 ; --- outputs --- RAMSELL_ RAMSELH_ ROMSEL_ MA14 MA15 MA16 MA17 ; --- Boolean Equation Segment ----------------------- EQUATIONS RAMSELL_ = + (A15+/AUX0) * (/A15+/AUX1) RAMSELH_ = BHE_ + (A15+/AUX0) * (/A15+/AUX1) ROMSEL_...
  • Page 23: Headers And Jumpers

    The two RMB-166 headers, the input output port header JP2 and the system header JP1, are similar to the headers JP6 and JP7 of the RMB-167. In addition, the RMB-167 has JP8, the Extra Input/Output header XIO. Ports 2, 3, and 5 are available on JP7. JP6 contains the address, data and control busses.
  • Page 24 Note that pins 46-50 on the RMB-167 are not connected to any signal. JP7 - Input/Output Header Signal Pins RMB- RMB- (JP2) (JP7) Ground Ground P5.0 P5.2 P5.4 P5.6 P5.8 VAGND VAREF P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 P2.8...
  • Page 25 JP8 - Extra Input/Output Header of the RMB-167 Signal Pins RMB-167 Ground Ground P6.0 P6.2 P6.4 P6.6 VAGND VAREF P5.0 P5.1 P5.2 P5.3 P5.4 P5.5 P5.6 P5.7 P5.8 P5.9 P5.10 P5.11 P5.12 P5.13 P5.14 P5.15 Note that Port 5 pins P5.0 to P5.9 are available on the Input/Output Header JP7 as well as on the Extra Input/Output Header JP8.
  • Page 26: Analog-To-Digital Converter Reference Jumpers

    Analog-to-Digital Converter Reference Jumpers The analog-to-digital converter requires a ground and reference voltage. These reference voltages may be provided either from JP2 lines marked VG (ground reference voltage) and VR (reference voltage), or connected to the +5 volt TTL supply. Jumpers JP4 and JP5 select the source of reference voltages.
  • Page 27: Bootstrapping

    BOOTSTRAPPING The RMB-167 bootstrapping is triggered by grounding P0L.4 at reset. A 16 pin header is used to ground the bits of P0L via a resistor array with a nominal value in the range of 22K to 33K. Note that the GAL which controls the bootstrap load operation is also responsible for turning on the LED.
  • Page 28 Note that the NOP (no operation) operations are required to fill the 32 bytes, since the bootstrap loader remains active until all 32 bytes are received. When the bootstrap loader receives its last byte and places it in address 0FA5Fh, it makes a jump to 0FA40h and starts executing the code. This is the short loop given above.
  • Page 29 The file BTL67.DAT contains the bytes downloaded to the RMB-167 board during bootstrapping. The file BTL.SRC contains the source code. The initialization routines configure the SYSCON register. The internal ROM is disabled and the external bus is activated.
  • Page 30: The Minimal Monitor

    THE MINIMAL MONITOR The minimal monitor is placed by the bootstrap loader starting at address 8000h. The monitor responds to two single-letter commands ’D’ and ’G’. The ’D’ command places the monitor in a download mode. Code in the Intel Hex format is expected. Code may be downloaded anywhere in the first 64L segment.
  • Page 31: Mon167 Monitor

    RMON167 is at address C100h. To set up RMON167, initialize READS166 and the RMB-167 board and invoke the Bootstrap command as explained in the previous section. From the TTY menu, select Download to download RMON167.HEX. Branch to and execute RMON167 using the Run command under the TTY menu.
  • Page 32 Port Data The P command is used to read from or write to the ports. Pn displays the current value of port n. If port n is an input port, then the value read is the current voltage levels applied to the ports. If port n is an output port, Pn returns the current output value to port n.
  • Page 33: Reads166 Version 3.0

    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.
  • Page 34: Executable Projects

    By using the long names provided by the 32-bit Windows operating systems, you may use this feature to keep different versions of your software in a controlled manner. For example, the project “Motor Control 07-20-1997” may be saved under the name “Motor Control 07-25-1997” as new features are added.
  • Page 35: Circuit Diagrams

    CIRCUIT DIAGRAMS...

Table of Contents