Rigel RMB-167 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Fernseher & Monitore Rigel RMB-167 herunter. Application Note 115b Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 10
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
1
C COMPILERS • REAL-TIME OS • SIMULATORS • EDUCATION • EVALUATION BOARDS
Programming the Siemens C167CR CAN Interface: A Real Life Case:
Constructing the Hardware
Application Note 115b - Hooking up the CAN hardware and running the software: Version 1.0
By Robert Boys, MIS
Keil Software, Inc.
1-800-348-8051 or [email protected]
This application note will instruct you on how to connect two Keil single board computers together to
construct a working two node CAN network. This article has instructions on loading and using the Keil
monitor and debugger to operate and evaluate the entire system. This note will also work on the Phytec
KitCON 167 board that is sold by Siemens.
Introduction
Gary Culp and Robert Boys wrote an article on the CAN bus in the Siemens Contact magazine in
February 1998. The basis of the article was making a two node CAN network using two Keil MCB167
evaluation boards. This article very briefly described the CAN bus, the Keil CAN libraries and RTOS,
the Keil C167CR microcontroller and the MCB167. It then described some unusual and interesting
aspects of programming the C167CR on-chip CAN controller. These were discovered during the
research phase of this article and deemed to be of enough interest to form the main content of the article.
The original article has become Keil Application Note # 115 and is available on the Keil Website:
www.keil.com/~market/115.pdf. The note you are now reading continues the original article and
completes the experiment. It describes the actual steps required to connect the two boards together and
getting the software running to display the expected results.
The Keil Tool Chain - an overview
The Keil Tool Chain fully supports the entire Siemens C166 and the SGS Thomson ST10
microcontroller lines. The Keil Tool Chain includes a C Compiler, Macro Assembler, Linker/Locator,
µVision IDE, and the dScope Simulator and Target Monitor.
The Keil tool chain consists of the following executables:
C Compiler c166.exe
Assembler a166.exe
Linker L166.exe
Converter oh166.exe
dScope dsw166.exe (a Windows application)
µµVision uvw166e.exe (a Windows application)
These files are located in the c:\c166eval\bin directory for the evaluation version when installed on your
hard drive. The full version would locate them in the c:\c166\bin directory. They are DOS programs
except for µVision and dScope. Access to these programs from Windows is accomplished with
µVision. The entire tool set can be run from µVision or directly from DOS with your batch files. The
Evaluation version is limited in code size to 4Kbytes. Other than these restrictions, all features operate
normally.
Seitenansicht 0
1 2 3 4 5 6 7 8 9 10

Inhaltsverzeichnis

Seite 1 - Introduction

1C COMPILERS • REAL-TIME OS • SIMULATORS • EDUCATION • EVALUATION BOARDSProgramming the Siemens C167CR CAN Interface: A Real Life Case:Constructing th

Seite 2 - The Software

102) If I connected a resistor ( 2k or so) between P4.6 and P4.5, the appearance of a signal on theTransmit pin would be appear more consistently and

Seite 3 - Installing the Keil Software

2µµVision IDEµVision is a Windows based front end for the C Compiler and Assembler. It was developed in the USAas was the printed manual set. Compil

Seite 4 - The Hardware

3The CAN programsKeil provides C source code for the A and the B boards. A runs a counter that determines how long ithas been activated in seconds.

Seite 5 - Starting Everything Up

4FIGURE 1For Windows 95 you must install the two icons manually as follows. If the two icons are visible in asmall window drag them onto the desktop.

Seite 6 - Running the A Software

5Connecting it all together1) Connect the power supply to the two boards2) Complete the CAN physical layer connection between the two boards as approp

Seite 7

6Downloading the A Software to the MCB167You are now ready to start the dScope debugger to download and execute code to the Keil A board.1) Press the

Seite 8 - COMMUNICATIONS SETUP - Help !

7If using only one PC, move the serial COM cable to the second MCB167. The A board will continue tooperate without intervention of dScope. Start at

Seite 9

8COMMUNICATIONS SETUP - Help !You need to follow these instructions if proper communication was not established. After a series ofattempts, dScope wi

Seite 10

9Testing the MCB167 CAN InterfaceAt this point you will have two boards with the physical layer installed, the Keil Tool Set installed, andthe CAN sam

Kommentare zu diesen Handbüchern

Keine Kommentare