EmbeddedRelated.com
Forums

about lcd interfacing

Started by aniket patwardhan December 16, 2008
Joe,

Just noticed that you have already said so. My brain is too slow today
and need some optimization too.

-- OCY

--- In m..., "old_cow_yellow"
wrote:
>
> Joe,
>
> I think Aniket does not have a problem between his MSP430 and the LCD
> unit. His problem is between the LCD and his eyes. A sequence of LCD
> images goes by and he cannot read but the individual frames.
>
> He tried to put delay loops in between frames, but the compiler
> optimized the delay loops out.
>
> -- OCY
>
> --- In m..., Joe Radomski wrote:
> >
> > most lcds are quite forgiving so an exact delay is not necessary,
> its usually important to meet the minimum delays required for each
> command..
> >
> > I've never had any problems using the dco...
> >
> > You should really measure the timings of your pulses.. invest in a
> logic analyzer even a cheap one.. fors simple MC development..
> something like this will work..
> >
> > http://www.sparkfun.com/commerce/product_info.php?products_id38
> >
> > the oly thing to watch out for is that the v high is not adjustable,
> so your VCC has to be set so that at a minimum 2.0v is high.. if you
> keep the current on any individual output to about 4ma or less 2.2v is
> about the safe miniimum.. more current than this and you need to bump
> up the voltage..
> >
> >
> >
> >
> >
> > --- On Sat, 12/20/08, aniket patwardhan wrote:
> >
> > From: aniket patwardhan
> > Subject: Re: [msp430] about lcd interfacing
> > To: m...
> > Date: Saturday, December 20, 2008, 2:42 AM
> >
> >
> >
> >
> >
> >
> > i could manage this all but i think the problem is with clock
> > initialization. Please tell me is it better to use dco or not?
> >
> > Aniket
> >
> > On Sat, Dec 20, 2008 at 1:07 PM, Joe Radomski > yahoo.com> wrote:
> > > remember simple delay loops will usually be optimized out.. SO
you can
> > > change them all you want with little effect.. If the code serves
> no useful
> > > purpose the compiler is free to throw it away..
> > >
> > >
> > > use the intrinsic function __delay_cycles found in many of the
msp430
> > > compilers
> > >
> > > __delay_cycles( unsigned long n);
> > >
> > >
> > > n MUST be a constant, this produces inline code..
> > >
> > >
> > > if you want to try a loop use __no_operation( void);
> > > within the loop but be warned the loop may get thrown away by the
> compiler
> > > as stated above..
> > >
> > > to the compiler these two functions may be the same
> > >
> > > void loop(void)
> > > {
> > > ;
> > > }
> > >
> > > and
> > >
> > > void loop2(void)
> > > {
> > > int i;
> > > for(i= 0; i < 11; i++)
> > > {
> > > ;// anything in here thats not used outside of this function
> > > }
> > >
> > > }
> > >
> > > since both functions do not do anything..
> > >
> > > --- On Sat, 12/20/08, aniket patwardhan > gmail.com> wrote:
> > >
> > > From: aniket patwardhan
> > > Subject: Re: [msp430] about lcd interfacing
> > > To: msp430@yahoogroups. com
> > > Date: Saturday, December 20, 2008, 2:05 AM
> > >
> > > hello
> > >
> > > even i could send the data to lcd using 4 bit.my prob is with
delay.i
> > > even used nested loops but when i vary the count it is not
varying.i m
> > > working with MSP430F1611. Please can you send me your initialization
> > > code.
> > >
> > > Aniket
> > >
> > > On Sat, Dec 20, 2008 at 7:16 AM, Thanh Tran > yahoo.com> wrote:
> > >> I could send text from a MSP430F2012 to the LCD using 4 bit with no
> > >> problem.
> > >> The delay between commands or between character was just a simple
> piece of
> > >> code of 2 nested for loops. One thing I found was that make
sure you
> > >> follow
> > >> the initialize sequence, otherwise, sometimes the text shows up
> correctly,
> > >> sometimes it doesn't.
> > >>
> > >> -Thanh
> > >>
> > >> --- On Mon, 12/15/08, aniket patwardhan
gmail.com>
> > >> wrote:
> > >> From: aniket patwardhan
> > >> Subject: [msp430] about lcd interfacing
> > >> To: msp430@yahoogroups. com
> > >> Date: Monday, December 15, 2008, 11:08 PM
> > >>
> > >> hello
> > >>
> > >> i am currently working on msp430f1611 and interfacing it with
> > >>
> > >> 5V lcd which is of 44780 type in 4 bit mode.I have written the
> > >>
> > >> functions for writing nibbles into mc.I could display the
characters
> > >>
> > >> on lcd but the delay placed in between is not working.Please
guide me
> > >>
> > >> about time specifications and clock to be used i.e.mclk,smclk. I m
> > >>
> > >> using 32.768 khz crystal.
> > >>
> > >> Thanks
> > >>
> > >> Aniket
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>

Beginning Microcontrollers with the MSP430