Digital IC Tester

Software program for slave IC:

mov p0,#0
mov p2,#0
mov p1,#0
mov r0,#0ffh
del:  djnz r0,del
setb p3.7
wait:jb p3.7,wait
mov a,#0
setb p3.0
setb p3.1
setb p3.2
setb p3.3
jnb p3.0,nextb1
setb a.0
nextb1: jnb p3.1,nextb2
setb a.1
nextb2: jnb p3.2,nextb3
setb a.2
nextb3: jnb p3.3,over
setb a.3

over:cjne a,#1,next2            ;NAND
call gateic
mov a,r3
rl a
mov r2,#07h
xrl a,r2
jnz checkg12
setb p1.2

checkg12: mov a,r4
rl a
mov r2,#07h
xrl a,r2
jnz checkg13
setb p1.3

checkg13: mov a,r5
rl a
mov r2,#07h
xrl a,r2
jnz checkg14
setb p1.4

checkg14: mov a,r5
rl a
mov r2,#07h
xrl a,r2
jnz end2
setb p1.5
jmp end2

next2:  cjne a,#2,next3            ;NOR
call gateic
mov a,r3
rl a
mov r2,#01h
xrl a,r2
jnz checkg22
setb p1.2

checkg22: mov a,r4
rl a
mov r2,#01h
xrl a,r2
jnz checkg23
setb p1.3

checkg23: mov a,r5
rl a
mov r2,#01h
xrl a,r2
jnz checkg24
setb p1.4

checkg24: mov a,r5
rl a
mov r2,#01h
xrl a,r2
jnz end1
setb p1.5
end2:   jmp end1

next3:  cjne a,#3,next4            ;AND
call gateic
mov a,r3
rl a
mov r2,#08h
xrl a,r2
jnz checkg32
setb p1.2

checkg32: mov a,r4
rl a
mov r2,#08h
xrl a,r2
jnz checkg33
setb p1.3

checkg33: mov a,r5
rl a
mov r2,#08h
xrl a,r2
jnz checkg34
setb p1.4

checkg34: mov a,r5
rl a
mov r2,#08h
xrl a,r2
jnz end1
setb p1.5
jmp end1

next4:  cjne a,#4,next5            ;OR
call gateic
mov a,r3
rl a
mov r2,#0Eh
xrl a,r2
jnz checkg2
setb p1.2

checkg2: mov a,r4
rl a
mov r2,#0Eh
xrl a,r2
jnz checkg3
setb p1.3

checkg3: mov a,r5
rl a
mov r2,#0Eh
xrl a,r2
jnz checkg4
setb p1.4

checkg4: mov a,r5
rl a
mov r2,#0Eh
xrl a,r2
jnz end3
setb p1.5

end1:   jmp end3

next5:  cjne a,#5,end2              ;XOR
call gateic
mov a,r3
rl a
mov r2,#06h
xrl a,r2
jnz checkg52
setb p1.2

checkg52: mov a,r4
rl a
mov r2,#06h
xrl a,r2
jnz checkg53
setb p1.3

checkg53: mov a,r5
rl a
mov r2,#06h
xrl a,r2
jnz checkg54
setb p1.4

checkg54: mov a,r5
rl a
mov r2,#06h
xrl a,r2
jnz end
setb p1.5
end3:   jmp end

gateic: mov r0,#25h
mov a,#24h
mov @r0,a
inc r0
mov a,#2Dh
mov @r0,a
inc r0
mov a,#36h
mov @r0,a
inc r0
mov a,#3Fh
mov @r0,a
mov r1,#30h
mov a,#92h
mov @r1,a
inc r1
mov a,#B6h
mov @r1,a
inc r1
mov a,#DAh
mov @r1,a
inc r1
mov a,#FEh
mov @r1,a
mov r0,#25h
mov r1,#30h
mov r3,#0
mov r4,#0
mov r5,#0
mov r6,#0
mov r7,#4

nextcnd:mov a,@r0
inc r0
mov p0,a
mov a,r3
jnb p0.2,g2
setb a.3
g2:   rr a
mov r3,a
mov a,r4
jnb p0.5,g3
setb a.3
g3:   rr a
mov r4,a
mov a,@r1
inc r1
mov p2,a
mov a,r5
jnb p2.1,g4
setb a.3
g4:   rr a
mov r5,a
mov a,r6
jnb p2.4,overcnd
setb a.3
overcnd:rr a
mov r6,a
djnz r7,nextcnd
ret

end:    clr p3.6

stop:  jmp stop

292 Responses to “Digital IC Tester”

  1. ashwinipriya mamidala

    hi sir.now i am persuing b.tech final year i want to do my project on ic tester using 8052 micro controller, will u please send the detail of my project

    Reply
  2. Standin.2331

    hi sir , can u send every details about this project . im doing this project for final year . thanks for your help .

    Reply
  3. hi sir . can u sent me every details about this project . i really need it .

    Reply
  4. sir there are too many errors in thisprogram…..will u help out with this

    Reply
  5. · As much as I love cooking and baking, I often catch myself going through the motions with a grumble, thinking, “Why do I have to do this so darn often?” I’m guilty of getting caught up in routine items as if they were the big picture. This post is a really beautiful reminder that when time marches forward, the sc#rney&e8217;s changing whether you’re admiring it or just staring down at your shoes. Thanks so much for this!

    Reply
  6. Shayne Edinburgh

    The K Park Bán chung cư The K Park Mua The K Park Văn Phú
    Phân phối The K Park Hà Đông

    Reply

Leave a Reply