CODE1
org 000h
mov p0,#00h
mov p1,#11110111b
bil:jnb p0.0,bil
mov p1,#11100110b
end
CODE2
org 000h
mov p0,#0ffh
mov p1,#11110111b
bil:jnb p0.0,bil
mov p1,#11100110b
end
i want to use p0.0 as an input pin, and when it goes high the data to p1 shud change
when i use code 2, it doesnt work...the data changes without p0.0 getting a high
using code1 works...but ...to make a port an input port...we hav to send all 1's...so what is going wrong???
org 000h
mov p0,#00h
mov p1,#11110111b
bil:jnb p0.0,bil
mov p1,#11100110b
end
CODE2
org 000h
mov p0,#0ffh
mov p1,#11110111b
bil:jnb p0.0,bil
mov p1,#11100110b
end
i want to use p0.0 as an input pin, and when it goes high the data to p1 shud change
when i use code 2, it doesnt work...the data changes without p0.0 getting a high
using code1 works...but ...to make a port an input port...we hav to send all 1's...so what is going wrong???