 
 
		
		
				
				
					
				
		
			
				
					When your PIC have an internal USART/EUSART... don't mess with DEBUG/DEBUGIN/SERIN/SERIN2... use HSERIN and that's it.
If you still want to use a specific pin.. use it's PORT name.. not PIN number...it's just unreadable and mix-up everybody for nothing
	Code:
	SERIN2 PORTA.7...........
SERIN PORTA.7............
or better
MySerialInput VAR PORTA.7
'
'
'
'
SERIN MySerialInput..............
 Don't forget PIC have more interesting stuff than those stupid useless Stamps.. you MAY need to disable some feature to a specific pin prior to use it as Digital i/o.  Few things like ADCs, comparators can cause some strange behaviours.
http://www.picbasic.co.uk/forum/showthread.php?t=561
				
			 
			
		 
			
			
			
				
					Last edited by mister_e; - 16th April 2008 at 21:43.
				
				
			
			
			
                        	
		         
			
			Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
			
			
		 
	
Bookmarks