We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, AS I am a newbie to this field, please help me in using MCB2360.I wrote loopback code for UART.Able to see simulated output , i.e character typed in Command Window is echoed in the Peripheral Window.But why I try to test in HyperTerminal connecting RS232 straight cable to PC and COM1 of MCB2360, I am unable to see the typed character.Are there any setting for jumpers needed.
int main (void) { /* execution starts here */ int c; init_serial(); /* Init UART */ PINSEL0 |= 0x40000000; /* Enable TxD1 */ PINSEL1 |= 0x00000001; /* Enable RxD1 */ U1FDR = 0; /* Fractional divider not used */ U1LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit */ U1DLL = 78; /* 9600 Baud Rate @ 12.0 MHZ PCLK */ U1DLM = 0; /* High divisor latch = 0 */ U1LCR = 0x03; /* DLAB = 0 */ while(1){ c=getkey(); /* read character */ sendchar(c); /* the 'printf' function call */ } }