Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2016, 10:34:15 10:34


Login with username, password and session length


Pages: [1]
Print
Author Topic: LCD VIM-332 & PIC16F917  (Read 3750 times)
0 Members and 1 Guest are viewing this topic.
spurs21
Cracking Team
Active Member
****
 Muted
Offline Offline

Posts: 151

Thank You
-Given: 33
-Receive: 50



« on: November 02, 2008, 02:27:14 02:27 »

Hi friends, im using the picdem mechatronics and is the first time that i use a lcd like vim 332, the pic includes a module for drive lcds, i've found a sample of how to use this lcd, is simple but now i want to control it and use all 3 digits available. the pbp sample is this for control this lcd:

Code:
PAUSE 1000 'wait for LCD start up

LCDPS = %00110000  'Selecting the frame prescale

LCDSE0.0 = 1 'Segment pins
LCDSE0.1 = 1
LCDSE0.2 = 1
LCDSE0.3 = 1
LCDSE0.6 = 1
LCDSE1.3 = 1
LCDSE2.0 = 1
LCDSE2.5 = 1
LCDSE2.6 = 1
LCDSE2.7 = 1

LCDCON = %10010011 'Multiplex,bias,timing, sleep

LCDDATA0 = %01001000 'ENCIENDE EL SEGMENTO A DEL 2 Y 3 DIGITO
LCDDATA1 = %00001000 'ENCIENDE EL SEGMENTO A DEL 3 DIGITO
LCDDATA2 = %10100000 'ENCIENDE EL SEGMENTO A DEL 3 DIGITO
LCDDATA3 = %00000000
LCDDATA4 = %00001000 'ENCIENDE EL SEGMENTO G DEL 3 DIGITO
LCDDATA5 = %11100000 'ENCIENDE EL SEGMENTO G DEL 2 DIGITO, EL SEG F Y G  DEL PRIMER DIGITO
LCDDATA6 = %00001100 'ENCIENDE EL NUM 1 Y EL SEG E DEL 3 DIGITO
LCDDATA7 = %00000000
LCDDATA8 = %10100000 'ENCIENDE EL SEGMENTO C DEL 2 Y PRIMER DIGITO
LCDDATA9 = %01001000 'ENCIENDE EL SEGMENTO D DEL 2 Y 3 DIGITO
LCDDATA10 = %00000000
LCDDATA11 = %00000000

PIR2.4 = 0 'clearing LCD interrupt flag

LCDCON = %01010011 'enabling bias voltage pins
LCDCON = %11010011 'enabling the LCD module

My question is: Is there any routine or library in pbp that control this kind of LCDs?, or Does anybody have done any like this?

The thing that i wanna do is make a pbp program wich make the same that the project5 done by microchip in assembler. I'll let u below the assembler code and if anybody have something like this, i'll be grateful with that person. Thanks in advance and best regards.. Smiley
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #1 on: November 02, 2008, 08:47:58 20:47 »

I believe this may help.
http://www.picbasic.co.uk/forum/archive/index.php/t-6216.html
Logged

Note: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
spurs21
Cracking Team
Active Member
****
 Muted
Offline Offline

Posts: 151

Thank You
-Given: 33
-Receive: 50



« Reply #2 on: November 02, 2008, 11:17:52 23:17 »

mm thanks pickit2 but i read that post before, and the sample is the same that i, but that sample is just to write "1234" on the lcd, and i need something like microchip have done in the project that i attached. Any way thanks friend and regards  Wink
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 3816

Thank You
-Given: 567
-Receive: 2049


There is no evidence that I muted SoNsIvRi


« Reply #3 on: November 04, 2008, 04:19:14 16:19 »

here is the data to light the digits, you need to have a look up table.
Code:
'Show Digits and DPs only
LCDDATA0 = 0  '8 = 3A : 64 = 2A 
LCDDATA1 = 0  '8 = 3B   
LCDDATA2 = 0  '128 = 1B : 64 = 1A : 32 = 2B
LCDDATA3 = 0  '8 = 3F : 64 = 2F   
LCDDATA4 = 0  '8 = 3G 
LCDDATA5 = 0  '128 = 1G : 64 = 1F : 32 = 2G   
LCDDATA6 = 0  '64 = 2E : 8 = 3E : 4 = 1B+C
LCDDATA7 = 0  '8 = 3C             
LCDDATA8 = 0  '128 = 1C : 64 = 1E  : 32 = 2C   
LCDDATA9 = 0  '64 = 2D : 8 = 3D : 4 = 4PP
LCDDATA10 = 0 '8 = 3DP
LCDDATA11 = 0 '64 = 1D : 32 = 2DP
Logged

Note: If you have no posts other than, I want or reporting a dead link Then you can't complain If I remove your post So Stop Leeching
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC