Hi Bert

Thanks for your input and welcome to the thread. I was heading towards the CLRWDT after reading this (quite an interesting website):

http://www.hobbyprojects.com/pic_tut...utorial13.html

Well here's the section of code as it stands:

Code:
DARK:   
      'INTCON.0 = 0    ' Clear int on change flag
                       ' It could be night time...It might only be a cloud though...   
                       ' so back to sleep / wake / sleep for half an hour..zwzwzw
      
      COUNTER=0        ' clear before entry
WHILE COUNTER <= 2     ' 4.608sec Loop time (Loop for 30 mins = 781)
     INTCON.0 = 0      ' Clear int on change flag
     @ SLEEP
     @ NOP 
     CLEARWDT
     COUNTER=COUNTER+1
     'IF  GPIO.3= 0  THEN COUNTS 'Bird at box (it's not dark) so continue counting
WEND     
                   
    if  GPIO.4= 0  then ENCODE  ' It really ia dark so carry on and transmit VISITS
    
    'IF  GPIO.4= 1  THEN Main  '(changed from return) It's not dark after all so carry_on_sleeping_counting 
    
Encode:  
    E_OUT=1     ' Turn transmitter on
What happens now is when the push button on GPIO.4 is pressed (and held down) After a count of 9 seconds approx (I was expecting a count of two to give half that time) the TX board led lights but still nothing is transmitted.

The program still doesn't seem to get to encode and transmit, frustrating, any other thoughts?

Dave