fuhhh..finally can display the msg on the LCD...thanks guys for all help of u guys...credit to all of u ..
but then i have this problem..(PIC+LCD+Push button+LED)
- CODE: SELECT_ALL_CODE
if(!sw1)
{
PORTB=0bxxxxxxxxx; (for LED)
delay(xxxxx);
PORTB=0bxxxxxxxxx; (for LED)
delay(xxxxx);
lcd_goto(0);
lcd_string(" xxxx MSG xxxx ");
lcd_goto(20);
delay(xxxxx); //for about 3-4s
}
else (!sw2)
{
{almost the same as in switch 1}
}
before this program i have a standby mode function being called that makes the LED blinking..but after i try to press either one push button..it doesnt show any output as command written on the program..the cct is just keep running the
standby mode- CODE: SELECT_ALL_CODE
standby mode()
{
PORTB=0b011111111; (for LED)
delay(xxxxx);
PORTB=0b000000000; (for LED)
delay(xxxxx);
}
then i check for
(1)the port for push button is PORT A n already define as the input...
(2)circuitry for push button and LCD is maintain be4 being combined together(before that both cct is working well)
(3)the current and voltage for the push button and PORT A after pressed and before pressed shows only 0 value( 0V and 0A)
hmm..what am i missing on the program???
Simple flowchart that i wnt.. -->
standby--->if press PB1 --> yes --> led blink style 1 & LCD show msg 1 --> delay --> standby mode
--> no --> standby mode
--->if press PB2 --> yes --> led blink style 2 & LCD show msg 2 --> delay --> standby mode
--> no --> standby mode
help me to solve it
