Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4934

Pic16f877A uart string comapare reg

$
0
0
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.

Code (C):
  1.  
  2. #include <pic.h>
  3. #include<string.h>
  4. #include "lcd_driver.c"
  5. #define _XTAL_FREQ 8000000
  6.  
  7. char UART_Init(const long int baudrate)
  8. {
  9. unsigned int x;
  10. x = (_XTAL_FREQ - baudrate*64)/(baudrate*64);
  11. if(x>255)
  12. {
  13. x = (_XTAL_FREQ - baudrate*16)/(baudrate*16);...
Pic16f877A uart string comapare reg

Viewing all articles
Browse latest Browse all 4934

Latest Images

Trending Articles



Latest Images