on that particular case I just want to pulse c1 high for half a second but it doesnt work. The line goes high and stays high until any other case besides 4 is recognized. Any idea why? Can I not use a delay in there or what. Im just working on a project on my code knowledge is very limited by I appreciate any help.
Thanks
B
Guest
Posted: Thu May 27, 2004 6:01 pm
Try this:
case 0x04:
output_bit(PIN_C2,0);
output_bit(PIN_C1,1);
delay_ms(500);
output_bit(PIN_C1,0);
break;
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Thu May 27, 2004 6:27 pm
Or you might try:
CASE 0x04:
output_low(PIN_C2);
output_high(PIN_C1);
delay_ms(500);
output_low(PIN_C1);
break;
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