I think When C0 is ON than can't play start()
but C0 is OFF than can play Start()
Is this collect CODE?
Please check.. _________________ Hello~?
This is South KOREA
My name is Sanghyouk Kim But Call me Nick
Sorry I'm poor English
EdWaugh
Joined: 07 Dec 2004 Posts: 127 Location: Southampton, UK
hey
Posted: Thu Feb 17, 2005 8:25 am
hi,
I think Dear Sir is probably what you meant there!
Anyway, assuming your using the CCS compiler I think what you want to do might look like this:
Code:
void start()
{
while(!input(pin_c0)) // this is a fast way of checking a single bit
{ // you don't need == or !=
....
}
}
void main()
{
while(1)
{
if(input(pin_b1)) start();
}
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum