CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Driving LCD in sleep mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hello188



Joined: 02 Jun 2010
Posts: 74

View user's profile Send private message

Driving LCD in sleep mode
PostPosted: Mon Jun 07, 2010 1:46 am     Reply with quote

Hi, all
The data sheet for the PIC18F65J90 states that I can keep driving the LCD while in sleep mode using TIMER1.


To use timer1 to drive LCD, can I just feed external pulse to T13CKI pin or should I have full TIMER1 oscillator on?

Thank you
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 07, 2010 11:35 am     Reply with quote

Quote:

To use timer1 to drive LCD, can I just feed external pulse to T13CKI pin
or should I have full TIMER1 oscillator on?

Their intention is that you should put a 32.768 KHz watch crystal on
the Timer1 oscillator pins and enable the oscillator. But, I think it
would also work the way that you propose.

Make sure you setup the LCD clock divisor correctly. They want to get
a 1 KHz output, to drive the LCD. If you use 32 KHz external input
signal, then you need to set the divisor to 32. This gives 1 KHz for the LCD.
The PIC data sheet says:
Quote:

The LCD clock generator uses a configurable
divide-by-32/divide-by-8192 postscaler to produce a
baseline frequency of about 1 kHz nominal, regardless
of the source selected. The clock source selection and
the postscaler configuration are determined by the
Clock Source Select bits, CS1:CS0 (LCDCON<3:2>).
hello188



Joined: 02 Jun 2010
Posts: 74

View user's profile Send private message

asd
PostPosted: Mon Jun 07, 2010 9:11 pm     Reply with quote

Thanks, i got it working by using 31Khz internal oscilaltor
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group