You didn't say any thing about asm in your first post you said
"@sleep function "
Actually yes I did, the @ is PBP's insert one line of assembly notation. So asking about @SLEEP is asking about assembly sleep and not PBP native.

LinkMTech thanks I'll give it a test tonight and see how it goes.

Also after more searching last night I came across this thread http://www.picbasic.co.uk/forum/arch...hp/t-5676.html and the example Bruce posted appears to work.