Thanks for the help guys. I finally got things working and ultimately George was right in that I inited some of the UART0 parameters wrong. In addition to initing the UART0 for 19200 and setting Hyperterminal to 9600, I selected UART1 in the pinselect0 register, no UART0.
- John
"George M. Gallant, Jr." <ggallant571@...> wrote: John,
Without looking in detail, your narrative say setting hyperterm to 9600
and the code comment says 19200.
George
On Mon, 2006-04-24 at 10:49 +0000, jstamos111 wrote:
> Hey all,
>
> I am trying to get UART0 output to display on hyperterminal for a
> board I made based on the LPC2106 processor. I use the ISP and
> UART0 to program the board with Philips flash utility, then start
> hyperterminal with the following settings: 9600 bits/second, 8
> databits, no parity, 1 stop bit, and no flow control. I set
> hyperterminal to listen on the same com port as the one I used to
> program the flash memory. I also have the computer's com port
> connected to the LPC2106's same UART (UART0?) that I used to program
> the flash memory. Finally, I hit reset, but the output is not
> displayed in hyperterminal.
>
> Any thoughts on why I am not seeing any output in hyperterminal?
>
> Here is my code which I compiled uvision by keil tools. I pretty
> much stole this code from hitex's book for the philips LPC
> processors.
>
> void UART0 (void)
> {
> PINSEL0 = 0x05; // Select TxD and RxD on pin connect block
> U0LCR = 0x80; //Enable programming of divisor latches
>
> U0DLL = 0xC2; //Program the divisor latch for 19200 baud
> U0DLM = 0x00;
>
> U0LCR = 0x33; //Program the line control 8\N\1
> U0FCR = 0x4F; //enable the FIFO's
>
> }
>
> int main() {
> UART0();
>
> printf("Hello World\n"); //Call the printf function
> while(1) {}
> return 0;
> }
>
> Much Thanks.
> - John
>
>
>
>
>
>
>
> ______________________________________________________________________
> YAHOO! GROUPS LINKS
>
>
> 1. Visit your group "lpc2000" on the web.
>
> 2. To unsubscribe from this group, send an email to:
> lpc2000-unsubscribe@yahoogroups.com
>
> 3. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
>
> ______________________________________________________________________
>
>
[Non-text portions of this message have been removed]
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "lpc2000" on the web.
To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min with Yahoo! Messenger with Voice.
[Non-text portions of this message have been removed]