jccsantos
Joined: 01 Nov 2005 Posts: 6
|
2 rs232 diferent speeds????? |
Posted: Tue Nov 01, 2005 10:05 am |
|
|
I want to know if this is valid???? and if is work�s rigth? (problem�s in different speed�s)
Code: | #include <16F877A.h>
#device *=16
#device adc=8
#FUSES NOWDT, HS, PUT, NOPROTECT, NODEBUG, NOBROWNOUT, NOLVP, NOCPD, NOWRT
#use delay(clock=20000000)
#use rs232(baud=115200,xmit=PIN_C6,rcv=PIN_C7,stream=pc)
#use rs232 (baud=127000,parity=O,xmit=PIN_D0,rcv=PIN_D1,stream=ext)
void main() {
byte c;
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(FALSE);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
while (true) {
c=fgetc(ext);
fputc(c, pc);
}
}
|
Need help!!!!!!!!!!!!!
Edit only for a copy paste problem, bracket
Last edited by jccsantos on Tue Nov 01, 2005 10:13 am; edited 2 times in total |
|