background image

MCB517AC Evaluation Board User’s Guide

11

Chapter 3.  Hardware

The MCB517AC is designed to be a very flexible evaluation board that you can
use to become familiar with an 80C517A microcontroller and an 80C91 full
CAN controller.  We have also tried to provide a board that can be expanded to
support your own hardware prototypes.

This chapter describes logical sections of the MCB517AC and also provides a
circuit description.  The descriptions here will help you understand how the
MCB517AC board works and how you can easily interface to the various I/O
devices available.

The following block diagram shows the various memory, I/O, configuration, and
power systems that compose the board.

RAM

EPROM

Memory System

Buffer

CAN Contr.

CAN Line

User I/O

serial Port 0

serial Port 1

RS232

RS232

Bus & Port

Signals

CAN Ports

Reset & Int.

P4 LEDs

80C517A

or

80C537

Buffer

Configuration

Power

Supply

Input

8-12V DC

Output

5V +/-5%

Содержание MCB517AC

Страница 1: ...SAB 80C517 80C537 Microcontroller Target Board with 81C90 Full CAN Controller and Banking Support User s Guide 04 97...

Страница 2: ...ted in any form or by any means electronic or mechanical including photocopying recording or information storage and retrieval systems for any purpose other than for the purchaser s personal use witho...

Страница 3: ...tches and configuration jumpers Chapter 3 Hardware provides detailed information about hardware including the schematic drawings for the MCB517AC board the logic equations for the PLD and the memory l...

Страница 4: ...u must provide For example projectfile in a syntax string means that you must supply the actual project file name Occasionally italics are also used to emphasize words in the text Elements that repeat...

Страница 5: ...tor Status Display 10 Chapter 3 Hardware 11 Schematics 17 Printed Board Assembly 21 Technical Data 22 PAL Equations 22 Monitor EPROM Addresses 27 Chapter 4 Programming 29 Monitor Memory Map 29 Monitor...

Страница 6: ...vi Contents...

Страница 7: ...just to play with the board make it flash the LEDs and write Hello World out the serial port This user s guide describes the hardware of the MCB517AC evaluation board and contains the operating instru...

Страница 8: ...controller External CAN Example on page 43 Create a simple banked program Code Banking Example on page 45 Learn more about the Vision IDE Using Vision to Create the BLINKY Program on page 34 Learn mor...

Страница 9: ...of providing 9 12VDC at 300 500mA The power cable should terminate with a 5 5mm barrel plug with a 2 5mm center hole Plus must be connected to the center hole n A PC with an available RS 232 port If...

Страница 10: ...our target applications The power cable provides power to the MCB517AC evaluation board The MCB517AC does not get power from the PC via the serial cable The following illustration shows MCB517AC board...

Страница 11: ...ration n Siemens SAB 83C517A microcontroller n Monitor uses serial interface 0 COM0 at 9600 bps n Banking disabled The default DIP switch settings are shown in the following table Switch S_ CAN INT CA...

Страница 12: ...in 3 2 INT0 If INT_CAN is OFF the interrupt output from the 80C91 is not connected to the microcontroller Switch INT_CAN to ON if you want to use the CAN interface or to OFF if INT0 is used for a diff...

Страница 13: ...he following tables Monitor Memory Mapping Monitor DIP Switch is ON S0 S1 used Pins von Neumann RAM Monitor EPROM Banking OFF OFF 0000h E7FFh C E800h FFFFh disabled OFF ON illegal illegal illegal ille...

Страница 14: ...ables or disables the on chip oscillator watchdog If OWEoff is ON the oscillator watchdog is disabled If OWEoff is OFF the oscillator watchdog supervises the crystal frequency and generates a reset if...

Страница 15: ...ins 16 different Monitor configurations Most of the Monitor configurations are required to use different serial interfaces and baudrates The other configurations determine whether the normal or the ba...

Страница 16: ...2 P4 1 P4 0 Monitor 51 using COM 0 ON x ON ON ON ON ON ON Monitor 51 using COM 1 OFF x ON ON ON ON ON ON Non Banked Monitor 51 x ON ON ON ON ON ON ON Banked Monitor 51 x OFF ON ON ON ON ON ON After t...

Страница 17: ...ical sections of the MCB517AC and also provides a circuit description The descriptions here will help you understand how the MCB517AC board works and how you can easily interface to the various I O de...

Страница 18: ...IC6 Alternatively you can insert a 80C517 into the IC6 socket Please be sure to set the jumper to the correct position otherwise the board might be damaged A 12 000 MHz crystal provides the clock sig...

