Ref Prayog51 Mannual

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ref Prayog51 Mannual as PDF for free.

More details

  • Words: 5,068
  • Pages: 42
78 VLSI Design & Research Centre Department of Electronic Science University of Pune Pune –411007.

PRAYOG51 Technical Documentation

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

1

Index Preface ……………………………………………………………………………. 4 Chapter 1 Introduction …………………………………………………………..7 1.1 About the Prayog51 Board 1.2 Prayog51 Architecture 1.3 Kit contents 1.3.1 Hardware 1.3.2

Software and Documentation

1.4 System Requirements Chapter 2 Hardware Description ……………………………………………….15 2.1 The Philips 89C51RD2 Microcontroller 2.2 Reset Circuit 2.3 Serial port Interface 2.4 LEDs 2.4.1 Surface mounted LEDs as I/P status 2.4.2 Surface mounted LEDs as O/P 2.4.3 Power indicator LED 2.4.4 A programming mode indicator LED 2.4.5 4 Seven segment LED display 2.4.6 4 bit LCD Interface 2.5 ADC Interface 2.6 DAC Interface 2.7 Relay Interface 2.8 RTC and I2C bus Interface 2.9 Serial EEPROM Interface 2.10 4X4 Keypad Interface 2.11 PS2 Interface

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

2

2.12 Stepper Motor Interface 2.13 Optoisolator Interface Chapter 3 Connector Details ……………………………………………………28 3.1 CN1 Connector 3.2 CN2 Connector 3.3 CN3 Connector 3.4 CN4 Connector 3.5 CN6 Connector 3.6 CN7 Connector 3.7 CN8,CN9,CN10,CN11 Connectors 3.8 CN12 Connector 3.9 CN13 Connector 3.10CN14 Connector 3.11 BR1 Connector 3.12BR2,BR3,BR4 Connectors 3.13BR5,BR6,BR7 Connectors 3.14BR8 Connector 3.15BR9,BR10,BR11 Connectors 3.16BR12 Connector 3.17 J3,J4 Jumpers Chapter 4 How to Use the Board ……………………………………………….33 4.1 Steps to Download Program 4.2 Precautions

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

3

Preface This preface introduces the Prayog51 board and its reference documentation. About this document This document describes how to set up and use the Prayog51 kit. It also gives the detailed information about the connectors and the interfaces made on the board. Intended audience This document has been written for software engineers, hardware engineers, and students to enable you to gain experience with 8051 And interface variant peripheral programming techniques. Using this manual This document is organized into the following chapters: Chapter 1 Introduction Read this chapter for an introduction to the Prayog51 board. This chapter overviews the architecture of the board and identifies the main components. Chapter 2 Hardware Description This chapter gives a detailed description of the onboard hardware. Chapter 3 Connector Details

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

4

This chapter gives detailed information about the connectors and its use. Chapter 4 How to use this board Read this chapter for a description of the actual downloading user program into kit and checking the result of the program Conventions used in this manual: The following abbreviations used in this manual are: VCC = +5V GND = Ground LED = Light Emitting Diode NC

= In case of connector, take its meaning as Not Connected and for relay contact take it as Normally Close

NO

= Normally Open

Tables used in this manual: Table 1.1

IC numbers and description

Table 1.2

Connector number and Description

Table 1.3

Memory Map – Addresses of the ICs

Table 1.4

Switches used & Description

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

5

Figures in this manual: Fig 1.1 The layout of the Prayog51 Board Fig 1.2 Architecture of Prayog51 Board Fig 2.1 Block Diagram of 89C51 Fig 2.2 Reset Circuit Fig 2.3 Serial Port Interface Fig 2.4 LEDs connected with DIP switches as input Fig 2.5 LEDs connected to indicate the output Fig 2.6 Seven Segment Display interfacing Fig 2.7 LCD Interface Fig 2.8 ADC Interface Fig 2.9 DAC Interface Fig 2.10 Relay Interface Fig 2.11 RTC Interface Fig 2.12 Serial EEPROM Interface

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

6

