Hello all ,
This is my first post so hello to everyone here.
I have two 16f628 and i am using serin and serout for comunication
chip (1) is master and chip (2) is slave it will just be in a loop to take command.
chip(1) gets the command from pc rs232 and checks it then sends the command to chip (2) basic port high and port low. thing.
SERIN PORTA.1 , 84 , [RELAY, DEC STAT]
above is the rs232 in for chip 1 when the chip1 receives 21 from the pc it refers to RELAY if RELAY is 2 then it send the remaining data in stat to chip 2 for execution so will this work ?
SERIN PORTA.1 , 84 , [RELAY , DEC STAT]
IF RELAY = 50 THEN OUTR2
OUTR2:
IF STAT = 0 THEN SEROUT PORTA.7 , 84 , [DEC STAT]
will the above code send the data of stat to the chip2 ?
Thanx
Mastero
Bookmarks