So I'm trying to control an Irobot create using a PIC 18F2420 microcontroller, but it seems like it does not turn on the Power LED as I wanted.I know I configured the baudrate correctly because I tested a printf program using a baudrate of 57600. Here's the code
Rich (BB code):
void main(void)
{
OpenUSART(USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE &USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_HIGH, 21);
Delay1KTCYx(4);
while(1)
{
putcUSART(0x80);
putcUSART(0x84);
putcUSART(0x8B);
putcUSART(0x02);
putcUSART(0x00);
putcUSART(0x00);
}
CloseUSART()
}