Fig 2.13 4X4 Keypad Interface Fig 2.14 PS/2 Interface Fig 2.15 Stepper Motor Interface Fig 2.16 Opto Isolator Interface Fig 4.1 Basic set-up diagram

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

7

Chapter 1

Introduction This chapter introduces the Prayog51 board. It contains the following sections: • About the Prayog51 board • Prayog51 architecture • Kit contents • System requirements • Precautions 1.1 ABOUT THE PRAYOG51 BOARD:

This is a general-purpose board designed as a development tool; this board has a facility to download HEX file into the on-chip flash code memory of the 89C51RD2 micro-controller, without the need of removing the chip from the socket. It is strongly recommended to read this manual carefully before you start using the Prayog51. This manual describes how to use this board, how different options can be used, by changing jumper settings and so on. Figure 1.1 shows the layout of the Prayog51 board is shown on the next page:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

8

Fig.1-1 Layout of the Prayog51 board C N 1

P1 CN6 SW 1

CN7

SW 3 U12 C N 5

K1

U7

U14 U13

U9

U3 U15

CN8

RL1 RL2

CN9 C

RL3

SW 2

Prayog51 ARCHITECTURE:

C N 2

U4

C N 3

U5

C N 4

U6

U8

C

Rl4

U10 Prayog51 board contains the following major components: U16 • Philips 89c51RD2 micro controller @ 12 U21 MHz U28 • 64KB on chip flash EPROM DP1 • 9-pin D-type RS232 connectors • Reset and power on-off push buttons • 8 user-programmable LEDs and 4 seven-segment LED U22 display • 8 LEDs for input status of DIP U11 switch • 16X2 lines text LCD U23 U24 U27 • 4X4 membrane type keypad • 8 user input DIP switch U25 • 8 channel ADC with amplifying facility of analog input. U26 • 8 bit DAC with amplifier • 4 on board relays for heavy load

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

U17 U18

C N 1 2

U19 U20

CN13

CN 14

9

Table1.1 IC numbers and description Nameofofthe the Name Component component K1 P1

Description Description 4X4 Power keypadsupply connected to V,+12 Microcontroller for +5 V, -12 V

U3

P89C51 40 DIP socket Microcontroller

U4

AT 24512Serial EEPROM

U5

DS1307 8 DIP socket Real Time Clock

U6

MAX232 16 DIP

U7

74HC373 20 DIP IC

U8

74HC138 16 DIP 3 to 8 Decoder IC

U9,U10,U11

82C55 40 DIP PPI

U12

ULN 2803 18 DIP Current Booster IC

U13

74HC138 16 DIP 3 to 8 Decoder IC

U14

7404 14 DIP Hex Inverter IC

U15

ULN 2803 18 DIP Current Booster IC

U16

ULN 2803 18 DIP Current Booster IC

U17,U18,U19,U20

6DIP Optoisolater IC

U21,U22

ULN 2803 18 DIP Current Booster

U23,U24

LM 324 14 DIP Quad Op-Amp

U25

ADC 0809 28 DIP Analog to Digital Converter IC

U26

DAC 0808 16 DIP Digital to Analog Converter IC

U27

741 8 DIP Op-amp Ic

U28

HEX Buffer

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

10

Table1.2 Connector number and Description

Name of the Connector

Description

CN1

2 pin Power supply connector

CN2

6 pin PS2 connector

CN3

9 pin serial cable connector

CN4

10 pin analog input connector

CN5

8 pin connector

CN6

10 pin LCD connector

CN7

12 pin Seven Segment Display connector

CN8

3 pin Connector – output of relay

CN9

3 pin connector

CN10

3 pin connector

CN11

3 pin connector

CN12

6 pin connector – output of optoisolater

CN13

6 pin connector for stepper motor

CN14

2 pin connector output of DAC

Table 1.3 Memory map– Addresses of the ICs

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

11

IC number

U9

U10

U11

Memory address PORT A

0FC0C

PORT B

0FC0D

PORT C CWR

0FC0E 0FC0F

PORT A PORT B PORT C CWR

0FE0C 0FE0D 0FE0E 0FE0F

PORT A PORT B PORT C CWR

