Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 14th October 2007, 06:01 PM   (permalink)
Default User defined characters-alfanumeric LCD

Haw I write a rutine in MPASM to generate user defined charcters on a alfanumeric LCD, i find a similary example but is write in C++ and i dont undersant..nothing....Can you help me?
ady689 is offline   Reply With Quote
Old 14th October 2007, 06:18 PM   (permalink)
Default

Hi,
Perhaps you need these:

http://winpicprog.co.uk/pic_tutorial3.htm
http://winpicprog.co.uk/pic_tutorial_lcd_board.htm
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 14th October 2007, 06:31 PM   (permalink)
Default

I read this tutorial, and he is not what i want




Purpose: - Load a user-defined character definition into the HD44780 character generator memory.

Quick explanation on how to implement user-defined characters:

First you will need to make a pixel definition for the characters
you want to use. Below is the pixel definition for an underlined
'0' (char code 0x30) based on a 5x7 dots character definition:

| bits | byte
row | 76543210 | value
------------------------
000 | xxx | 0x0E
001 | x x | 0x11
010 | x xx | 0x13
011 | x x x | 0x15
100 | xx x | 0x19
101 | x x | 0x11
110 | xxx | 0x0E
111 | xxxxx | 0x1F
ady689 is offline   Reply With Quote
Old 14th October 2007, 06:37 PM   (permalink)
Default

:P Misunderstood.
I've never tried this, but is the datasheet of HD44780 helpful enough?
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 14th October 2007, 06:39 PM   (permalink)
Default

i need a part of a code to understand how make this with mpasm
ady689 is offline   Reply With Quote
Old 14th October 2007, 07:02 PM   (permalink)
Default

I think the datasheet states clear enough.
Set DDRAM address, CGRAM address and followed by CGRAM data.
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 14th October 2007, 08:10 PM   (permalink)
Default

Read the EPE LCD articles mentioned on my site.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 14th October 2007, 08:15 PM   (permalink)
Default

i dont understand very good, practicaly can you give me an concrete example?
ady689 is offline   Reply With Quote
Old 14th October 2007, 08:21 PM   (permalink)
Default

Quote:
Originally Posted by ady689
i dont understand very good, practicaly can you give me an concrete example?
I've never had reason to do it, but the EPE articles explain exactly what you need to do - writing the code should be trivial?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 14th October 2007, 08:34 PM   (permalink)
Default

this is the problem, idont known how to write this in mpasm
ady689 is offline   Reply With Quote
Old 14th October 2007, 08:41 PM   (permalink)
Default

If you can't write anything, how do you expect to do anything at all with a PIC?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now   Reply With Quote
Old 15th October 2007, 03:18 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
I've never had reason to do it, but the EPE articles explain exactly what you need to do - writing the code should be trivial?.
Here they are:
http://www.electronics-lab.com/forum...?topic=12543.0
__________________
Superman returns..
bananasiong is offline   Reply With Quote
Old 16th October 2007, 09:48 AM   (permalink)
Default

Quote:
Originally Posted by ady689
i dont understand very good, practicaly can you give me an concrete example?
hi,
Attached is a Oshonsoft Basic program and its asm listing output.
You should be able to figure out how defined characters are created and used.

Hope this helps.

EDITED: its best to download the *.asm to view off line, else there is no formatting!
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 11:22 AM.
ericgibbs is online now   Reply With Quote
Old 30th October 2007, 07:03 AM   (permalink)
Default

It goes like this,

MOVLW B'01000000' ;USER GRAPHIC 0
CALL COMMAND ;SENT TO LCD AS COMMAND
MOVLW B'00000000' ;PIXEL DATA 1 OF 7
CALL DISPLAY ;SENT TO LCD AS DATA

Then to actualy print the user graphic

MOVLW .0 ;USER GRAPHIC POINTER
CALL DISPLAY ;SENT TO LCD AS DATA
Gordz is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Lcd alfanumeric ady689 Micro Controllers 3 3rd October 2007 01:27 AM
PIC16F628A LCD problems. HerbertMunch Micro Controllers 17 2nd October 2007 09:19 AM
LCD Troubles Kyle-s4h Micro Controllers 13 11th September 2007 12:30 PM
User defined Time period 16f628 jagrolet Micro Controllers 4 5th September 2006 07:37 PM
An error in pic16f84a, why? Zener_Diode Micro Controllers 6 11th April 2004 02:55 AM



All times are GMT. The time now is 11:28 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.