EmbeddedRelated.com
Forums

Example RTC in HyperTerminal

Started by davideciannamea July 15, 2010
Hy everyone. I downloaded the file RTC, in the section File. Under Eclipse Ganymede, OpenOCD JTAG ARM-USB-TINY (platform LPC-P2148 Olimex), the compilation is successful......but a question: when I connect the serial cable rs232 and open HyperTerminal, how can I see the result??? I want to see time!!!

Thanks

An Engineer's Guide to the LPC2100 Series

Help please!!!!!!!

--- In l..., "davideciannamea" wrote:
>
> Hy everyone. I downloaded the file RTC, in the section File. Under Eclipse Ganymede, OpenOCD JTAG ARM-USB-TINY (platform LPC-P2148 Olimex), the compilation is successful......but a question: when I connect the serial cable rs232 and open HyperTerminal, how can I see the result??? I want to see time!!!
>
> Thanks
>

--- In l..., "davideciannamea" wrote:
>
> Help please!!!!!!!
>
> --- In l..., "davideciannamea" wrote:
> >
> > Hy everyone. I downloaded the file RTC, in the section File. Under Eclipse Ganymede, OpenOCD JTAG ARM-USB-TINY (platform LPC-P2148 Olimex), the compilation is successful......but a question: when I connect the serial cable rs232 and open HyperTerminal, how can I see the result??? I want to see time!!!
> >
> > Thanks
>
So, can we assume that you have never gotten your serial cable problems resolved?

Hyperterminal is a PITA. Set it for 9600,n,8,1 and go online (off-hook icon). Then, at the LPC2148 end of the cable (unplugged), short pins 2 & 3. Characters you type should echo to the screen.

And, yes, the cable is straight through.

Read section 21.4.2 of the User Manual. Connect Hyperterminal, set as above, and reset the device with P0.14 low. The ISP loader will get control. Type '?' and you should get a response: "Synchronized".

This will prove that Hyperterminal and the serial port are working.

Maybe you should put JTAG on hold for a while and use either Flash Magic or lpc21isp to load the code over the serial cable.

There are MANY reasons why you might not see the time but using serial programming will help eliminate a few. There is always the possibility that the program just doesn't work. If you downloaded RTC.rar, be aware that it was targeted for an LPC2138, not an LPC2148 (I don't know that it matters, I don't know that it doesn't). It was also written for the Keil toolchain and I don't know how you got it to build.

Then again, I'm not sure which RTC file you grabbed.

Richard

mmmm ...... for lpc2138?? I don't think!! I think lpc2148. However thanks!!!

--- In l..., "davideciannamea" wrote:
>
> mmmm ...... for lpc2138?? I don't think!! I think lpc2148. However thanks!!!
>

As I said, I have no idea which RTC you downloaded but the comments for RTC.rar indicate that it is for an LPC2138 which may, or may not, matter.

Then again, as I have no idea which RTC you downloaded, I can't look to see what it is supposed to do.

Richard

I downloaded RTC.zip.rar in the section file (RTC interrupt)

--- In l..., "rtstofer" wrote:
>
> --- In l..., "davideciannamea" wrote:
> >
> > mmmm ...... for lpc2138?? I don't think!! I think lpc2148. However thanks!!!
> > As I said, I have no idea which RTC you downloaded but the comments for RTC.rar indicate that it is for an LPC2138 which may, or may not, matter.
>
> Then again, as I have no idea which RTC you downloaded, I can't look to see what it is supposed to do.
>
> Richard
>

--- In l..., "davideciannamea" wrote:
>
> I downloaded RTC.zip.rar in the section file (RTC interrupt)
Do you get the "I am in main" sign-on message?

Richard

No. I think there is a problem on initialization of uart0!!!

Can you help me??? Thanks

Davide Ciannamea

--- In l..., "rtstofer" wrote:
>
> --- In l..., "davideciannamea" wrote:
> >
> > I downloaded RTC.zip.rar in the section file (RTC interrupt)
> Do you get the "I am in main" sign-on message?
>
> Richard
>

--- In l..., "davideciannamea" wrote:
>
> No. I think there is a problem on initialization of uart0!!!
>
> Can you help me??? Thanks
>
> Davide Ciannamea
>

The hex file included in the archive functions fine on an Olimex LPC-P2148 board, at least in terms of serial IO.

The proper setup for Hyperterminal is 19200,n,8,1 as indicated in UART0.c

I don't think the clock works properly - at least on my board. But that wasn't the point of this exercise.

Richard