Microcontroller › 8051 › Servo control using keypad 8051
- This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by Ashutosh Bhatt.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
April 21, 2015 at 11:39 am #3632Antony GeorgeParticipant
FATAL ERROR L210: I/O ERROR ON INPUT FILE:
EXCEPTION 0021H: PATH OR FILE NOT FOUND
FILE: C:KEILC51LIBC51FPS.LIBThe program gives me the above error.. Someone please help
// Program to rotate servo to user defined angular position
// 0 degree = 700us// 180 degree = 5500us// Timer1 pulse after 50us -23#include<reg51.h>#define dataport P2 // Data port for LCD#define key P0 // Port for Keypad#define port P1sbit output = port^0;sbit rs = port^3;sbit rw = port^4;sbit en = port^5;sbit col1 = key^4;sbit col2 = key^5;sbit col3 = key^6;sbit row1 = key^0;sbit row2 = key^1;sbit row3 = key^2;sbit row4 = key^3;int count=0,time=0,check, digit[3];void delay(unsigned int msec) // Function for delay{int i,j;for(i=0;i<msec;i++)for(j=0;j<1275;j++);}void lcd_cmd(unsigned char item) // Function to send command to LCD{dataport = item;rs= 0;rw=0;en=1;delay(1);en=0;return;}void lcd_data(unsigned char item) // Function to send one byte data to LCD{dataport = item;rs= 1;rw=0;en=1;delay(1);en=0;return;}void lcd_data_string(unsigned char *str) // Function to send string to LCD{int i=0;while(str!='