Siemens Microelectronics, Inc. December 98 Slide 1 HOT50x-5 Version 1.0 HOT50x-5 An Add-On to the HOT50x_1 Hands-On Training Materials for the 8bit Family.

Slides:



Advertisements
Similar presentations
The 8051 Microcontroller and Embedded Systems
Advertisements

4-1 Timers Timers can be used for  timing  event counting  pulse width measurement  pulse generation  frequency multiplication There are 8 Timers.
Programmable Interval Timer
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Programmable Keyboard/ Display Interface: 8279
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 * C167CS not yet supported by DAvE V1.0 CD ROM. See “Hints regarding DAvE.” Exercise 7ASC_1.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 F PWMmax = x 50ns = 78 kHz Pulse Width Modulation Unit (PWM) (20 MHz)  4 independent.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Hardware/software Interfacing. Page 2 Interrupt handling and using internal timer Two way for processor to accept external input: Waiting for input: Processor.
Coordinate Based Tracking System
Programming I/O for Embedded System. Page 2 Overview Basis: A DE2 Computer Architecture Parallel I/O 7-Segment Display Basic Manipulating 7-Segment Display.
Using PDG with e2studio: Example
CCNA 2 v3.1 Module 2.
NS Training Hardware. System Controller Module.
1. 2 LXU800 User’s Manual 1.Installation – Windows XP UI Features Introduction Data Connection & Disconnection.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
COMP201 Computer Systems Exceptions and Interrupts.
System Clocks.
LPC2148 Programming Using BLUEBOARD
EE 446 Project Assignment Top Design Sensor Components Pin Assignment and Configuration Completed Physical Setup Project Tasks.
8254 SOFTWARE PROGRAMMABLE TIMER/COUNTER
ELEC4601 Microprocessor systems Lab 3 Tutorial
PS - 87C51Mx2 - SLS-1 Philips Semiconductors 87C51Mx2 Microcontroller.
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
Page 1 D&C EBV Seminar June 2003 Motor Demo C868 Chevillot/Jansen June 2003 N e v e r s t o p t h i n k i n g. Infineon C868 Hands On Training CAPCOM6.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Modes of transfer in computer
Slide 1 Project 1 Task 2 T&N3311 PJ1 Information & Communications Technology HD in Telecommunications and Networking Task 2 Briefing The Design of a Computer.
AT91 Memory Interface. 2 Features –Up to 8 programmable chip select lines –Remap Command allows dynamic exception vectors –Glue-less for both 8-bit and.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Technical Introduction April Internal usage only 1 General Features  Self contained batch solution for small, standalone applications.  All functionality.
DSP C5000 Chapter 10 Understanding and Programming the Host Port Interface (EHPI) Copyright © 2003 Texas Instruments. All rights reserved.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
Commands 3/1/ Boot PROM Fundamentals All Sun systems have resident boot PROM firmware Provides basic hardware testing and initialization prior.
Components of a typical full-featured microcontroller.
LonWorks Introduction Hwayoung Chae.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Automated ADT Interface Version .02
Serial mode of data transfer
UNIT – Microcontroller.
DIGITAL CALCULATOR USING 8051
Avalon Switch Fabric.
USB-Microcontroller C540U Family
Future Designs, Inc. Your Development Partner
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
8051 Micro Controller.
Presentation transcript:

Siemens Microelectronics, Inc. December 98 Slide 1 HOT50x-5 Version 1.0 HOT50x-5 An Add-On to the HOT50x_1 Hands-On Training Materials for the 8bit Family using kitCON-CAN/LCD Module (from PHYTEC; plus DAvE, the kitCON-50x Starter Kit, the Keil uVision + dScope) This version is based on DAvE Version 1.0, uVision V1.24, dScope V1.3W Starter Kit CD ROM V Please report any errors to

Siemens Microelectronics, Inc. December 98 Slide 2 HOT50x-5 Version 1.0  HOT50x_5 is an add-on to the HOT50x_1 and training materials for the Siemens C500 family of 8-bit microcontrollers.  HOT50x_5 will show you how to run the kitCON CAN/LCD Module  You can use the HOT 50x-5 for the kitCON CAN/LCD Module in connection with the following 8bit Starter Kits: C504 C505 Introduction to HOT50x_5

