I am using a pic18f4550 to transmit data over a wi.232 wireless module from Radiotronix. I have successfully been able to send data but it seems that the later revisions of the pic18f4550 chip do not work correctly with the module.
My problem is that when using the latest A5 revisions of the chips characters sent over the module are not received correctly. Sending a '#' results in a 'n' on the receiving end. Earlier revision chips do not experience this issue. However when putting the chips in loopback mode the transmission is fine and characters are read in correctly. The modules are cmos compatible so I do not think the levels are the problem.
Im running at 9600baud, here is my code which does work:
// configure USART
OpenUSART( USART_TX_INT_OFF &
USART_RX_INT_OFF &
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_LOW,
77
);
//48000000/(64 * 9600)) -1 = 48000000/614400 = 78 - 1 = 77
//77 = 9600bps
baudUSART( BAUD_IDLE_CLK_HIGH &
BAUD_8_BIT_RATE &
BAUD_WAKEUP_OFF &
BAUD_AUTO_OFF
);
The newer chips do not have any errata docs associated with them. Does anyone have any ideas what my problem could be? Microchip and Radiotronix are not helping me because the chip passes a loopback and the modules work correctly by themselves.
My problem is that when using the latest A5 revisions of the chips characters sent over the module are not received correctly. Sending a '#' results in a 'n' on the receiving end. Earlier revision chips do not experience this issue. However when putting the chips in loopback mode the transmission is fine and characters are read in correctly. The modules are cmos compatible so I do not think the levels are the problem.
Im running at 9600baud, here is my code which does work:
// configure USART
OpenUSART( USART_TX_INT_OFF &
USART_RX_INT_OFF &
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_LOW,
77
);
//48000000/(64 * 9600)) -1 = 48000000/614400 = 78 - 1 = 77
//77 = 9600bps
baudUSART( BAUD_IDLE_CLK_HIGH &
BAUD_8_BIT_RATE &
BAUD_WAKEUP_OFF &
BAUD_AUTO_OFF
);
The newer chips do not have any errata docs associated with them. Does anyone have any ideas what my problem could be? Microchip and Radiotronix are not helping me because the chip passes a loopback and the modules work correctly by themselves.