Professional Documents
Culture Documents
PRAYOG51
Technical Documentation
Preface ……………………………………………………………………………. 4
This preface introduces the Prayog51 board and its reference documentation.
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
Chapter 1 Introduction
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
Introduction
This chapter introduces the Prayog51 board.
It contains the following sections:
• About the Prayog51 board
• Prayog51 architecture
• Kit contents
• System requirements
• Precautions
Nameofofthe
Name the Description
Description
Component
component
K1
P1 4X4 Power
keypadsupply
connected to V,+12
for +5 Microcontroller
V, -12 V
U4 AT 24512Serial EEPROM
U6 MAX232 16 DIP
U7 74HC373 20 DIP IC
PORT A 0FC0C
U9
PORT B 0FC0D
PORT C 0FC0E
CWR 0FC0F
PORT A 0FE0C
U10 PORT B 0FE0D
PORT C 0FE0E
CWR 0FE0F
PORT A 0FD0C
U11 PORT B 0FD0D
PORT C 0FD0E
CWR 0FD0F
NOTE: BEFORE OPERATING THE Program / Run Mode Switch TURN OFF
THE POWER.
1.3.1 Hardware:
The kit includes the following hardware
• Prayog51 board
• 9-pin straight-through RS232 serial cable
• 15V power adapter.
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:
Chapter 2
DESCRIPTION
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.
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:
U10
8255
PB.0
Port B
PB.7
An example of this interface is given along with this manual. it uses switches as
inputs and Relays as outputs.
U11
8255
PB.0
Port B
PB.7
P (a to dp)
O PB.0
R PB.7
T
B
U9
8255
A 12 Pin connector CN7 is used to connect the 8 data lines to seven segments of
the display.
HELLO ICIT
U9
8255
PA.0
Data
PA.3
PORT A
EN PA.4
RS PA.5
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.
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 ADC
0809
P PA.0 Data
R PA.7
T
A Port C Channel
Lower Select
PortC.6
SOC
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.
U10
8255 DAC
0808
P
O PA.0 Data In
R PA.7
T
A
8 lines of U10 are used as input lines to this DAC. The output is taken out at the
2 Pin connector CN14.
U9
8255
RELAY1
RELAY2
Port C
Upper
RELAY3
RELAY4
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.
U3
P89C51
RTC SCL
6 P17
U5
5 P1.6
SDA
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.
EEPROM U3
P89C51
SDA
U4 5
P1.7
6
P1.6
SCL
U3
P89C51
1 2 3 M Row0 P1.0
4 5 6 M R0w1 P1.1
7 8 9 M Row2 P1.2
0 * # ST Row3 P1.3
Port1
Column0
P1.4
P1.5
P1.6
Column3 P1.7
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.
U3
P P89C51
S Data
/
2 P3.4
Clock
P3.2
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.
U10
8255
C
N
Port C 1
Upper 3
A 6 Pin connector CN13 is used to connect the stepper motor. The sequence of
U10
8255
C
Opto – N
Port C
Isolator 1
Lower
2
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.
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
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.14 BR8:
This is 16 pin connector used as external memory interfacing
or memory mapped device interfacing.
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.
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.
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
4.2 Precautions: