IfPIR1.5 = 1Then' If receive flag then...
B1 = RCREG' Get received character to B1
Endif
The above code is from melabs sample programs.
does PIR1.5 clear automatically after B1=RCREG? It's read only???
The way i understand the above code is that PIR1.5 will go high when a validte data is rec'd in RX but how does PIR1.5 clear is it after reading the RC register?


 
		
		 
						
					 
			 
			 
			 
					
					 USART question?
 USART question?
		 ) is the only way to deal with things like this.
) is the only way to deal with things like this.
				

Bookmarks