Real Time Clock using MSP430

Hi !

Im a beginner in the field of embedded systems.

I am making a real time clock using the msp430F2013, which will display the time on a lcd (using a 32768 Hz external quartz crystal).

(I have the eZ430-F2013 tool)

The problem is I cannot create the circuit, as I don’t possess sufficient knowledge for that.

If somebody could help me (PLEASE !) with the schematic, i would be very grateful.

Thanks.

Check http://www.sparkfun.com/commerce/catego … p?cPath=76 and pick a LCD that you like (but do not order it yet). Read the documents and draft a design to interface to F2013. Post your design here. And others will help you.

Hi !

I selected the Hitachi HD44780 16x2 screen, as its the most basic one !

I’ll use the 4-bit mode, as nothing else is possible with the ez430.

So, im going to have the following pin connections on the ez430F2013:

Pin 1 - Vcc

Pin 2 - (P1.0) -

Pin 3 - (P1.1) - RS (register select)

Pin 4 - (P1.2) - R/W (read write)

Pin 5 - (P1.3) - E

Pin 6 - (P1.4) - DB7

Pin 7 - (P1.5) - DB6

Pin 8 - (P1.6) - DB5

Pin 9 - (P1.7) - DB4

Pin 10 - RST

Pin 11 - TEST

Pin 12 - XOUT - quartz crystal

Pin 13 - XIN - quartz crystal

Pin 14 - Ground

I’ll handle the coding part, but i need help with the schematic.

Most of the parts reqd are already there on the ez430, but i need help with the following :

(i) a stable power supply for both HD44780(+4.2V and +5V) and ez430 Target Board (Pin1,14) (+5V or +3.3 V, im not sure)

(ii) how to connect the quartz crystal across XIN and XOUT

(iii) Any other external circuitry reqd.

Thanx

My knowledge about this is very limited. I am sure others will help you.

(1) The datasheets of the Basic 16x2 LCD seems to say that there are two versions. One needs 4.5V to 5.5V to operate, the other one works anywhere from 2.7V to 5.3V. You need to ask SparkFun Electronics about this. The F2013 operates between 1.8V and 3.6V. Thus you definitely want to use the 2.7V to 5.3V LCD, so that F2013 and LCD can share a 3V Lithium primary battery. The LCD needs about 1.5 mA, F2012 needs less than 1 mA.

(2) The backlight of the LCD needs 4.2V and draws 120 mA. You probably need to use 3 AAA batteries and a push button to conserve battery life.

(3) The 32768 Hz crystal usually comes in a small cylindrical package with two leads at the same end of the cylinder. Just sold them directly to pins 12 and 13 of F2013. F2013 has internal capacitors for the crystal under firmware control.

(4) I think if you invert the order of DB4-7 so that they match P1.4-7 in the same order will make your firmware more straightforward.

Could someone else help?

I asked Sparky about 3.3V LCD. This is his reply:

All of our 16x2 LCDs are 5V - they don’t work at lower than 4.2V. Only

the CFAX display can run at 3.3V.

I’m not sure why all the 16x2 LCDs are produced this way. Could have

something to do with the internal negative bias generator circuit, but

the CFAX display does this without problems. Sorry we don’t have a lower

voltage display!

-Nathan

I have just bought a very nice displays from www.mms-e.co.uk.

They have all kinds of displays that works at 3.3. I bought the DOG models, that without backlight are extremly thin comparing the standard ones.

I doesn’t measured the power consuption, but if it’s true what they say in the datasheet it is very low.

Regarding the interface, DOG displays not only have parallel 4 or 8 bit interface, it also has SPI that could be controlled with only 3 wires (parallel uses 4 or 8 plus 3 for control lines). I don’t remember if there were an other more interface.

I hope you find it usefull

Regards,

Carlos.

DIXON:
I have just bought a very nice displays from www.mms-e.co.uk.

They have all kinds of displays that works at 3.3. I bought the DOG models, that without backlight are extremly thin comparing the standard ones.

I doesn’t measured the power consuption, but if it’s true what they say in the datasheet it is very low.

Regarding the interface, DOG displays not only have parallel 4 or 8 bit interface, it also has SPI that could be controlled with only 3 wires (parallel uses 4 or 8 plus 3 for control lines). I don’t remember if there were an other more interface.

I hope you find it usefull

Regards,

Carlos.

thanks for the tip on the 3.3volt LCDs

verlwb/aka. dilbert

How do I insert a file?

I can send you a schematic for a board using an MSP430, real time clock, flash, rs232 comms to the pc, and an interface for a serial 128x64 LCD.

check this might be it will helpful for you…

http://eleceng.dit.ie/frank/msp430/msp430Interrupts.pdf