I cannot get my PIC18F4620 to wake from sleep. The code and the configuration settings are below. It is such a simple program but obviously I am missing some necessary register setting.

All suggestions gratefully received.
BrianT

</code>
'************************************************* ***************
'* Name : SleepLED.pbp *
'* Author : Brian Taylor *
'* Notice : Copyright (c) 2013 Brian Taylor *
'* : All Rights Reserved *
'* Date : 20/05/2013 *
'* Version : 1.0 *
'* Notes : *
'* : *
'************************************************* ***************

'*** PIC18F4620 Config Register setup for MeLabs U2 USB programmer ******
' OSC = INTIO2, Set to 4 MHz via OSCCON, FSCM = Dis, IESO = Dis, PwrupTmr = Dis
' BrownOut = Dis, BOR Volts = 2, WDT = Dis, WDTPS = 1:512, CCP2 mux = RC1,
' PortB reset = Digital, LPT1Osc = Low Pwr, MCLR = Reset, Stack overflow = Ena
' LVP = Dis, Enhanced CPU = Dis, All memory = Not Protected
'************************************************* ***********************


LED var PORTC.6 ' LED activity indicator
A var byte

OSCCON = %01101111 ' 4 MHz

Test:
debug "FlashTest", 13, 10
for a = 0 to 7 : high led : pause 50 : low led : pause 150 : next a

debug "LED sleep test", 13, 10
SleepTest:
high led
sleep 10
low led
pause 10
goto test

</endcode>