buenas Estoy teniendo problemas con la Uart, estoy casi seguro que el problema puede estar por la frec del osc y par tal motivo no genera bien el baud rate.
No puede ver los caracteres q salen de uart con el hipertermnal y no tengo problema con el hardware. Estoy usando un xtal de 12Mhz
#include <18F26J50.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NODEBUG //No Debug mode for ICD
#FUSES NOXINST //Extended set extension and Indexed Addressing mode disabled (Legacy mode)
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NOPROTECT //Code not protected from reading
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES IOL1WAY //Allows only one reconfiguration of peripheral pins
#FUSES PRIMARY //Primary clock is system clock when scs=00
#FUSES NOWPCFG
#FUSES WPEND
#FUSES WPDIS
#FUSES NOCPUDIV
#FUSES LPT1OSC //Timer1 configured for low-power operation
#FUSES PLLDIV3
#FUSES T1DIG,MSSPMSK7 //No PLL PreScaler
#FUSES DSWDT2147483648,DSWDT,DSBOR,DSWDTOSC_INT,WPFP0,WPFP1,WPFP2,WPFP3,WPFP4
#use delay(clock=12M,type=xtal)
#use rs232(UART2,baud=4800,parity=N,xmit=PIN_B1,rcv=PIN_B0,bits=8,stop=1,stream=gps)
#use rs232(UART1,baud=9600,parity=N,xmit=PIN_A1,rcv=PIN_A0,bits=8,stop=1,stream=gsm)
saludos