Professional Documents
Culture Documents
Pin Description:
Pin
Function Name
No
1 Enable pin for Motor 1; active high Enable 1,2
2 Input 1 for Motor 1 Input 1
3 Output 1 for Motor 1 Output 1
4 Ground (0V) Ground
5 Ground (0V) Ground
6 Output 2 for Motor 1 Output 2
7 Input 2 for Motor 1 Input 2
8 Supply voltage for Motors; 9-12V (up to 36V) Vcc 2
9 Enable pin for Motor 2; active high Enable 3,4
10 Input 1 for Motor 1 Input 3
11 Output 1 for Motor 1 Output 3
12 Ground (0V) Ground
13 Ground (0V) Ground
14 Output 2 for Motor 1 Output 4
15 Input2 for Motor 1 Input 4
16 Supply voltage; 5V (up to 36V) Vcc 1
Ultrasonic Ranging Module HC - SR04
Features
Power Supply :+5V DC
Resolution : 0.3 cm
Sensor
Pins:-
VCC: +5VDC
GND: GND
Specification:-
1.Operating Voltage is +12v DC
2.weight is <140g
PIN SPECIFICATIONS:-
Atmega162:-
Pin Diagram:-
Pin Description:
31 GND GROUND
Pin Diagram:-
...................................................................................................................................
ALE/PROG: Address Latch Enable output pulse for latching the low wired low. In the
EPROM devices, this pin also receives the programming supply voltage (VPP) during EPROM
programming.
Pin Functions:-
ALE/PROG: Address Latch Enable output pulse for latching the low byte of the address during
accesses to external memory. ALE is emitted at a constant rate of 1/6 of the oscillator frequency, for
external timing or clocking purposes, even when there are no accesses to external memory. (However,
one ALE pulse is skipped during each access to external Data Memory.) This pin is also the program pulse
input (PROG) during EPROM programming.
PSEN: Program Store Enable is the read strobe to external Program Memory. When the device is
executing out of external Program Memory, PSEN is activated twice each machine cycle (except that two
PSEN activations are skipped during accesses to external Data Memory). PSEN is not activated when the
device is executing out of internal Program Memory.
EA/VPP: When EA is held high the CPU executes out of internal Program Memory (unless the
Program Counter exceeds 0FFFH in the 80C51). Holding EA low forces the CPU to execute out of external
memory regardless of the Program Counter value. In the 80C31, EA must be externally wired low. In the
EPROM devices, this pin also receives the programming supply voltage (VPP) during EPROM
programming.
Port 0: Port 0 is an 8-bit open drain bidirectional port. As an open drain output port, it can sink eight
LS TTL loads. Port 0 pins that have 1s written to them float, and in that state will function as high
impedance inputs. Port 0 is also the multiplexed low-order address and data bus during accesses to
external memory. In this application it uses strong internal pullups when emitting 1s. Port 0 emits code
bytes during program verification. In this application, external pullups are required.
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pullups. Port 1 pins that have 1s written to
them are pulled high by the internal pullups, and in that state can be used as inputs. As inputs, port 1
pins that are externally being pulled low will source current because of the internal pullups.
Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pullups. Port 2 emits the high-order
address byte during accesses to external memory that use 16-bit addresses. In this application, it uses
the strong internal pullups when emitting 1s.
Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pullups. It also serves the functions of
various special features of the 80C51 Family as follows:
8051 Microcontroller:-
The pin diagram of 8051 Microcontroller looks as follows
Pin Description:-
Pins 1 to 8 These pins are known as Port 1. This port doesnt serve any other
functions. It is internally pulled up, bi-directional I/O port.
Pin 9 It is a RESET pin, which is used to reset the microcontroller to its initial
values.
Pins 10 to 17 These pins are known as Port 3. This port serves some functions
like interrupts, timer input, control signals, serial communication signals RxD and
TxD, etc.
Pins 18 & 19 These pins are used for interfacing an external crystal to get the
system clock.
Pins 21 to 28 These pins are known as Port 2. It serves as I/O port. Higher
order address bus signals are also multiplexed using this port.
Pin 29 This is PSEN pin which stands for Program Store Enable. It is used to
read a signal from the external program memory.
Pin 30 This is EA pin which stands for External Access input. It is used to
enable/disable the external memory interfacing.
Pin 31 This is ALE pin which stands for Address Latch Enable. It is used to
demultiplex the address-data signal of port.
Pins 32 to 39 These pins are known as Port 0. It serves as I/O port. Lower
order address and data bus signals are multiplexed using this port.