hi sir,
very very thanks about your attention
now iam connected it ,then
how i can program the micro to generate the A,B and C signals from the micro to make the multiplexer send the byte data to the micro
when ABC are ooo the D0 data will sent to micro and when ABC are 001 the data of D1 sent to the micro and soon until ABC are 111 the last pin D7 data will sent to micro and repeat again continuaslly,
how i can do this
THANKS Mr. rushi53
hi sir,
very very thanks about your attention
now iam connected it ,then
how i can program the micro to generate the A,B and C signals from the micro to make the multiplexer send the byte data to the micro
when ABC are ooo the D0 data will sent to micro and when ABC are 001 the data of D1 sent to the micro and soon until ABC are 111 the last pin D7 data will sent to micro and repeat again continuaslly,
how i can do this
THANKS Mr. rushi53
Hi,
Do u wish to send the data continuously ?
I mean without any delay in between
I will give u sample program
Suppose u have done connections as below
Pin A - Port 1.0
Pin B - Port 1.1
Pin C - Port 1.2
Code:
[COLOR="Blue"]ORG 0000H
JMP START
START MOV P1,#00H ;This will turn on D0
CALL DELAY
MOV P1,#01H ;This will turn on D1
CALL DELAY
MOV P1,#02H ;This will turn on D2
CALL DELAY
MOV P1,#03H ;This will turn on D3
CALL DELAY
MOV P1,#04H ;This will turn on D4
CALL DELAY
MOV P1,#05H ;This will turn on D5
CALL DELAY
MOV P1,#06H ;This will turn on D6
CALL DELAY
MOV P1,#07H ;This will turn on D7
CALL DELAY
HERE JMP HERE
END[/COLOR]
And then write the program of delay as per your requirement
if you don't want to use delay then remove the "CALL DELAY" statements.
thanks rushi53
but is this program affect the micro time where the micro must sense to multi other inputs and do many other jobs?
and now how i can store the 8 inputs(D0-D7) in the micro ?
i coonect the 74hc151 output pin to p1.5 and set it in p1.5 register but the micro didn't sense to this