Hi all,
i m writing a moving message display code... all things good now. but i need help a on interrupt send data from pc.. and write data 24c64
mainprogram:
.
.
.
interrupt rutine----> goto pclink
( help me for here)
goto mainprogram
--------------------------
PCtalk:
'start communicating with PC by sending acknowledge bit
j = 0 : pause 100 :
SERIN SERIALIN,N2400,["@"],bilgi 'wait for char. @ from the PC and store second @ in char...
getserial: 'start receiving serial data
Serin SERIALIN,N2400,bilgi 'receive at 9600bps and store in variable char
I2CWRITE SDA,SCL,$A0,j,[bilgi] 'write each received character to the memory, starting at 0
if bilgi = EOM then 'check to see if incoming character is EOM
Goto start 'go back to the very beginning of program to reset everything
endif 'end checking if character is EOM
j = j + 1 'increment pointer that points to the next memory location
goto getserial 'if incoming character was not EOM, return for more chars.


 
		
		 
						
					 
			 
			 
			 
					
					 On Interrupt
 On Interrupt
		 Minor Detail
 Minor Detail
		 Originally Posted by elektroline
 Originally Posted by elektroline
					
				 )
   )
				 doesn't work...
 doesn't work...
		

Bookmarks