I read the whole datasheet of the 10F202 and I did not succeed in finding how to set GP2 as an output.
When I put a led via a resistor at GP0, GP1 and GP2 only the GP0 and GP1 leds are working the led on GP2 remains off. (not broken).
See small example.
What do I forget ??
Code:
		'test voor 10f202
			
		@ DEVICE PIC10F202,INTRC_OSC
		@ DEVICE PIC10F202,MCLR_OFF
		@ DEVICE PIC10F202,PROTECT_OFF
		@ DEVICE PIC10F202,WDT_OFF
		
		DEFINE	OSC	4
				
		TRISIO	  = %00000000
		OSCCAL.0  = 0
		
		UIT1	VAR	GPIO.0
		UIT2	VAR	GPIO.1
		UIT3	VAR	GPIO.2
		IN1	VAR	GPIO.3
		
	
		
		

	
BEGIN:
		IF IN1 = 0 Then
		UIT1 = 0
		UIT2 = 1
		UIT3 = 0
		EndIF
		
		IF IN1 = 1 Then
		UIT1 = 1
		UIT2 = 0
		UIT3 = 1
		EndIF
		
		GoTo BEGIN