Quote Originally Posted by Acetronics
Hi, gecko

No problem compiling with MPASM 7.41 and PbP 2.46a ...

Error [ 118 ] is to forget when using @ __config

May be add END ... at the end !!!, but that's not compulsory ( good habit then ... )

Alain

I'm not sure I understand what your saying exactly but.
Code:
'12F675
@ __CONFIG _INTRC_OSC_CLKOUT & _WDT_OFF & _MCLR_OFF & _CP_OFF
DEFINE OSC 4 
OPTION_REG.5 = 0                                                       ' clock source internal
CMCON = 7 
ANSEL=0

Pulselen   var word                                                 ' Pulselen can be 0 - 255, 100 = 1 ms, 200 = 2 ms
Init       var word                                                 ' Init used to flash LED
Clear                                                                  ' set all variables = 0

Input GPIO.3                                                           ' set pin 5 to RX signal

ReadPWM:
   PulsIn GPIO.3, 1,Pulselen                 ' pin 4 - read high pulse length, times out after .65535 seconds 
   pause 15                   
   If Pulselen < 50 Then GoTo Blink           ' no signal  -> blink led
   If Pulselen > 75 Then GoTo solid           ' signal  -> Solid led
   GoTo ReadPWM               
        
Blink: 
   For Init = 1 To 3                                                   ' blink led 3 times
      High GPIO.1                                                      
      pause 200                                                      
      Low GPIO.1                                                     
      pause 200                                                      
   Next
pause 1000		    
 GoTo ReadPWM 
 
Solid: 
      High GPIO.1                                                      
      pause 3000                                                      
      Low GPIO.1
      pause 200
 GoTo ReadPWM 
 END
fails compile saying

error 113 Symbol not previously defined (MLCR_OFF)

When I use _MCLRE_OFF instead it compiles with no error.