Страница 19: ...different memory bank options for the user application using the DIP switches S1 and S2 For more information refer to DIP Switches on page 6 Status LEDs The MCB517AC has a single power LED labeled ON...

Страница 20: ...andard 3 wire interface The handshaking signals are connected to loop the PC s signals back Refer to the figure above to determine how the DB9 female connector for this port is wired CAN Bus The 81C90...

Страница 21: ...Refer to the figure below how these ports are wired CAN Port_x Port_x 0 Port_x 1 Port_x 6 Port_x 7 Prototyping Area A perforated area is provided on the MCB517AC for prototyping your own hardware All...

Страница 22: ...PSEN ALE P3 0 P3 7 P3 0 P3 6 P3 1 P3 7 P5 0 P5 7 P5 0 P5 6 P5 1 P5 7 P4 0 P4 7 P4 0 P4 6 P4 1 P4 7 P7 0 P7 7 P7 6 P7 0 P7 7 P7 1 DB0 DB7 DB6 DB0 DB7 DB1 P6 0 P6 7 P6 0 P6 6 P6 1 P6 7 P8 0 P8 3 P8 0 P...

Страница 23: ...MCB517AC Evaluation Board User s Guide 17 Schematics...

Страница 24: ...18 Chapter 3 Hardware...

Страница 25: ...MCB517AC Evaluation Board User s Guide 19...

Страница 26: ...20 Chapter 3 Hardware...

Страница 27: ...MCB517AC Evaluation Board User s Guide 21 Printed Board Assembly...

Страница 28: ...anking Decoder REVISION 1 0 AUTHOR Hans Schneebauer COMPANY Keil Elektonik GmbH DATE 10 20 96 CHIP IC13 PALCE20V8 PIN Declarations PIN 2 4 P6 5 7 COMBINATORIAL INPUT PIN 5 PSEN COMBINATORIAL INPUT PIN...

Страница 29: ...IF A15 THEN BEGIN A_R 15 P6 5 A_R 16 0 A_R 17 0 A_R17 0 END ELSE BEGIN A_R 15 C_ACCESS P6 5 A_R 16 1 A_R 17 1 A_R17 1 END END 2 BEGIN 3 Banks 32KB RAM A_P 15 1 Monitor with banking IF A15 THEN BEGIN...

Страница 30: ...th a 2MBit 8 Eprom A_P 15 A15 P6 5 A_P 16 A15 P6 5 P6 6 A15 P6 5 P6 6 A_P 17 A15 P6 5 P6 6 A15 P6 7 A_R 15 A15 A_R 16 0 A_R 17 0 A_R17 0 END END END This following lists the PAL equations for the 20V8...

Страница 31: ...13 14 S 3 4 IF MON_RUN THEN BEGIN MON_RUN RSTOUT CS_EPROM A 15 A 14 A 13 A 12 A 11 e800 efff A 15 A 14 A 13 A 12 f000 ffff CS_RAM A 15 A 14 A 13 A 12 A 11 e800 efff A 15 A 14 A 13 A 12 f000 ffff END E...

Страница 32: ...26 Chapter 3 Hardware...

Страница 33: ...07FFFH COM0 9600 bps banked Monitor without Flash LED s 08800H 09FFFH COM 1 9600 bps banked Monitor without Flash LED s 0A800H 0BFFFH COM1 28800 bps banked Monitor without Flash LED s 0C800H 0DFFFH C...

Страница 34: ......

Страница 35: ...00 This is the same address as if you do not use a monitor program This chapter describes everything you need to know to write programs for the MCB517AC evaluation board Monitor Memory Map The MCB517A...

Страница 36: ...ments 2 Monitor 51 typically requires 256 bytes of external memory 0E700h 0E7FFh Only when you enable Record trace in the dScope Commands pull down menu 5 KB additional memory is required to hold the...

Страница 37: ...Fh in bank 5 Only when you enable Record trace in the dScope Commands pull down menu 5 25 KB additional memory is required to hold the trace information 3 The 2Kb on chip XRAM is available only with a...

Страница 38: ...able code and constant segments of the user application above 100H Note the only difference between writing programs for the Monitor 51 compared to other user applications is the RESERVE directive for...

Страница 39: ...unsigned char j LED var while 1 Loop forever for j 0x01 j 0x80 j 1 Blink LED 0 1 2 3 4 5 6 7 P4 j Output to LED Port for i 0 i 10000 i Delay for 1000 Counts wait call wait function for j 0x80 j 0x01 j...

