Forums

Uart 0, getting started

Started by hellika2003 March 14, 2004
Hi, I have the Keil MCB2100 (www.keil.com/MCB2100) using the 2129. I
have spent nearly 2 days trying to get the UART 0 to do something. I
have got everything looking nice using the uVison3 Uart 0 peripheral
to help. However, when i attempt to connect the serial cable to
display a char in hyper terminal the board goes into a state of
reset..???? I cant see (since i haven't put in any code to handle the
reciept of chars) how this can happen. Anyway.

Am i supposed to do more than just write the char to the Transmit buffer?
I was wondering since (Pclk = cclk) There might be a problem here?
Is there anywhere i can find some sample code?



An Engineer's Guide to the LPC2100 Series

--- In , "hellika2003" <hellika2003@y...>
wrote:
> Hi, I have the Keil MCB2100 (www.keil.com/MCB2100) using the 2129. I
> have spent nearly 2 days trying to get the UART 0 to do something. I
> have got everything looking nice using the uVison3 Uart 0 peripheral
> to help. However, when i attempt to connect the serial cable to
> display a char in hyper terminal the board goes into a state of
> reset..???? I cant see (since i haven't put in any code to handle
the
> reciept of chars) how this can happen. Anyway.
>
> Am i supposed to do more than just write the char to the Transmit
buffer?
> I was wondering since (Pclk = cclk) There might be a problem here?
> Is there anywhere i can find some sample code?

Some development boards use the RTS and DTR lines to effect reset and
ISP modes. Make sure that your serial set-up is not driving these in
a way that will force a reset.

One simple way to do this is to make a simple D9->D9 cable that only
passes through RX, TX and GND for use while testing the code.




Remove J10 after using the ISP Flash Utility or the default state of
the DTR line will hold the micro in reset.

Richard

--- In , "embeddedjanitor"
<charles.manning@t...> wrote:
> --- In , "hellika2003" <hellika2003@y...>
> wrote:
> > Hi, I have the Keil MCB2100 (www.keil.com/MCB2100) using the
2129. I
> > have spent nearly 2 days trying to get the UART 0 to do
something. I
> > have got everything looking nice using the uVison3 Uart 0
peripheral
> > to help. However, when i attempt to connect the serial cable to
> > display a char in hyper terminal the board goes into a state of
> > reset..???? I cant see (since i haven't put in any code to handle
> the
> > reciept of chars) how this can happen. Anyway.
> >
> > Am i supposed to do more than just write the char to the Transmit
> buffer?
> > I was wondering since (Pclk = cclk) There might be a problem here?
> > Is there anywhere i can find some sample code?
>
> Some development boards use the RTS and DTR lines to effect reset
and
> ISP modes. Make sure that your serial set-up is not driving these
in
> a way that will force a reset.
>
> One simple way to do this is to make a simple D9->D9 cable that
only
> passes through RX, TX and GND for use while testing the code.






Excellent, Thanks to all.
Things moving along well now. :)
Dan
--- In , "Richard" <richas@y...> wrote:
> Remove J10 after using the ISP Flash Utility or the default state of
> the DTR line will hold the micro in reset.
>
> Richard
>
> --- In , "embeddedjanitor"
> <charles.manning@t...> wrote:
> > --- In , "hellika2003" <hellika2003@y...>
> > wrote:
> > > Hi, I have the Keil MCB2100 (www.keil.com/MCB2100) using the
> 2129. I
> > > have spent nearly 2 days trying to get the UART 0 to do
> something. I
> > > have got everything looking nice using the uVison3 Uart 0
> peripheral
> > > to help. However, when i attempt to connect the serial cable to
> > > display a char in hyper terminal the board goes into a state of
> > > reset..???? I cant see (since i haven't put in any code to handle
> > the
> > > reciept of chars) how this can happen. Anyway.
> > >
> > > Am i supposed to do more than just write the char to the Transmit
> > buffer?
> > > I was wondering since (Pclk = cclk) There might be a problem here?
> > > Is there anywhere i can find some sample code?
> >
> > Some development boards use the RTS and DTR lines to effect reset
> and
> > ISP modes. Make sure that your serial set-up is not driving these
> in
> > a way that will force a reset.
> >
> > One simple way to do this is to make a simple D9->D9 cable that
> only
> > passes through RX, TX and GND for use while testing the code.