0FD0C 0FD0D 0FD0E 0FD0F

Table 1.4 Switches used & Description Switch number

Description

SW1

Power ON Switch

SW2

RESET Switch

SW3

Program / Run Mode Switch

NOTE: BEFORE OPERATING THE Program / Run Mode Switch TURN OFF THE POWER.

Fig 1.2 Architecture of Prayog51 Board:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

12

1.2 Prayog51 ARCHITECTURE: Prayog51 board contains the following major components: •

Philips 89c51RD2 microcontroller @ 12 MHz



64KB on chip flash EPROM



9-pin D-type RS232 connectors



reset and power on-off push buttons



8 user-programmable LEDs and 4 seven-segment LED display



8 LEDs for input status of DIP switch



16X2 lines text LCD



4X4 membrane type keypad



8 user input DIP switch



8 channel ADC with amplifying facility of analog input.



8 bit DAC with amplifier



4 on board relays for heavy load

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

13



On board regulator to supply of +5v, +12 v, -12 v to the board

1.3 KIT CONTENTS:

1.3.1 Hardware: The kit includes the following hardware •

Prayog51 board



9-pin straight-through RS232 serial cable



15V power adapter.

1.3.2 SOFTWARE AND DOCUMENTATION: The kit includes the following CD-ROMs: Prayog51 Tools and Documentation containing: -

Example code specific to the Prayog51 board

-

Documentation, including this manual and the data sheets of microcontroller, PPI, ADC, DAC etc.

-

Keil software Evaluation Version containing a fully functional

-

Evaluation copy of the Keil software. It runs on

Microsoft Windows 95, 98, 2000, and NT 4.0. It includes the following software: - C51 cross compiler - Assembler - Linker/locator - Project manager - C libraries - Example programs. 1.4 System requirements:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

14



IBM PC or compatible, with Intel Pentium class processor or higher.



CD ROM Drive(for download example program and for installation of Keil software)



PS/2 mouse or two serial port (i.e. one for mouse and one for serial communication)

Chapter 2

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

15

Hardware Description This chapter provides hardware and functional description of the Prayog51 board. It contains the following sections: 

Philips 89C51RD2 micro controller



Memory mapped I/Os



Reset circuit



Serial ports



Dipswitches



LCD



ADC



DAC



RTC



EEPROM



KEYPAD



RELAY



PS/2 keyboard



Power supply.

2.1 The Philips 89C51RD2 micro controller:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

16

FEATURES: •

80C51 Central Processing Unit



On-chip FLASH Program Memory with In-System Programming (ISP) capability



Boot ROM contains low level FLASH programming routines and a default serial loader



Speed up to 33MHz



Full static operation



RAM expandable externally to 64K bytes



4 level priority interrupt



7 interrupt sources, depending on device



Four 8-bit I/O ports



Full-duplex enhanced UART – Framing error detection – Automatic address recognition



Power control modes – Clock can be stopped and resumed – Idle mode – Power down mode



Programmable clock out



Second DPTR register



Asynchronous port reset



Low EMI (inhibit ALE)



Watchdog timer

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

17

Fig2.1 Block Diagram of 89C51

DESCRIPTION The 89C51RD2 devices contain a non-volatile FLASH program memory (up to 64K bytes in the 89C51RD2) that is both parallel programmable and Serial In-System Programmable. The fig 2.1 shows the block diagram of 89C51.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

18

In-System Programming allows devices to alter their own program memory, in the actual end product, under software control. This opens up a range of applications that can include the ability to field update the application firmware. A default serial loader (boot loader) program in ROM allows InSystem serial programming of the FLASH memory without the need for a loader in the FLASH code. User programs may erase and reprogram the FLASH memory at will through the use of standard routines contained in ROM.This is Single-Chip 8-Bit Micro controllers manufactured in advanced CMOS process and is derivatives of the 80C51 micro controller family. It has the same instruction set as the 8051

2.2 RESET CIRCUIT:

Fig 2.2 Reset Circuit Pressing SW2 enables you to stop and take control of micro controller. Whenever the user is stuck up with the software downloaded into it, apply reset to come out of it. Fig 2.2 shows the Reset Circuit required for the microcontroller.

