i have my interfacing for PIC16F877a, i'm using C programming, when i view my output on hyperterminal it shows some special characters, what's wrong with this?? please help..
int adc_rd;
char txt1[10], txt2[10], txt3[10], txt4[10];
void main() {
ADCON1 = 0;
TRISA =0xFF;
UART1_Init(9600);
Delay_ms(100);
while(1){
adc_rd=ADC_Read(0);
IntToStr(adc_rd, txt1);
Delay_ms(2);
adc_rd=ADC_Read(1);
IntToStr(adc_rd, txt2);
Delay_ms(2);
adc_rd=ADC_Read(2);
IntToStr(adc_rd, txt3);
Delay_ms(2);
adc_rd=ADC_Read(3);
IntToStr(adc_rd, txt4);
UART1_Write('A');
UART1_Write(',');
UART1_Write_Text(txt1);
UART1_Write(',');
UART1_Write_Text(txt2);
UART1_Write(',');
UART1_Write_Text(txt3);
UART1_Write(',');
UART1_Write_Text(txt4);
UART1_Write(',');
Delay_ms(1000);
}
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
| K | problem in serial interfacing pc hyperterminal | Microcontrollers | 0 | |
| K | hyperterminal window does not open | Microcontrollers | 3 | |
| C | command sending from hyperterminal to thermal printer | Microcontrollers | 4 | |
| C | Capture HyperTerminal file | General Electronics Chat | 6 | |
| L | accessing hyperterminal through lan | General Electronics Chat | 2 |