Mr.Khiros
Junior Member level 3
- Joined
- Aug 25, 2013
- Messages
- 26
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 176
Hi ,
i'm tring to send data recieved from a temperature sensor using TWS 434/ RWS 434 & 2 PIC16F877A
I'm using Mikroc , but not able to write a programme for the tow PIC's
For Pic transmitter
For reciever
Need your hlp plz
i'm tring to send data recieved from a temperature sensor using TWS 434/ RWS 434 & 2 PIC16F877A
I'm using Mikroc , but not able to write a programme for the tow PIC's
For Pic transmitter
PHP:
void main() {
PORTA = 0;
TRISA = 0X01;
PORTB = 0;
TRISB = 0;
ADCON1 = 0x0E;
ADC_Init();
uart1_init(9600);
while (1){
ADRead = (ADC_Get_Sample(0) * 500) >> 10;
WordToStr(ADRead, Display);
UART1_Write_Text(Display);
}
}
PHP:
void main() {
LCD_Init();
LCD_Cmd(_LCD_CURSOR_OFF);
LCD_Cmd(_LCD_CLEAR);
uart1_init(9600);
while (1){
Lcd_Out(2, 1, Uart1_Read());
}
}