Hello everyone. I'm trying to write hello world to a serial program. However, when I ran the following code
Keep in mid I'm using the internal osc of the PIC18F2420.
I see nothing displayed in the serial program, but the cursor moves
Rich (BB code):
#include <p18F2420.h>
#include <delays.h>
#include <usart.h>
#pragma config OSC = INTIO67
#pragma config WDT = OFF
#pragma config PBADEN = OFF
#pragma config LVP = OFF
void main()
{
TRISC=0x00;
OpenUSART(USART_TX_INT_OFF & USART_RX_INT_OFF & USART_ASYNCH_MODE &USART_EIGHT_BIT & USART_CONT_RX & USART_BRGH_HIGH, 51);
while(1)
{
while(BusyUSART());
putrsUSART("Hello");
}
}
Keep in mid I'm using the internal osc of the PIC18F2420.
I see nothing displayed in the serial program, but the cursor moves