Traffic Density Control Report
Traffic Density Control Report
Traffic Density Control Report
Chapter-1
INTRODUCTION
The project uses simple electronic components such as LED as TRAFFIC LIGHT
indicator, a seven segment display and a MICROCONTROLLER for auto change
of signal after a pre-specified time interval.
Figure shows the drawing of the 4-way junction, where each way has its traffic light and
counter
Microcontroller PIC 16F877A is the brain of the project which initiates the traffic
signal at a junction.
The sequence of altering the LEDs according to their color is as shown in the figure
below: Green-Yellow-Red-Green. Twelve LEDs are used; three to each traffic light.
The LEDs are automatically on and off by making the corresponding port pin of the
micro controller high. Furthermore associated is the right turn green lights which are on
for the first 10 seconds of the total green light time.
7-segment LED displays are used to show the current count value. Since all of the
traffic lights are working simultaneously, each one is to display a different digit
than the other. When a traffic light is tuned green, its corresponding 7-segment
displays start counting down from a specific value and decrements until zero is
reached. After this the counter starts by a new count value at the moment the
yellow light turns on.
When the red light turns on after the yellow took its time, the count continues to
decrement until reaching zero. This means that the same 7-segments, on each
traffic light, are used to display the count when cars are allowed and not allowed
to pass. In terms of counting, the yellow and red are considered one set while the
green is another set. The circuit board designed supports in-circuit serial
programming (ICSP) for the PIC. This support eases the way to the designer to
program the microcontroller without the need to plug the microcontroller in and
out repeatedly.
START
INITIALIZE
THE TIMERS
LOAD DELAY
VALUE IN TIMER
AND
START THE TIMER
UPDATE THE
SEVEN SEGMENT
DISPLAY
YES
IS DELAY
COMPLETED?
>
NO
Chapter-2
PIC MICROCONTROLLERS
2.1 INTRODUCTION
The term PIC stands for Peripheral Interface Controller .It is the brain child of Microchip
Technology, USA. Originally this was developed as a supporting device for PDP
computers to control its peripheral devices, and therefore named as PIC, Peripheral
Interface Controller. They have coined this name to identify their single chip micro
controllers. These 8-bit micro controllers have become very important now -a -days in
industrial automation and embedded applications etc.
The PIC 16F8XX Microcontrollers are basically RISC microcontrollers with very
small instruction set of only 35 instructions and a two-stage pipeline concept fetch
and execution of instructions. As a result, all instructions execute in a single cycle
except for program branches.
There are four devices in 16F8xx family, PIC16F873, PIC16F874, PIC16F876 and
PIC16F877.The PIC16F876/873 devices come in 28-pin packages and the
PIC16F877/874 devices come in 40-pin packages. The Parallel Slave Port is not
implemented on the 28-pin devices.
PIC 16F877 is a 40-pin 8-Bit CMOS FLASH Microcontroller. The core architecture
is high-performance RISC CPU. Since it follows the RISC architecture, all single
cycle instructions take only one instruction cycle except for program branches which
take two cycles.
16F877 comes with 3 operating speeds with 4, 8, or 20 MHz clock input. Since each
instruction cycle takes four operating clock cycles, each instruction takes 0.2 s
when 20MHz oscillator is used.
It has two types of internal memories .One is program memory and the other is data
memory. Program memory is provided by 8K words (or 8K*14 bits) of FLASH
Memory, and data memory has two sources. One type of data memory is a 368-byte
RAM (random access memory) and the other is256-byte EEPROM (Electrically
erasable programmable ROM).
The core features include interrupt up to 14 sources,
power saving SLEEP mode,
a single 5V supply and
In-Circuit Serial Programming (ICSP) capability.
2.2 ARCHITECTURE
10
a) Program Memory
The PIC 16F8XX has 4k x14 program memory space (0000H-0FFFH).It has a 13 bit
Program counter(PC) to access any address (213=4k). This PIC family uses 13-bit
program counter allowing the controllers to an 8k-program memory without changing
the CPU structure.
11
PORT B:
Port B is an 8-bit wide, bi-directional port. Four of the PORT B pins RB7 RB4
have an interrupt-on- change feature. Only the pins configured as inputs can cause this
interrupt to occur.
PORT C:
Port C is an 8-bit wide, bidirectional port. Bits of the TRISC Register determine the
function of its pins. Similar to other ports, a logic one 1 in the TRISC Register
configures the appropriate port pin as an input.
PORT D:
Port D is an 8-bit wide bi-directional port. In addition to I/O port, Port D also works
as 8-bit parallel slave port or microprocessor port. When control bit PSPMODE
(TRISE:4) is set.
PORT E:
It is a 3-bit bi-directional port. Port E bits are multiplexed with analog inputs of
ADC and they serve as control signals (RD, WR, CS) for parallel slave port mode of
operation.
12
13
PORTA is a 6-bit wide, bidirectional port. The corresponding data direction register is TRISA.
Setting a TRISA bit (= 1) will make the corresponding PORTA pin an input. Clearing a TRISA
bit
(= 0) will make the corresponding PORTA pin an output.
Other PORTA pins are multiplexed with analog inputs and the analog VREF input for
both the A/D converters and the comparators. The operation of each pin is selected by
clearing/setting the appropriate control bits in the ADCON1 and/or CMCON registers.
14
PORTE has three pins (RE0/RD/AN5, RE1/WR/AN6 and RE2/CS/AN7) which are
individually configurable as inputs or outputs. These pins have Schmitt Trigger input
buffers. The PORTE pins become the I/O control inputs for the microprocessor port
when bit PSPMODE (TRISE<4>) is set. In this mode, the user must make certain that
the
TRISE<2:0> bits are set and that the pins are configured as digital inputs. Also, ensure
that ADCON1 is configured for digital I/O. In this mode, the input buffers are TTL.
ADVANTAGES
The PIC architecture have these advantages:
Small instruction set to learn
RISC architecture
Built in oscillator with selectable speeds
Easy entry level, in circuit programming plus in circuit debugging PIC Kit units
available for less than $50
Inexpensive microcontrollers
Wide range of interfaces including I2C, SPI, USB, USART, A/D, programmable
comparators, PWM, LIN, CAN, PSP, and Ethernet.
LIMITATIONS
The PIC architectures have these limitations:
One accumulator
Register-bank switching is required to access the entire RAM of many devices
Operations and registers are not orthogonal; some instructions can address RAM
and/or immediate constants, while others can only use the accumulator
Stack limitations:
The hardware call stack is not addressable, so preemptive task, switching cannot
be implemented.
Software-implemented stacks are not efficient, so it is difficult to generate
reentrant code and support local variables.
15
Chapter-3
HARDWARE DEVELOPMENT TOOLS
Numerous hardware development tools are available for the PIC18 microcontrollers.
Some of these products are manufactured by Microchip Inc., and some by third-party
companies. The most ones are:
Development boards
Device programmers
In-circuit debuggers
In-circuit emulators
Breadboards
Separate programmer/debugger unit which plugs into the board carrying the chip to
be programmed.
The PICkit 2 is open to the public, including its hardware schematic, firmware
source code and application programs.
Programmer-To-Go: Set up a PICkit 2 to program a device without the need for a
PC.
128K byte memory.
Easy to use with MIKROC IDE and other development environments.
Includes the UART Tool and Logic Tool microcontroller development utilities.
16
The PICkit 2 Programmer application allows you to program all supported devices listed in the
PICkit 2 Readme file.
MENU BAR
The menu bar selects various functions of the PICkit 2 Programmer application. A summary of
the functions are:
File
Import Hex Import a hex file for programming. The hex file format INHX32 is
supported.
Export Hex Export a hex file read from a device. The hex file is created in the INHX32
format.
File History Up to the last four hex files opened are displayed with their filepath.
These recent hex files may be selected to quickly import them. Note that the file history
will initially be blank on a new install action until a hex file is imported.
Exit Exit the program.
17
Device Family
Select a device family to search for a connected device in that family. Selecting the
device family of the current part will clear all device data. Some families which cannot
be auto-detected (such as Baseline) will bring up a drop down box from which supported
devices may be selected.
Programmer
Read Device- Reads program memory, data EEPROM memory, ID locations and Configuration
bits.
Write Device- Writes program memory, data EEPROM memory, ID locations and Configuration
bits.
Verify- Verifies program memory, data EEPROM memory, ID locations and Configuration bits
read from the target MCU against the code stored in the programming application.
Erase- Performs a Bulk Erase of the target MCU. OSCCAL and band gap values are preserved
on parts with these features.
Blank Check- Performs a Blank Check of program memory, data EEPROM memory, ID locations
and Configuration bits.
Verify on Write- When checked, the device will be immediately verified after programming on a
Write (recommended). When unchecked, the device will be programmed but not verified on a
Write.
Hold Device in Reset- When checked, the MCLR (VPP) pin is held low (asserted). When
unchecked, the pin is released (tri-stated), allowing an external pull-up to bring the device out of
Reset.
Write on PICkit Button- When checked, a Write operation will be initiated by pressing the PICkit 2
push button.
Tools
Enable Code Protect Enables code protection features of the microcontroller on future
Write operations.
Set OSCCAL- Allows the OSCCAL value to be changed for devices where it is stored in
the last location of Program Memory.
18
19
FIGURE-10 IC 7805
Features:
IC 7805 is a 5V Voltage Regulator that restricts the voltage output to 5V and draws
5V regulated power supply.
It comes with provision to add heat sink. The maximum value for input to the
voltage regulator is 35V.
It can provide a constant steady voltage flow of 5V for higher voltage input till the
threshold limit of 35V.
If the voltage is near to 7.5V then it does not produce any heat and hence no need
for heat sink. If the voltage input is more, then excess electricity is liberated as heat from
7805.
It regulates a steady output of 5V if the input voltage is in rage of 7.2V to 35V.
Hence to avoid power loss try to maintain the input to 7.2V.
20
It is a 10-pin display device. The pins are: a, b, c, d, e, f, g, DP (dot) and com. The
pins labeled as com are internally connected to each other.
The digits displayed in every 7-segment range from 0 to 9. Since the required
numbers to display are more than 9, two 7-segment LED displays (left and right) were
used for every traffic light and this is why 4 displays were used in this project (a pair for
each opposite lanes). The data pins (a, b, c, d, e, f and g) for the left and right displays in
every strip board are connected to each other because they are multiplexed.
Multiplexing is made by using a 3 to 8 decoder. The IC (74LS47) is used to select
which 7 segment to show the digit. This chip has 4 input pins labeled A, B and C and 8
output pins labeled. The input pins are connected to the microcontroller for it to select
which 7 segment to light up.
gfedcba
0x3F
0x06
0x5B
0x4F
0x66
0x6D
0x7D
0x07
0x7F
0x6F
abcdefg
0x7E
0x30
0x6D
0x79
0x33
0x5B
0x5F
0x70
0x7F
0x7B
a
on
off
on
on
off
on
on
on
on
on
b
on
on
on
on
on
off
off
on
on
on
c
on
on
off
on
on
on
on
on
on
on
d
on
off
on
on
off
on
on
off
on
on
e
on
off
on
off
off
off
on
off
on
off
f
on
off
off
off
on
on
on
off
on
on
g
off
off
on
on
on
on
on
off
on
on
21
3.1.4 RESISTOR
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. In this circuit 330 ohm and 10 kohm resisters are used.
3.1.5 CAPACITOR
A capacitor (originally known as a condenser) is a passive two-terminal electrical
component used to store energy electrostatically in an electric field. This circuit uses a 2
uF capacitor.
3.1.7 OSCILLATOR
An electronic
oscillator is
an electronic
circuit that
produces
a
repetitive, oscillating electronic signal, often a sine wave or a square wave. Oscillators
convert direct current (DC) from a power supply to an alternating current signal. This
circuit uses a 2 MHz oscillator.
3.1.9 LED
Light emitting diodes (LEDs) are semiconductor light sources. The light emitted
from LEDs varies from visible to infrared and ultraviolet regions. They operate on low
voltage and power. LEDs are one of the most common electronic components and are
mostly used as indicators in circuits. They are also used for luminance and optoelectronic
applications.
Three colors of LED are used in this project. They are:
RED
YELLOW
GREEN
22
23
Open mikroC, go to File, then New for new project or Open for old project.
24
Then go to build to compile the file and create the hex file to be loaded into the
microcontroller.
25
Select the run option to start the debugging process and run the program.
26
27
28
Now, click on microcontroller & load the hex file in its memory.
Now run your project by using the controls in left lower side of window.
29
CONCLUSION
30
FUTURE SCOPE
This project can be enhanced in such a way as to automatically control the signals
depending on the traffic density on the roads using sensors like IR detector/receiver
module extended with automatic turn off when no vehicles are running on any side of
the road which helps in power consumption saving.
31
REFRENCES
[1] John B.Peatman- PIC Microcontroller design, 1st edition: Pearsons Education; 1997
[2] Muhammad Ali Mazidi- PIC Microcontroller and Embedded systems, 3rd edition:
Pearsons Education; 2007
[3] Proteus All-in-One Manual
nd
[4] Iovine John- PIC Microcontroller Project Book, 2 Edition, Singapore: McGraw
Hill 121-123; 2000.
nd
32
APPENDIX A
SOURCE CODE
void main()
{
int i,a,b,c,d;
TRISA=0x00;
TRISB=0x00;
TRISC=0x00;
TRISD=0x00;
TRISE=000;
while(1)
{
a=0x50;
b=0x55;
PORTD=0x00;
PORTB=0x1C;
PORTA=0x21;
PORTE=000;
for(i=1;i<=15;i++)
{
PORTC=a;
a=a--;
delay_ms(100);
if(a==0x0F||a==0x1F||a==0x2F||a==0x3F||a==0x4F||a==0x5F)
{
a=a-6;
}
}
PORTB=0x44;
for(i=1;i<=35;i++)
{
PORTC=a;
PORTD=b;
a=a--;
b=b--;
delay_ms(100);
if(a==0x0F||a==0x1F||a==0x2F||a==0x3F||a==0x4F||a==0x5F)
{
a=a-6;
}
if(b==0x0F||b==0x1F||b==0x2F||b==0x3F||b==0x4F||b==0x5F)
{
AKANKSHA GUPTA, ISHITA GUPTA, R ASHOK KUMAR, ARUN KUMAR
33
b=b-6;
}
}
a=0x05;
PORTB=0x42;
for(i=1;i<=5;i++)
{
PORTC=a;
PORTD=b;
a=a--;
b=b--;
delay_ms(100);
if(a==0x0F||a==0x1F||a==0x2F||a==0x3F||a==0x4F||a==0x5F)
{
a=a-6;
}
if(b==0x0F||b==0x1F||b==0x2F||b==0x3F||b==0x4F||b==0x5F)
{
b=b-6;
}
}
PORTC=0x00;
PORTB=0xC1;
for(i=1;i<=15;i++)
{
PORTD=b;
b=b--;
delay_ms(100);
if(b==0x0F||b==0x1F||b==0x2F||b==0x3F||b==0x4F||b==0x5F)
{
b=b-6;
}
}
PORTB=0x21;
b=0x05;
for(i=1;i<=5;i++)
{
PORTD=b;
b=b--;
delay_ms(100);
if(b==0x0F||b==0x1F||b==0x2F||b==0x3F||b==0x4F||b==0x5F)
{
b=b-6;
}
}
PORTD=0x00;
AKANKSHA GUPTA, ISHITA GUPTA, R ASHOK KUMAR, ARUN KUMAR
34
c=0x50;
d=0x55;
PORTD=0x00;
PORTB=0x11;
PORTA=0x2c;
PORTE=000;
for(i=1;i<=15;i++)
{
PORTC=c;
c=c--;
delay_ms(100);
if(c==0x0F||c==0x1F||c==0x2F||c==0x3F||c==0x4F||c==0x5F)
{
c=c-6;
}
}
PORTA=0x04;
PORTE=100;
for(i=1;i<=35;i++)
{
PORTC=c;
PORTD=d;
c=c--;
d=d--;
delay_ms(100);
if(c==0x0F||c==0x1F||c==0x2F||c==0x3F||c==0x4F||c==0x5F)
{
c=c-6;
}
if(d==0x0F||d==0x1F||d==0x2F||d==0x3F||d==0x4F||d==0x5F)
{
d=d-6;
}
}
c=0x05;
PORTA=0x02;
PORTE=100;
for(i=1;i<=5;i++)
{
PORTC=c;
PORTD=d;
c=c--;
d=d--;
delay_ms(100);
if(c==0x0F||c==0x1F||c==0x2F||c==0x3F||c==0x4F||c==0x5F)
{
AKANKSHA GUPTA, ISHITA GUPTA, R ASHOK KUMAR, ARUN KUMAR
35
c=c-6;
}
if(d==0x0F||d==0x1F||d==0x2F||d==0x3F||d==0x4F||d==0x5F)
{
d=d-6;
}
}
PORTC=0x00;
PORTA=0x01;
PORTE=110;
for(i=1;i<=15;i++)
{
PORTD=d;
d=d--;
delay_ms(100);
if(d==0x0F||d==0x1F||d==0x2F||d==0x3F||d==0x4F||d==0x5F)
{
d=d-6;
}
}
PORTA=0x01;
PORTE=001;
d=0x05;
for(i=1;i<=5;i++)
{
PORTD=d;
d=d--;
delay_ms(100);
if(d==0x0F||d==0x1F||d==0x2F||d==0x3F||d==0x4F||d==0x5F)
{
d=d-6;
}
}
PORTD=0x00;
}
}
36
APPENDIX B
TABLE-2 LIST OF HARDWARE COMPONENTS
COMPONENT
QUANTITY
LED
RED
YELLOW
GREEN
4
4
8
IC 7447
IC 7805
OSCILLATOR(20MHz)
REGISTERS
330 ohm
10 Kilo ohm
10
1
CAPACITOR(22 pf)
DC JACK
37
APPENDIX C
PIC DATASHEET
DEVICE OVERVIEW
This document contains device specific information about the following devices:
PIC16F873A
PIC16F874A
PIC16F876A
PIC16F877A
PIC16F873A/876A devices are available only in 28-pin packages,
PIC16F874A/877A devices are available in 40-pin and 44-pin packages.
while
All devices in the PIC16F87XA family share common architecture with the following
differences:
The PIC16F873A and PIC16F874A have one-half of the total on-chip memory of the
PIC16F876A and PIC16F877A/44-pin devices have five
The 28-pin devices have fourteen interrupts, while the 40/44-pin devices have fifteen
The 28-pin devices have five A/D input channels, while the 40/44-pin devices have eight
The Parallel Slave Port is implemented only on the 40/44-pin devices
38
PIC16F873A
PIC16F874A
PIC16F876A
PIC16F877A
Operating Frequency
DC 20 MHz
DC 20 MHz
DC 20 MHz
DC 20 MHz
POR, BOR
(PWRT, OST)
POR, BOR
(PWRT, OST)
POR, BOR
(PWRT, OST)
POR, BOR (
PWRT, OST )
4K
4K
8K
8K
192
192
368
368
128
128
256
256
Interrupts
14
15
14
15
I/O Ports
Ports A, B, C
Ports A, B, C,
D, E
Ports A, B, C
Ports A, B, C,
D, E
Timers
Capture/Compare/PWM
modules
Serial Communications
Parallel Communications
10-bit Analog-to-Digital
Module
Analog Comparators
Instruction Set
Packages
MSSP,
USART
MSSP,
USART
MSSP,
USART
MSSP,
USART
PSP
PSP
5 input
channels
8 input
channels
5 input
channels
8 input
channels
35 Instructions
35 Instructions
35 Instructions
35 Instructions
28-pin PDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
40-pin PDIP
44-pin PLCC
44-pin TQFP
44-pin QFN
28-pin PDIP
28-pin SOIC
28-pin SSOP
28-pin QFN
39
14
30
QFN
Pin#
32
CLKI
OSC2/CLKO
OSC2
14
15
31
33
Buffer
Type
ST
18
18
MCLR
VPP
I
P
RA0/AN0
RA0
AN0
RA1/AN1
RA1
AN1
RA2/AN2/VREF/CVREF
RA2
AN2
VREFCVREF
RA3/AN3/VREF+
RA3
AN3
VREF+
RA4/T0CKI/C1OUT
RA4
19
I/O
I
4
20
20
I/O
I
21
I/O
I
I
O
22
23
TTL
Digital I/O.
Analog input 0.
TTL
Digital I/O.
Analog input 1.
TTL
Digital I/O.
Analog input 2.
A/D reference voltage (Low) input.
Comparator VREF output.
22
23
I/O
I
I
ST
Digital I/O.
Analog input 3.
A/D reference voltage (High) input.
I/O
TTL
I
O
24
21
T0CKI
C1OUT
RA5/AN4/SS/C2OUT
RA5
AN4
TTL
19
Description
CLKO
MCLR/VPP
I/O/P
Type
24
I/O
I
I
O
Digital I/O.
Analog input 4.
SPI slave select input.
Comparator 2 output.
SS
C2OUT
40
Pin Name
36
Description
RB0/INT
RB0
INT
33
TTL/ST
RB1
34
37
10
I/O
TTL
Digital I/O.
RB2
35
38
10
11
I/O
TTL
Digital I/O.
RB3/PGM
RB3
PGM
36
39
11
12
I/O
I
TTL
RB4
37
41
14
14
I/O
TTL
Digital I/O.
RB5
38
42
15
15
I/O
TTL
Digital I/O.
RB6/PGC
RB6
PGC
39
43
16
16
I/O
I
TTL/ST
Digital I/O.
In-circuit debugger and ICSP
programming clock.
RB7/PGD
RB7
PGD
40
44
17
17
I/O
I/O
TTL/ST
Digital I/O.
In-circuit debugger and ICSP
programming data.
I/O
I
Digital I/O.
External interrupt.
Digital I/O.
Low-voltage ICSP programming
enable pin.
41
Pin Name
Description
RC0/T1OSO/T1CKI
RC0
T1OSO
T1CKI
15
16
32
34
I/O
O
I
ST
Digital I/O.
Timer1 oscillator output.
Timer1 external clock input.
RC1/T1OSI/CCP2
RC1
T1OSI
CCP2
16
18
35
35
I/O
I
I/O
ST
Digital I/O.
Timer1 oscillator input.
Capture2 input, Compare2
output, PWM2 output.
RC2/CCP1
RC2
CCP1
17
19
36
36
I/O
I/O
ST
Digital I/O.
Capture1 input, Compare1
output, PWM1 output.
RC3/SCK/SCL
RC3
SCK
SCL
18
20
37
37
I/O
I/O
ST
Digital I/O.
Synchronous serial clock
input/output for SPI mode.
Synchronous serial clock
input/output for I2C mode.
RC4/SDI/SDA
RC4
SDI
SDA
RC5/SDO
RC5
SDO
RC6/TX/CK
RC6
TX
CK
23
RC7/RX/DT
RC7
RX
DT
26
I/O
25
42
42
ST
I/O
I
I/O
24
25
26
27
43
44
43
44
Digital I/O.
SPI data in.
I2C data I/O.
ST
I/O
O
I/O
O
ST
I/O
29
I/O
I
ST
I/O
Digital I/O.
SPI data out.
Digital I/O.
USART asynchronous
transmit.
USART1 synchronous
clock.
Digital I/O.
USART asynchronous
receive.
USART synchronous data.
42
QFN
Pin#
I/O/P
Type
Buffer
Type
Description
RD0/PSP0
RD0
PSP0
19
21
38
38
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD1/PSP1
RD1
PSP1
20
22
39
39
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD2/PSP2
RD2
PSP2
21
23
40
40
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD3/PSP3
RD3
PSP3
22
24
41
41
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD4/PSP4
RD4
PSP4
27
30
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD5/PSP5
RD5
PSP5
28
31
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD6/PSP6
RD6
PSP6
29
32
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
RD7/PSP7
RD7
PSP7
30
33
I/O
I/O
ST/TTL
Digital I/O.
Parallel Slave Port data.
25
25
RE0/RD/AN5
RE0
RD
AN5
RE1/WR/AN6
RE1
WR
AN6
10
10
11
26
27
26
27
RE2/CS/AN7
RE2
CS
AN7
ST/TTL
I/O
I
I
I/O
I
I
ST/TTL
ST/TTL
I/O
I
I
Digital I/O.
Read control for Parallel Slave Port. Analog
input 5.
Digital I/O.
Write control for Parallel Slave Port.
Analog input 6.
Digital I/O.
Chip select control for Parallel Slave Port.
Analog input 7.
VSS
12, 31 13, 34
6, 29
6, 30,
31
VDD
11, 32 12, 35
7, 28
7, 8, 28
, 29
13
NC
1, 17, 12,13,
28, 40 33, 34
43
44