Hi ,
I have define array1[](predefined) and another array2[] received from hyperterminal to pic.
Just I want to compare those arrays and if its succeeded I am sending string to lcd ok else error.
But I am getting result as error.
Pic16f877A uart string comapare reg
I have define array1[](predefined) and another array2[] received from hyperterminal to pic.
Just I want to compare those arrays and if its succeeded I am sending string to lcd ok else error.
But I am getting result as error.
Code (C):
- #include <pic.h>
- #include<string.h>
- #include "lcd_driver.c"
- #define _XTAL_FREQ 8000000
- char UART_Init(const long int baudrate)
- {
- unsigned int x;
- x = (_XTAL_FREQ - baudrate*64)/(baudrate*64);
- if(x>255)
- {
- x = (_XTAL_FREQ - baudrate*16)/(baudrate*16);...