whung.john Guest
|
a control code re-write question |
Posted: Thu Sep 20, 2007 10:56 am |
|
|
hi .have body can teach me re-write a code become have a interrupt program.
and motor operate the same old code .
my code follow as:
hope u can help me? thanks u
#include <16F73.h>
#FUSES NOWDT, XT, NOPUT, NOPROTECT, NOBROWNOUT
#use delay(clock=4000000)
Code: |
void main()
{
while(1)
{
if (input(PIN_A4))
{
delay_us(7200);
output_high(pin_a1);
delay_us(400);
output_low(pin_a1);
delay_us(200);
}
}
}
|
|
|