- This topic has 1 reply, 2 voices, and was last updated 8 years, 4 months ago by
Ashutosh Bhatt.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
September 24, 2016 at 4:15 pm #4560
nallapu venkatesh
ParticipantCan you please write code for in the header files #include "UART.h"#include "uart1.h"This is my project code ( not completly)/************************** HEADDER FILES ************************************/#include <LPC214X.H>#include "lcd.h"#include "UART.h"#include "uart1.h"#include <string.h>/************************** PIN CONNECTIONS ***********************************/#define photodiode (1<<16) //P0.16#define proximity (1<<17)#define buzzer (1<<18) // Buzzer declaration of pin no 18 of PORT0#define motor (1<<19)#define key (1<<20)#define d1 (1<<21)#define d2 (1<<22)/************** PIN DECLARATIONS ****************/#define inc (1<<22) //P1.22#define dec (1<<23)#define ent (1<<24)unsigned char c[20],a[5],i,f1,f2;unsigned char d[50],j,fg1,fg2;unsigned char m,n,ti[10],lt[15],lg[15];unsigned char flag,f,x,b[20],k,numr[15],loc,z;/* KEY PAD SCAN FUNCTION*/unsigned char keyscan(unsigned char loc){unsigned char temp=0;while((IOPIN1 & 0x01000000)!=0x00){if((IOPIN1 & 0x00400000)==0x00){delay(1000);while((IOPIN1 & 0x00400000)==0x00);delay(10);if(temp>=9){temp=9;}else{temp++;}}if((IOPIN1 & 0x00800000)==0x00){delay(1000);while((IOPIN1 & 0x00800000)==0x00);delay(10);if(temp<=0){temp=0;}else{temp–;}}lcdcmd(loc);lcddata(temp+0x30);}delay(1000);while((IOPIN1 & 0x01000000)==0x00);delay(300);return temp;}///// **** GPS initilisation function ******void gpsint(void){lcdclear();if(d[0]=='G' && d[1]=='P' && d[2]=='G' && d[3]=='G' && d[4]=='A' ){disp_loc(0x80,"GPS CONNECTED ");lcdclear();disp_loc(0x80,"LT:");lcdcmd(0x83);loc=17;for(n=0;loc<26;n++){lcddata(lt[n]=d[loc++]);}lt[10]='N';lt[11]='