regin
Junior Member level 1
HI,
i wish to receive data from keyboard and send to controller via zigbee technology.
i am able to transmit the data ,but failed to receive.
please provide embedded c code for this interfacing.
parts of code i got are,
these three piece of code are collected from net.
i am a beginner please help to work on this.
i wish to receive data from keyboard and send to controller via zigbee technology.
i am able to transmit the data ,but failed to receive.
please provide embedded c code for this interfacing.
parts of code i got are,
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 unsigned char c,f; //for receiving character from keyboard while(1) { c=_getchar(); f=putchar(c); } void serial_init() //SERIAL INITIALIZATION { TMOD=0X20; SMOD=0X50; TH1=1; TR1=1; } unsigned char temp,k; // serial receiving while(RI==0) { temp=sbuf; f=temp; RI=0; }
these three piece of code are collected from net.
i am a beginner please help to work on this.
Last edited by a moderator: