Digital Ic Tester
Digital Ic Tester
Digital Ic Tester
Sr.
CONTENTS Page No.
No.
1 Abstract 5
1 Introduction to digital IC tester 6
2 Background 8
3 Block Diagram 10
4 Features of IC tester circuit 10
5 Technical Specifications 11
5 Introduction to LCD 12
6 Introduction to KEYPAD 13
7 IC tester circuit diagram 14
8 PCB Layouts 15
9 Algorithm of program 17
10 Flow chart 18
11 Logic involved 19
12 Code for IC testing 20
13 Problems and Troubleshooting 40
14 Conclusions 42
15 Future Scope of Work 43
16 Component list and their cost 44
17 References 46
18 Software used 46
Digital IC Tester
ACKNOWLEDGEMENT
The completion of any project brings with it a sense of satisfaction, but it is never
complete without thanking those people who made it possible and whose constant support
has crowned our efforts with success.
We are thankful our guide, Prof. N.P. Deshpande, Head of the Department, Electronics
and Telecommunication PVG’s COET, PUNE, of Electronics and Telecommunication for his
expert guidance, encouragement and valuable suggestions at every step.
We would like to express our gratitude to Prof. R.G. Kaduskar, for encouraging and
inspiring us to carry out the project in the department lab.
We also would like to thank all the staff members and lab assistants of E&TC dept. for
providing us with the all required facilities and support towards the completion of the project.
We would also like to thank our seniors who always helped us to overcome our
problems during the course of the project.
We are extremely happy to acknowledge and express our sincere gratitude to our
parents for their constant support and encouragement and last but not the least, friends and
well wishers for their help and cooperation and solutions to problems during the course of
the project.
2
Digital IC Tester
ABSTRACT
The basic function of the digital IC tester is to test a digital IC for correct logical
functioning as described in the truth table and/or function table. It can test digital ICs having a
maximum of 24 pins. Since it is programmable, any number of ICs can be tested within the
constraint of the memory available. This model applies the necessary signals to the inputs of
the IC, monitoring the outputs at each stage and comparing them with the outputs in the truth
table. Any discrepancy in the functioning of the IC results in a fail indication, displays the faulty
and good gates on the LCD. The testing procedure is accomplished with the help of keys
present on the main board.
At this stage we had completed to test the most common used digital IC's used in our
laboratories, mainly belonging to the 74TTL series and successfully completed writing
assembly code for 10 IC’s. This tests various types of IC's like OR, XOR, NAND, AND, NOT, NOR,
XNOR GATES and also FULL ADDER, MULTIPLEXER, SHIFT REGISTER.
3
Digital IC Tester
INTRODUCTION
In any manufacturing industry there are continuous efforts in cost reductions, upgrade
quality and improve overall efficiencies. In electronic industry, with dramatic increase in circuit
complexity and the need for the higher levels of reliability, a major contributor cost in any
product can be in the testing. However we should recognize in the real world that no product
is perfect, so that testing and in particular automatic testing will be an essential part of
production in the foreseeable future.
In industries, research centers and college, some common IC's are frequently used;
many times people face problems due to some fault in these integrated circuits. So it is very
essential to test them before actually using them in any of the applications. Microcontroller
based digital IC tester is best solution for these problems.
This project has the capability of testing any available digital IC of the TTL or CMOS
family of 24 pins. The main advantage over the industry standard for the project is its low cost
and eases of updating to any new IC design which may be inducted in the market by any
company only through software updating.
The IC-tester tests the basic logic gates used in the digital laboratory of colleges. It
uses 89c51 as the controlling and processing unit. The keyboard and the display circuits are
interfaced with the master microcontroller. The input is given to the corresponding pins of the
IC to be tested using program stored in micro-controller acting as slave. The output is taken
from the relevant pin. It is compared with the look-up table of that IC being stored in the
memory. Depending on the result of comparison, the output is displayed in the LCD display.
4
Digital IC Tester
5
Digital IC Tester
The digital IC tester is implemented in order to test the digital IC’s to verify the faulty
gates and the good gates. The necessary inputs to the gates of the IC to be tested which is
placed in the ZIF socket is received from the slave micro-controller IC and corresponding
outputs are accumulated and sent to the same controller IC where the output is compared
with the functional or the logic table and if any discrepancy results, it displays the fail in the
LCD display screen. Analog IC tester is also available in the market which was replaced by this
digital IC tester which is more sophisticated by performing the tasks in a much easier fashion
and the execution time also very fast in it
The primary purpose of this digital IC tester is that it can easily check the IC within due
course of time and if any discrepancy results then it determines the gates which were good
ones and which were the bad ones. The manual operation or a human intervention includes
testing of each individual IC by making necessary connections and verifying the outputs for
each gate by the truth table is a time taking and tedious process.
With the implementation of the micro controller units it makes the job much easier to
receive data for the respective gates and process output and display results. The operation of
a MCU based controller is determined primarily by its program.
Microcontrollers are versatile. MCUs are very useful, since its approach is
programmable, many additional features are possible at little or no added cost.
6
Digital IC Tester
And the main advantage of this circuit is that whenever a new IC is to be tested it does
not include any addition of hardware but a slight updating in the software code is sufficient
enough.
The IC TESTER CIRCUIT is one among the many applications of the MICROCONTROLLER
BOARD. The IC which is to be tested is mounted on the ZIF socket. The inputs are fed to the IC
which is primarily processed through the slave controller board . The program is written in
such a way that comparisons are to be made between the expected data from the truth table
and the data that is obtained from the data bus which is nothing but the outputs of the IC that
is in testing process. Finally a display has to be made on the LCD display which is located in the
main controller board specifying which gates of the IC are working and which are not.
7
Digital IC Tester
FEATURES OF IC TESTER
5: Various LED’S and LCD display to present the test results FAIL or PASS.
8
Digital IC Tester
TECHNICAL SPECIFICATIONS:
RANGE : Logic Gates, Shift Register, Adder and Multiplexer can be tested.
9
Digital IC Tester
LCD
RS: Register select. If RS =0, the instruction command code register is selected, allowing the
user to send a command such as clear display, cursor at home etc. If RS=1, the data register
is selected allowing the user to send data to be displayed on the LCD.
E: Enable. The Enable pin is used by LCD to latch information presented to its data pins.
When data is supplied to data pins, a high to low pulse must be applied to this pin in order
for the LCD to latch in the data present at the data pins.
10
Digital IC Tester
4X3 KEY-PAD:
Row pins are connected to lower 4 pins of port 1. And column pins are connected to lower 3
pins of port 3.
The keyboard section is as shown in the figure below. The keyboard is designed as a matrix
and is interfaced to port 1 of the master IC. Here P1.0, P1.1, P1.2, P1.3 are configured as input
ports, and P3.0, P3.1, P3.2 are configured as output ports. The keyboard consists of 10 digits as
well as an ‘ENTER’ button and ‘RESET’ button.
In case of matrix Keypad both the ends of switches are connected to the port Pin. Over here
we have considered a 4x3 matrix keypad i.e. four rows and three columns. So in all twelve
switches have been interfaced using just seven lines. The adjoining figure shows the diagram
of a matrix keypad and how it is
interfaced with the controller.
As you can see no pin is connected to
ground, over here the controller pin
itself provides the ground. We pull
one of the Column Pins low & check
the row pins if any of the Pin is low
then we come to know which switch
is pressed.
Suppose we make column 1 pin low
and while checking the rows we get
Row 3 is low then we come to know
switch 7 has been pressed.
11
Digital IC Tester
EXPERIMENTAL ASPECTS:
CIRCUIT DIAGRAM
12
Digital IC Tester
PCB LAYOUTS
Track Side
Component Side
13
Digital IC Tester
PCB LAYOUTS
14
Digital IC Tester
I. Begin.
II. Reset the circuit.
III. Initialize the LCD.
IV. Display the message “Enter IC number”.
V. Wait for some time.
VI. Press the IC number on the keypad.
VII. Display the IC number.
VIII. Send the code of the respective IC from master microcontroller to slave microcontroller.
IX. Check the working of IC depending upon the truth tables and functional tables.
X. Depending upon the output, give the control signals to the master microcontroller to
display respective messages on LCD.
XI. Stop.
15
Digital IC Tester
Start
“Enter IC no.”
IC no
Check IC working
Display messages on
LCD
Stop
16
Digital IC Tester
LOGIC TO TEST AN IC
The logic to test an IC is very simple. We can test it using their truth tables and
functional tables. In case of logic gates, we should check truth tables and in case of ICs like
shift register, full adder, multiplexer etc we should check functional tables.
Let us take an example of logic gate IC 7400 i.e. NAND gate. In this gate first two
terminals are the inputs and third terminal is the output. So we are externally giving inputs to
first 2 pins of IC and checking the 3rd terminal. If the desired output is obtained, LCD displays
PASS and if the output is wrong, LCD displays FAIL.
17
Digital IC Tester
PN EQU 40H
ORG 00H
LJMP MAIN
ORG 50H
MAIN:
LCALL DISPLAY
LJMP K
LCDINIT:
MOV A, #20H
18
Digital IC Tester
LCALL COMMAND
MOV A, #28H
LCALL COMMAND
MOV A, #08H
LCALL COMMAND
MOV A, #01H
LCALL COMMAND
MOV A, #06H
LCALL COMMAND
MOV A, #0DH
LCALL COMMAND
MOV A, #0CH
LCALL COMMAND
RET
COMMAND:
LCALL READY
MOV R7, A
ANL A, #0F0H
SWAP A
MOV P0, A
NOP
MOV A, R7
ANL A, #0FH
MOV P0, A
NOP
CLR P0.4
POP 07H
RET
READY:
PUSH 0E0H
CLR P0.4
CLR P0.6
SETB P0.5
SETB P0.4
MOV A, P0
20
Digital IC Tester
CLR P0.4
SETB P0.4
NOP
NOP
CLR P0.4
JB 0E3H, WAIT
POP 0E0H
RET
DATA1:
LCALL READY
MOV R7, A
ANL A, #0F0H
SWAP A
MOV P0, A
NOP
MOV A, R7
ANL A, #0FH
21
Digital IC Tester
MOV P0, A
NOP
CLR P0.4
POP 07H
RET
CLR A
MOVC A,@A+DPTR
LCALL DATA1
INC DPTR
RET
K: Nop
ANL A, #00000111b
ANL A, #00000111b
AJMP K2
ANL A, #00000111b
AJMP K2
DETECTKEY:
MOV A, P3
ANL A, #00000111b
MOV A, P3
ANL A, #00000111b
MOV A, P3
ANL A, #00000111b
MOV A, P3
ANL A, #00000111b
LJMP FIND
LJMP FIND
LJMP FIND
LJMP FIND
FIND: RRC A
JNC MATCH
INC DPTR
SJMP FIND
CLR A
24
Digital IC Tester
MOVC A,@A+DPTR
MOV R4, A
Cjne a, #45H, x1
ljmp enter
ljmp reset1
MOV B,A
mov @r0,B
inc r0
inc r1
CLR A
MOV A,R6
INC R6
LCALL KEYOUT1
LCALL KEYOUT
KEYOUT3:LJMP K
SJMP KEYOUT3
KEYOUT1:MOV A,#0CH
LCALL COMMAND
25
Digital IC Tester
MOV A,#0C4H
LCALL COMMAND
RET
LCALL COMMAND
MOV A,R4
LCALL DATA1
RET
mov r7,a
dec r0
mov a,@r0
swap a
orl a,r7
mov b,a
cjne r1,#04h,e3
mov r5,#00h
movc a,@a+dptr
cjne a,b,e2
mov p2,r5
sjmp Q
26
Digital IC Tester
e2: inc r5
inc dptr
sjmp e1
mov dptr,#enter2
movc a,@a+dptr
cjne a,b,e4
mov p2,r5
SJMP Q
e4: inc r5
inc dptr
sjmp Q
reset1:lcall lcdinit
ljmp MAIN
DJNZ R2,HERE1
RET
enter1:db '00','02','04','08','32','86','83','95'
enter2: db '86','51'
27
Digital IC Tester
KEYCODE0 : DB '0','1','2'
KEYCODE1 : DB '3','4','5'
KEYCODE2 : DB '6','7','8'
KEYCODE3 : DB '9','E','R'
Q:NOP
END
cjne a,#0h,l1
mov a,p0
mov dptr,#t11
movc a,@a+dptr
t11:db 01h,02h,03h,04h,05h,06h,07h,08h,09h,0ah
cjne a,#01h,y1
nand0:
mov r0,#00h
mov r1,#00h
mov r2,#00h
28
Digital IC Tester
mov r3,#00h
mov r4,#00h
nand1 :
acall nand2
acall nand2
acall nand2
acall nand6
inc r0 ;INCREMENT R0
nand3:jnb p0.5,nand4
inc r1 ; INCREMENT R1
nand4:jnb p2.1,nand5
inc r2 ;INCREMENT R2
inc r3 ; INCREMENT R3
nand6:jb p0.2,nand7
inc r0
29
Digital IC Tester
nand7:jb p0.5,nand8
inc r1
nand8:jb p2.1,nand9
inc r2
nand9:jb p2.4,a1
inc r3
a1: ljmp w
clr p2.5
clr p2.3
clr p2.1
setb p0.7
clr p0.2
setb p0.0
setb p2.2
setb p2.6
clr p0.3
setb p2.7
jnb p2.0,adder1
inc r0
adder1:jb p0.5,adder2
30
Digital IC Tester
inc r0
adder2:jnb p0.1,adder3
inc r0
adder3:jb p2.6,adder4
inc r0
adder4:jnb p2.4,adder5
inc r0
adder5:cjne r0,#05h,adder6
setb p1.2
setb p3.7
ljmp q
adder6:setb p3.6
shiftreg:mov p0,#40h
clr p2.1
setb p2.2
setb p2.7
nop
jnb p2.6,s1
inc r0
lcall delay
31
Digital IC Tester
setb p2.2
jnb p2.5,s2
inc r0
lcall delay
setb p2.2
jnb p2.4,s3
inc r0
lcall delay
setb p2.2
jnb p2.3,s4
inc r0
setb p1.2
setb p3.7
ljmp q
ljmp q
delay2:mov r6,#0ffh
delay1:djnz r6,delay1
32
Digital IC Tester
djnz r7,delay2
clr p0.6
clr p0.7
mov p2,#80h
setb p0.3
jnb p0.4,mux1
inc r0
mux1:clr p0.3
mov p2,#84h
setb p0.2
jnb p0.4,mux2
inc r0
mux2:clr p0.2
setb p0.1
mov p2,#82h
jnb p0.4,mux3
inc r0
mux3:clr p0.1
setb p0.0
mov p2,#86h
33
Digital IC Tester
jnb p0.4,mux4
inc r0
mux4:clr p0.0
setb p2.3
mov p2,#81h
jnb p0.4,mux5
inc r0
mux5:mov p2,#85h
jnb p0.4,mux6
inc r0
mux6:mov p2,#83h
jnb p0.4,mux7
inc r0
mux7:mov p2,#87h
jnb p0.4,mux8
inc r0
mux8:cjne r0,#8h,mux9
setb p1.2
setb p3.7
sjmp mux10
mux9:setb p3.6
mux10:ljmp q
34
Digital IC Tester
ljmp q
;INPUTS 00
clr p0.1
clr p0.3
clr p0.4
clr p2.3
clr p2.2
clr p2.6
clr p2.5
ret
;INPUTS 01
setb p0.1
clr p0.3
setb p0.4
clr p2.3
setb p2.2
clr p2.6
setb p2.5
ret
35
Digital IC Tester
;INPUTS 10
clr p0.1
setb p0.3
clr p0.4
setb p2.3
clr p2.2
setb p2.6
clr p2.5
ret
;INPUTS 11
setb p0.1
setb p0.3
setb p0.4
setb p2.3
setb p2.2
setb p2.6
setb p2.5
ret
w: cjne r0,#4h,x
setb p1.2
36
Digital IC Tester
inc r4
x: cjne r1,#4h,y
setb p1.3
inc r4
y: cjne r2,#4h,z
setb p1.4
inc r4
z: cjne r3,#4h,z3
setb p1.5
inc r4
setb p3.7
lcall q
lcall q
q: nop
end
37
Digital IC Tester
EXPERIMENTAL OBSERVATIONS
Problems do occur even with perfect designed circuit the problems that are faced during the
project
Considerable delays
Even though there are no errors in the code and the logic is also correct, sometimes
there will be a distraction on the LCD screen during displays we have to use the NOP
command- No Operation command adequate number of times such that there doesn’t occur
any characters other than the desired ones.
Considerable delays are to be given during the issue of control commands to LCD. We
know that controller is faster than the external I/O devices. So we use delays in between the
issue of control and data commands to LCD screen.
While writing procedures for the IC to be tested, the first step is to give supply and
ground connections to the IC and later proceed with the testing code. Without giving supply
and ground connections to IC, if we implement the code that is, first the logic later the supply
38
Digital IC Tester
connections, the logic will not work i.e., it is futile. So always keep in mind that, be sure of
supply and ground connections and later proceed with the logic.
39
Digital IC Tester
CONCLUSIONS
The project has been successfully completed and the main objective of emulating an IC tester
on 89c51 micro controller has been achieved. For a given specification any IC can be checked
for its functionality. It takes more time to test an IC manually, with the implementation of the
system with microcontroller makes the testing procedure simpler.
So we conclude that any digital IC with the given specifications can be implemented on
IC tester circuit. This system is capable of testing the IC’s having up to 24 pins.
40
Digital IC Tester
This digital IC tester can test various digital IC families just by the software
updating. In this project the code is written for 10 IC’s which can be extended to digital
families of 74XX and 40XX, but the code written might be reaching out of bounds of memory
that is available in the microcontroller. That is due to the RAM may not be sufficient to
support the whole code so we have to interface extra memory chips.
The availability of large memory capacity makes the PIC processor the best suited
surrogate for microcontroller with optimal features. So far the IC to be tested is mounted on
the ZIF socket, and the respective details of the IC are selected form the menu provided in the
micro controller board. This in turn produces the results by displaying if the IC is working or
not by mentioning the gates. One special feature which makes this project, true equipment for
industrial purpose is that to have a search procedure included in it. The search procedure is
used, so that if we place an IC in the ZIF socket the entire process of identifying the IC and then
selecting and sending the inputs to the IC’s should be done by this procedure.
This circuit has been designed with an aim to test an IC having up to 24 pins. So
necessary steps should be taken in order to utilize this project to be implemented for digital
IC’s having pins more than 24.
41
Digital IC Tester
33pF CERAMIC 4 4
1 µF(25V), ELECTROLYTIC) 1 2
7 RESISTORS 8.2KΏ(1/4W) 2 2
10kΏ(1/4W) 1 1
100 Ώ(1/4W) 4 2
1kΏ(1/4W) 1 1
4.7KΏ(8 PIN) 1 3
9 DIODE 1N4007 4 8
10 LEDS RED 2 2
GREEN 2 2
12 POWER CONNECTOR 1 8
13 RELIMENTS (2X2) 2 20
42
Digital IC Tester
(4x4) 1 15
(8X8) 4 60
14 CONNECTOR 16 PIN 1 30
7 PIN 1 10
18 CASING 200
TOTAL 1230
REFERENCES
43
Digital IC Tester
III. www.alldatasheet.com
SOFTWARE USED
I. NOVARM DIP TRACE: for PCB layout
II. PG4UW BY ELNEC SOFTWARES
44