Avr beginner with avrcam

Am just trying to PING the avrcam from the micro(atmega8535). Am using peter fleury's uart library. The mega8535 is running with an external 8Mhz crystal oscilator.This is the code:
Now nothing gets printed on the lcd after "cam:". I dont know whats wrong...
The avrcam has worked properly when "PING"ed from the avrcamview pc application.please help me..i need to get it working..n am a beginner at embedded programming
- Code: Select all
#include <stdlib.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include <avr/pgmspace.h>
#include <string.h>
#include <inttypes.h>
#include "uart.h"
#include "lcd.h"
#ifndef F_CPU
#define F_CPU 8000000UL
#endif
#define UART_BAUD_RATE 115200
int main(void)
{
unsigned int c;
uart_init( UART_BAUD_SELECT(UART_BAUD_RATE,F_CPU) );
sei();
uart_puts("PG");
lcd_init(LCD_DISP_ON);
lcd_clrscr();
lcd_puts("Cam:");
lcd_command(LCD_DISP_ON_CURSOR_BLINK);
for(;;)
{
c = uart_getc();
if ( c & UART_NO_DATA )
{
}
else
{
lcd_putc((unsigned char)c);
lcd_putc("a");
}
}
}
Now nothing gets printed on the lcd after "cam:". I dont know whats wrong...
The avrcam has worked properly when "PING"ed from the avrcamview pc application.please help me..i need to get it working..n am a beginner at embedded programming