Страница 40: ...ce file n Create the BLINKY project file n Include BLINKY C in the project n Set the C51 compiler options for the project n Set the L51 linker options for the project n Set the path specifications for...

Страница 41: ...fter you enter it Select the Save As command from the File menu and Vision displays the Save As dialog box shown below To save the program as BLINKY C enter BLINKY C in the File Name text box at the t...

Страница 42: ...the Project menu Vision displays the dialog box shown below Enter the name for the project in the File Name text box This example uses BLINKY PRJ NOTE You should always use PRJ as the file extension...

Страница 43: ...to set for the BLINKY example are Include debug information and Include extended debug information for Code generation These controls are shown in the following figure NOTE In any of the option dialog...

Страница 44: ...hspecs command in the Options menu You may specify the path to BIN directory the INC directory and the LIB directory Additionally you may specify a temporary directory for the compiler and linker to u...

Страница 45: ...re ready to begin debugging the BLINKY program Using dScope to Debug the BLINKY Program To load the BLINKY in the MCB517AC evaluation board using dScope you need to perform the following steps n Load...

Страница 46: ...dScope starts a screen similar to the following displays To load the MON51 DLL CPU driver type the following in the command window load mon51 dll This is shown in the following figure Command Window...

Страница 47: ...ud You must determine which COM port of your PC you are using Next you should configure the CPU driver to enable serial breaks To do this select the Configuration command from the Peripherals menu dSc...

Страница 48: ...side of the module window As you step through the program you should see the LEDs on the MCB517AC changing When you are ready to exit dScope click on the Stop button in the module window and select t...

Страница 49: ...char BRP unsigned char RR1 unsigned char RR2 unsigned char RIM1 unsigned char RIM2 unsigned char TRS1 unsigned char TRS2 unsigned char IMSK unsigned char dummy1 5 unsigned char MOD unsigned char INT u...

Страница 50: ...se the following command lines to compile and link the external CAN example program or set up a project with Vision which does the same The options are the same as for the BLINKY example C51 CANPORT C...

Страница 51: ...ern void func3 void extern void func4 void extern void func5 void void main void P4 0 switch off all LED s while 1 func0 call a function in bank 0 func1 call a function in bank 1 func2 call a function...

Страница 52: ...switch LED off BANK1 C Copyright 1997 KEIL Software Inc include reg517 h extern void func2 void void func1 void P4 0x02 switch LED on func2 FUNCTION IN BANK 1 CALLS A FUNCTION IN BANK 2 P4 0x02 switc...

Страница 53: ...N IN BANK 3 CALLS A FUNCTION IN BANK 4 P4 0x08 switch LED off BANK4 C Copyright 1997 KEIL Software Inc include reg517 h extern void func5 void void func4 void P4 0x10 switch LED on func5 FUNCTION IN B...

Страница 54: ...a non banked application you have to perform the following steps n Set the BL51 linker options for a banked project n Set the make options for a banked project n Set up a project for a banked applica...

Страница 55: ...ber 0 for module BANK0 C bank number 1 for module BANK1 C and so on After building the project you can load it into dScope for Windows or you can program an EPROM by using the 6 generated HEX files Pl...

Страница 56: ...ith MON51 you have to use dScope for Windows in this case MON51 Terminal Program The MON51 terminal program communicates with the 8051 monitor using one of your PC s serial ports MON51 lets you n Disp...

Страница 57: ...lled Hardware interrupts are not used You may use N as an abbreviation for NOINT BAUDRATE n Specifies the baud rate to use If this option is omitted MON51 defaults to 9600 baud The value n specifies t...

Страница 58: ...turns to DOS For example EXIT F1 Exit MON51 and Return to DOS When you enter F1 or Alt 1 MON51 responds with the following prompt EXIT MON51 y or n Enter Y to exit MON51 close all files and return to...

Страница 59: ...ing screen changes If you enter the name of a file that already exists MON51 responds with the following prompt Overwrite existing file y or n Enter Y to overwrite the file HELP Display the Help Menu...

Страница 60: ...ings 5 DIP Switches 6 Document conventions iv E Example Program Code Banking 43 External CAN 41 FLASH 31 Exit Command 50 External CAN Example Program 41 F F1 Command 50 F2 Command 50 F3 Command 51 FLA...

Страница 61: ...2 PE Soff 8 Power Supply Circuitry 12 Printed Board Assembly 21 Programming 27 Prototyping Area 15 Push Button 13 S S_CAN DIP Switch 6 S1 DIP Switch 7 S2 DIP Switch 7 S3 DIP Switch 6 S4 DIP Switch 6 S...

Отзывы: