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

pcf2113 i2c lcd driver

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



Joined: 06 Nov 2005
Posts: 29

View user's profile Send private message

pcf2113 i2c lcd driver
PostPosted: Wed May 31, 2006 5:32 pm     Reply with quote

Anybody had any experience with the pcf2113 lcd driver from philips?
Im having a few problems with a purchased module which came with little data.
http://mec-symonds.eng.monash.edu.au/twiki/bin/view/Saqqara/LcdModulePcf2113

Main problems:
1) there are some "icons" not apart of the matrix make up which seem, once the display is initialised, are permanently on. ie I cant find their address
2)The data sheet doesn't explain how to access the other character sets.

thanks
mds



Joined: 06 Nov 2005
Posts: 29

View user's profile Send private message

PostPosted: Wed May 31, 2006 5:59 pm     Reply with quote

solved number 2
missed a line in the data book
the suffx x in the pcf2113x denotes which character set is hard coded.
Using some code I deduced I have the A character set.
vibrasys



Joined: 20 Nov 2005
Posts: 16
Location: the Netherlands

View user's profile Send private message

PostPosted: Fri Jun 02, 2006 4:24 pm     Reply with quote

Here's a lcd driver: PCF2113 code example - http://sandiding.tripod.com/phlcd.html
Quote:
;***************************************************
;* Lcd icon sets off *
;***************************************************
call iict
movlw 0x74
call act
movlw 0x80 ; Co=1, RS=0 just one next command byte
call act
movlw 0x40 ; set CGRAM for icons
call act
movlw 0x40 ; Co=0, RS=1, set instruction register for multiple next data bytes
call act
movlw 0x00 ; erase icons sequence
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
movlw 0x00
call act
call iicp ; i2c stop

(*act-> iic data transmission routine,
movlw 0x00-----
call act -----same as i2c_write(0x00); )

Best Regards
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