2.3 SERIAL PORT INTERFACE:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

19

Serial port is used to communicate with PC as well as to download application program into on-chip flash.

Fig 2.3 serial port interface Figure 2.3 shows serial transceivers used to convert the 5V logic level of the micro controller to the RS-232 line levels required at the DB9 serial port connector (CN3). An example of serial communication is given along with this manual. This example uses the required registers of controller to establish the required baud rate. 2.4 LEDs: There are 5 LED circuits on the Prayog51 board. o 8 surface mounted LEDs used as status of DIP switch o 8 surfaces mounted LEDs used as output. o 4 seven segment LED display o A power indicator LED o A programming indicator LED 2.4.1 SURFACE MOUNTED LEDS as I/P STATUS:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

20

The eight LEDs are connected to port B of U10 through Dipswitch DIP1. These LEDs are used an indication of the status of the DIP switches. These switches are mainly used as inputs, ‘1s’ or ‘0s’ to the controller. Whenever any switch is ON the corresponding LED is glow.

U10 8255 PB.0 Port B

PB.7

Fig 2.4 LEDs connected with DIP switches as input. An example of this interface is given along with this manual. it uses switches as inputs and Relays as outputs.

2.4 2 Surface mounted LEDs used as output:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

21

The 8 LEDs are used as an indication of output. These LEDs are connected to the Port B of U11. The Port B is used as an output port. A program is written for this interface which is an 8 bit counter. This takes input from the switches to decide the direction of the counter….ie the Up / down counter.

U11 8255 PB.0 Port B PB.7

Fig 2.5 LEDs connected to indicate the output

2.4 .3 power indicator LED To indicate the Power is ON / OFF LD1 is used as an indicator.

2.4.4 A programming mode indicator LED LD2 is used as an indicator for the programming mode. A switch SW3 is provided to change the mode viz: programming mode or running mode. The LED LD2 is ON indicates that the controller is in the programming mode i.e. When switch SW3 is pressed. When the switch is released the controller is in the run mode.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

22

2.4.5 4 seven segment LED display The 4 seven segment displays are interfaced with the Port B of U9. A 3 to 8 decoder is used to select any of the display. For that purpose 3 lines of Port C Lower are used as select lines. Fig 2.6 shows the interfacing. An example of this is given in SSD in the examples. This program illustrates the 4 digit decimal counter.

(a to dp)

P O R T B

PB.0 PB.7 U9 8255 Port C.0

Decoder

Port C.1

U13

Fig 2.6 Seven Segment Display interfacing A 12 Pin connector CN7 is used to connect the 8 data lines to seven segments of the display.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

23

2.4.6

4 bit LCD Interface: The 16 X 2 LCD is interfaced with the controller with the help

of the 8255. it has used Port A.0 – A.3 of U9 as data lines and Port A.4 – A.5 as command lines. The fig 2.7 shows the LCD interface.

HELLO ICIT

U9 8255 PA.0 Data

PA.3

PORT A EN

PA.4

RS

PA.5

Fig 2.7 LCD Interface A 10 Pin connector CN6 is used to connect the 4 data lines and 2 command lines to the display. It is a 4 bit interface used here. An example of this is given along with this manual it displays a message on the display.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

24

2.5

ADC Interface: 0809 8-input channel ADC is connected to U11. The data lines are

connected to Port A, the channel select lines and the start conversion line are connected to Port C and the end of conversion line is connected to Port B. fig 2.8 shows the ADC interface.

U11 8255 P R T A

PA.0 PA.7 Port C Lower Port B.0 PortC.6

ADC 0809 Data Channel Select EOC SOC

Fig 2.8 ADC Interface To illustrate the ADC interface the example program is given along with the manual. This code takes input from the ADC and converts it and displays on the PC with the help of serial communication. A 10 Pin connector CN4 is used where we can connect up to 8 analog inputs.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

25

2.6

DAC Interface: 0808-8 bit DAC is connected to the Port A of U10.

Fig 2.9 shows the DAC Interface.