Siemens Microelectronics, Inc. December 98 Slide 3 HOT50x-5 Version 1.0 Features of the kitCON-CAN/LCD from PHYTEC  Two Stand Alone Full CAN Controller 81C90 and 81C91  BATRON LCD-Display (2 lines X 16 Characters) 2 lines X 16 Characters Hitachi Dot Matrix Liquid Crystal Display Controller/Driver HD44780  8 LEDs that can either be connected with Port P0 and P1 of the CAN- Controller or with Port P1 and P3 of the C50x  Optional optical decoupling of the CAN - Interface

Siemens Microelectronics, Inc. December 98 Slide 4 HOT50x-5 Version 1.0 Features of the Stand-alone Full-CAN Controller SAE 81C90/91  Complies with CAN Specification V2.0A (B passive) (talks Standard-CAN, tolerates Extended-CAN)  Maximum CAN Transfer Rate (1 16 MHz Clock  Basic CAN Feature (Message Object 0)  Full CAN Device 16 message objects with their own identifier and their own status- and control bits Each message object can be defined to handle data frames or remote frames Objects are equipped with two time-stamp bytes which provide time related information on the or captured in the message memory reception status requency or received data. CAN Module SAE 81C91 SAE 81C90

Siemens Microelectronics, Inc. December 98 Slide 5 HOT50x-5 Version 1.0 Features of the SAE 81C90/91 (cont.)  Two interfaces to the host controller  User configurable outputs for different bus concepts  Transmit Check Unit  Message Identifier reprogrammable "on the fly"  Several transmit jobs can be sent with a single command  Programmable Clock Output  Interrupt Output to Host-Controller CAN Module

Siemens Microelectronics, Inc. December 98 Slide 6 HOT50x-5 Version 1.0 How to set up your system  How to set up your system: kitCON-50x HW setup see respective HOT50x material.  How to set up your system: DAvE installation see respective HOT50x material.  How to set up your system: Keil uVision installation see respective HOT50x material.  How to set up your system: Tasking EDE installation see respective HOT50x material.  How to set up your system: Exercise directory structure see respective HOT50x material. For this exercise use c:/HOT50x_5/  Hints regarding DAvE and the Exercises see respective HOT50x material.

Siemens Microelectronics, Inc. December 98 Slide 7 HOT50x-5 Version 1.0 Exercise kitCAN - Using the kitCON - CAN / LCD  Objective: Transmit the context of Port 0 with the 81C90 CAN-Controller (2)* -Count up Port 0 of the 81C90 (1)* -Use 100kbaud bus speed -Use Message Object 1 -Use Identifier 0x7 (11-bit-Identifier) -Use one Data Byte containing the Port 0 value Receive all Messages with Identifier 0x7 with the 81C91 CAN- Controller (3)* -Write the received Data Byte 1 to the LCD - Display (4)* *) refer to the picture on the next site

Siemens Microelectronics, Inc. December 98 Slide 8 HOT50x-5 Version 1.0 CAN-Bus Transceiver Receive Transmit CAN_H CAN_L CAN-Bus Transceiver Receive Transmit CAN_H CAN_L SAE 81C91 Px.y Pv.w SAH C505C Connection to the Application A8 Address Decoding Logic Exercise kitCAN - Using the kitCON - CAN / LCD (cont.) SAE 81C90 Add/ Data Siemens HOT Data: 018 LCD - Display LED A9 CAN_L CAN_H Message Object 1 ID: 0x7 Data0: 0x12 (=LED’s) P0

Siemens Microelectronics, Inc. December 98 Slide 9 HOT50x-5 Version 1.0 Exercise kitCAN - kitCON-CAN Configurations  Jumper settings JP8:close JP12:2+3 JP9:3+4 JP10:3+5 JP11:1+2 JP1:1+2 JP3:1+2 JP2:1+2; JP1_1:2+3 : : JP1_8:2+3  Hints 1 )By doing that, you connect both CAN-Nodes

Siemens Microelectronics, Inc. December 98 Slide 10 HOT50x-5 Version 1.0 Exercise kitCAN _1 - DAvE Configurations  Create new Project with microcontroller C50x: Project name: kitCAN Select project path: c:\hot50x_5\  Project Settings: System Clock: -External Oscillator Frequency: Set to 8 MHz (or the crystal frequency of your KitCON-50x board) External Access -Global XRAM / CAN Access Control (XMAP0): Disable access to XRAM and the CAN controller Save & Close

