Praveen Kumar P S
Member level 4
Hello Guys.....
i can set all pin on all port to high using the output_high(). but this function is not working for PIN_A6....it stays on low....somebody tell me why?
Here is my code...
THANK YOU
i can set all pin on all port to high using the output_high(). but this function is not working for PIN_A6....it stays on low....somebody tell me why?
Here is my code...
Code:
#include <18f4550.h>
#device ADC=10
#fuses HS,NOWDT,NOPROTECT, BROWNOUT, NOLVP, PUT
#use delay(crystal=48000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7,ERRORS)
#include<flex_lcd416.c>
#define PIN PIN_A6
void main()
{
lcd_init();
for(;;)
{
lcd_gotoxy(1,1);
printf(lcd_putc,"Motor Start");
output_bit(PIN,1);
Delay_us(10);
}
}
THANK YOU