U10 8255 P O R T A

PA.0 PA.7

DAC 0808 Data In

Fig 2.9 DAC Interface 8 lines of U10 are used as input lines to this DAC. The output is taken out at the 2 Pin connector CN14. NOTE: CURRENTLY THIS PART OF THE BOARD IS NOT IN WORKING CONDITION. IF FURTHER CHANGES ARE MADE INTO THIS CIRCUITRY WILL BE MENTIONED TO YOU.

2.7

Relay Interface:

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

26

4 Relays are connected as output to the Port C of U9. Fig 2.10 shows the relay interface.

U9 8255 RELAY1

Port C Upper

RELAY2 RELAY3 RELAY4

Fig 2.10 Relay Interface The Port C Upper is used as an output port. The example for this is given in the examples. The code is mainly takes the input from the switches and then corresponding Relay is made ON / OFF. Four LEDs, LD 3 to LD6 are used as indicators for the status the corresponding Relay.

2.8

RTC and I2C BUS Interface :

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

27

The RTC U5 is connected to Port 1 of U3. Fig 2.11 shows the RTC and I2C interface. U3 P89C51 RTC 6

SCL P17

U5 5 SDA

P1.6

Fig 2.11 RTC Interface DS1307 is interfaced here to illustrate the I2C bus connection. This uses two lines for the communication. The SDA line is a bidirectional data line which sends and receives data serially. And SCL is a clock line which gets the clock pulses from the master that is the controller in this case.

2.9 Serial EEPROM interface: The serial EEPROM is connected to Port 1 of U3. Fig 2.12 shows the Serial EEPROM interface. U3 P89C51

EEPROM U4

5

SDA

P1.7

6 SCL

P1.6

Fig 2.12 Serial EEPROM Interface

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

28

Serial EEPROM also works protocol same as I2C. It writes and reads memory serially. The example code of this given. This code writes 9 bytes into the memory and also reads back. The

2.9

4X4 Keypad Interface: The 4X4 matrix keypad is connected to Port1 of U3.

Fig 2.13 shows the keypad interface.

1

2

3

M

Row0

U3 P89C51 P1.0

4

5

6

M

R0w1

P1.1

7

8

9

M

Row2

P1.2

0

*

#

ST

Row3

P1.3

Column0

Column3

Port1 P1.4 P1.5 P1.6 P1.7

Fig 2.13 4X4 Keypad Interface The example code is given along with this manual. This code mainly scans the Keypad continuously, detects the pressed and sends it to the PC to display.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

29

2.11 PS2 Interface: Port 3 of U3 is connected to the PS/2 connector. Fig 2.14 PS/2 Interface U3 P89C51

P S / 2

Data P3.4 Clock

P3.2

Fig 2.14 PS/2 Interface A connector CN2 is provided on the board and is interfaced with the controller as shown. As an application of this we can connect a PS/2 Mouse with it or also the Keyboard. 2.12 Stepper Motor Interface: Port C of U10 is kept for the stepper motor interface. Fig 2.15 shows the stepper motor interface. U10 8255

Port C Upper

C N 1 3

Fig 2.15 Stepper Motor Interface. A 6 Pin connector CN13 is used to connect the stepper motor. The sequence of

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

30

data is given to the Port C upper. A current boosting circuit is used on the board only. These data lines are connected to the current boosting circuit and then connected to the connector. We can connect the motor to this using any 6 Pin single wire connector. 2.13 Optoisolater Interface: 4 Opto-isolators as outputs are connected to the Port C of U10. Fig 2.16 shows the opto isolator interface.

U10 8255

Port C Lower

Opto – Isolator

C N 1 2

Fig 2.16 Opto Isolator Interface Opto-isolaters U17 to U20 are used for this. Port C lower of U10 is used as an output port for this. These isolated outputs are taken out with help of a 6 Pin connector CN12.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

31