Siemens Microelectronics, Inc. December 98 Slide 11 HOT50x-5 Version 1.0 Exercise kitCAN_1 - DAvE Configurations (cont.)  Configure T0 (Timer/Counter 0): Timer 0 -Timer Mode (M1, M0): -16-bit timer / counter (TH0, TL0) -Timer Options: -Run Timer (TR0) -Interrupt Control: -Enable Timer 0 interrupt (ET0) Functions: -Include T0 initialization function T01_vInit Save & close  Configure CAN Module and LCD-display: Because DAvE can not generate code for the SAE 81C90/91 the files CAN81C9x.C, LCD.C, CAN81C9x.H and LCD.H are included in the directory c:\HOT50x_5\  Generate code

Siemens Microelectronics, Inc. December 98 Slide 12 HOT50x-5 Version 1.0 Exercise kitCAN_1 - uVision Configurations  Create new Project: c:\hot50x_5\kitCAN.prj  Edit Project: Add MAIN.C(from c:\hot50x_5\) Add T01.C(from c:\hot50x_5\) Add CAN81C9x.C(from c:\hot50x_5\) Add LCD.C(from c:\hot50x_5\) Open All Save  Options/Environment Pathspecs… In most cases the “Automatically determine path specifications” will work, however if you have problems building the project you may have to enter the paths in manually.

Siemens Microelectronics, Inc. December 98 Slide 13 HOT50x-5 Version 1.0 Exercise kitCAN_1 - uVision Configurations  Edit MAIN.H: // USER CODE BEGIN (MainHeader,1) #include "CAN81C9x.H" #include "LCD.H" // USER CODE END  Edit MAIN.C (Global Variables): // USER CODE BEGIN (Main,0) // temporary variable for the received data ubyte Temp; // USER CODE END

Siemens Microelectronics, Inc. December 98 Slide 14 HOT50x-5 Version 1.0 Exercise kitCAN_1 - uVision Configurations (cont.)  Edit MAIN.C (Project_Init()-function): // USER CODE BEGIN (Project_Init,1) // initializes the CAN peripheral 81C91/90 CAN81C9x_vInit(); // initializes the LCD peripheral LCD_vInit(); //write text on the Display LCD_text(); // USER CODE END

Siemens Microelectronics, Inc. December 98 Slide 15 HOT50x-5 Version 1.0 Exercise kitCAN_1 - uVision Configurations (cont.)  Edit MAIN.C (main()-function): // USER CODE BEGIN (Main,2) while(1) // endless loop { //wait until a message arrived while(!CAN_CON[0].INT); CAN_CON[0].RRR1 = 0; //reset receive- and CAN_CON[0].INT = 0; //interrupt req. register //the message’s data field is copied to the //shadow reg. with any read access to byte 7 Temp = CAN_CON[0].MsgObj[1].Data[7]; //write the received data on the display LCD_vWrite_ubyteXY(6,1, CAN_CON[0].MsgObj[1].Data[0]);

Siemens Microelectronics, Inc. December 98 Slide 16 HOT50x-5 Version 1.0 Exercise kitCAN_1 - uVision Configurations (cont.) } //end_while(1) // USER CODE END  Edit T01.C (T01_viIsrTmr0()-interrupt service routine): // USER CODE BEGIN (T01_IsrTmr0,1) //toggle port and initialize CAN-Message // ~(-- because of low active logic CAN_CON[1].MsgObj[1].Data[0] = ~(-- CAN_CON[1].Port[0].LR); //set transmit request CAN81C9x_vTransmit(1, 1); // USER CODE END  Build Project (Project | Build)

Siemens Microelectronics, Inc. December 98 Slide 17 HOT50x-5 Version 1.0 Exercise kitCAN_1 - Running the Program  Run dScope Debugger  File | Load CPU Driver: mon51.dll this will establish a connection between the Keil Monitor (located in the flash) and dScope (once this happens dScope becomes tScope - the target debugger)  File | Load Object file: Load c:\hot50x_5\kitCAN  Hit Go!  When you are finished viewing the output, push the RESET button on the KitCON-50x