Chapter 3 Connector details and Jumper Settings In this chapter connectors details and jumper settings are discussed. 3.1 CN1 connector: This is a single a 2 pin connector used to connect power adaptor the board. 3.2 CN2 Connector: This is a 6 pin connector. You can interface IBM compatible PS/2 keyboard to this connector. Here are the pin details of the connector: Pin 1=Data (connect to P3.4/T0 pin of microcontroller) Pin 2=NC Pin 3=GND Pin4=VCC Pin5=Clock (connect to INT0 pin of microcontroller) 3.3 CN3 Connector: This is a DB9 female connector, used for RS232 serial communication with the microcontroller. Pin details are as follows: Pin 2=RS232 RXD (input to microcontroller) Pin 3=RS232 TXD (output of microcontroller) Pin 5= GND All remaining pins are NC

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

32

3.4 CN4 Connector: This is a single line 10 pin connector. It is used to connect analog input to ADC. Before giving analog signal to the channel of ADC. It is conditioned using amplifier. Pin details are: Pin 1 to 8 = 8 Analog inputs Pin 9 = VCC Pin 10 = GND 3.5 CN6 Connector: This is a single line 10 pin connector, designed fo connection to standard text LCD modules. The pin/signal correspondence is designed to be matching with that required by such LCD modules. Pin details: Pin 1= D7 (pin14 of LCD) Pin 2= D6 (pin 13 of LCD) Pin 3= D5 (pin 12 of LCD) Pin 4= D4 (pin 11 of LCD) Pin 5= EN (pin 6 of LCD) Pin 6= RS (pin 4 of LCD) Pin 7=Intensity Control Pin 8=GND Pin 9=VCC Pin 10=NC

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

33

3.6 CN7 Connector: This is a 12 pin single line connector, designed for connection to four 7-segment LED display. Pin 1=Segment A Pin 2=Segment B Pin 3=Segment C Pin 4=Segment D Pin 5=Segment E Pin 6=Segment F Pin 7=Segment G Pin 8=Segment DP Pin 9=Select Digit 1(i.e. rightmost 7-segment display) Pin 10=Select Digit 2 Pin 11=Select Digit 3 Pin 12=Select Digit 4

3.7 CN8,CN9,CN10,CN11: These are 3 pin single line connector used to connect heavy load current and voltage rating should be considered while connecting heavy load. Through this connector heavy load devices can be connected to microcontroller and controlled through Relay. 3.8 CN12 Connector: This a 6 pin connector. Pin 1=5V isolated Pin 2=GND isolated Pin 3 to 6= isolated o/p

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

34

3.9 CN13 Connector: This is 6 pin connector Pin 1 to 4 = Data lines to stepper motor Pin 5 = 5V / 12V depends upon J3 connector. Pin 6 = GND 3.10 CN14 Connector: This is 2 pin connector used as DAC o/p Pin1=DAC o/p after amplifier. Pin 2=GND 3.11 BR1 Connector: This is a single line 8 pin connector. It brings out the pin P1 of microcontroller and connects to 4X4 keypad as well as I2C bus. However; the same connector can be used for general purpose I/O or any other purpose. Pin details are as follows: Pin 1 to 6=connect to P1.0 to P1.5 of microcontroller and keypad Pin 7 to 8=connect to P1.6 to P1.7 of microcontroller, keypad and I2C Bus (P1.6 = SCL, P1.7 = SDA) 3.12 BR2, BR3, BR4: BR2 and BR3 are internally connected.BR3 and BR4 can link through short link. If BR3 and BR4 are short using link linked Address/Data bus can be interfaced to Latch, otherwise this port P0 can be connected as normal port.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

35

3.13 BR5, BR6, BR7: BR5 and BR6 are internally connected.BR6 and BR7 can link through short link. If BR6 and BR7 are shorted using link Port P2 can be used as higher address to interface memory or memory mapped device, otherwise it can be used as normal port P2 of Microcontroller. 3.14 BR8: This is 16 pin connector used as external memory interfacing or memory mapped device interfacing. 3.15 BR9, BR10, BR11: BR9 and BR10 are internally connected.BR10 and BR11 can linked through short link. If BR10 and BR11 are shorted using link ADC channel 0 to 7 can be interfaced to analog input with amplified signal. , otherwise analog signal can be connected directly to channels of ADC through BR11 connector. 3.16 BR12: This is 8 pin dual line connector used as to connect Port B of U11 to LEDs using link (short link) or to connect it for another input or output device. 3.17 J3, J4 Jumpers: J3 is used to provide 5V or 12V to stepper motor. J4 is used as to connect EOC pin of ADC to Port B (i.e B0) of U11

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

36

Chapter 4 HOW TO USE THIS BOARD Fig 4.1 Basic set-up diagram:

4.1 Steps to download the program: The Prayog51 ships with 89c51RD2 which has 64K on-chip flash program memory. Further, this program memory is in system programmable (ISP).The Prayog51 board and its accompanying software SPJTerminal allows the user to download a program (Intel hex file) directly into the microcontroller.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

37

Follow these simple steps to download your program into the microcontroller and run it. 1.

Turn off the power to the Prayog51.

2.

Press the mode selection switch (SW3). It should stay in the pressed down position

3.

Connect Prasyog51 to the serial port of PC (COM1 or COM2 etc) Use the serial communication cable which was supplied with the Prayog51

4.

On the PC, run the software SPJTerminal.This software is included on the CD which is supplied with Prayog51.After running SPJTerminal following window will appear.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

38

5

From the menu select Port / Setting and make the necessary COM port setting. Set Data Bits=8, Stop bits=1, Echo=off, Parity=None. Select desired baud rate and select the COM port to which Prayog51 is connected.

6

From the menu, select File/89C51Rx+/Rx2 ISP This will bring up the ISP window.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

39

7

First select the desired microcontroller (i.e. 89C51RD2) and type the correct oscillator frequency (i.e. 12MHz)

8

Then press the READ button to make sure that serial communication between the PC and Prayog51 is established correctly. If this communication is not working, then you will see an error message. Check the connections and try again.

9

After pressing READ button, the software will read the values of” Status byte” And “Boot Vector”. In order to run your program on the board, the value of “Status byte” must be “00” .If you replaced the microcontroller or if the Status byte is not 00 for any reason, please change the value to00 and then press WRITE button. This will transfer the new Status byte value to the microcontroller.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

40

10

Press the LOAD FILE button and select the. HEX file (Intel HEX format file) of your program. You may choose any of the example programs supplied with the Prayog51 or your own program. Upon selection of the file, the necessary number of program memory blocks will be automatically selected. You can forcibly select or de-select any number of blocks, but recommend not doing so.

11

Press the ERASE button. This will erase the selected blocks of program memory. This may take a few seconds to few minutes. If the erase operation fails for any reason, you will see an error message; otherwise the status-bar (at the top of ISP window) will indicate that chip was successfully erased

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

41

12

After successfully erasing the chip, you may press the PROGRAM button. This will start the downloading of the selected HEX file into the

C. Upon success, the status-

bar of ISP window will indicate so. Then you may close the ISP window. 13

Turn off power to the Mini51. Press the mode selection switch (SW1) once again. Now it should stay in the “up” position. Turn on power to the prayog51 and your program will be run! For example, if you chose the “Hello” example program, it will transmit the string “Hello world” to the serial port; the same string can then be seen on the SPJTerm window.

4.2 Precautions: The Prayog51 board is intended for use within a laboratory or engineering development environment and is supplied with an enclosure. Do not use the board near equipment, which could be sensitive to Electromagnetic emissions (such as medical equipment) or which is a transmitter of electromagnetic emissions. The board must be handled carefully, so as not to subject to Electrostatic Discharge (ESD).As far as possible do not touch any conducting part on the board-including any component or connector pins-as this may damage parts of the board permanently. If you must touch any parts of the board, make sure to discharge yourself to earth. Don’t change the program mode switch whenever the power in ON.

ICIT, VLSI Design and Research Centre, University of Pune. www.icitonline.org

42

Related Documents

Ref Prayog51 Mannual
November 2019 12
Prayog51 Mannual
November 2019 14
Mannual
November 2019 13
Digilock Mannual
November 2019 19
Machinary Mannual
November 2019 15
C++ Mannual
November 2019 14