Lcd 16207

LCD_16207


About the Driver

The driver is written for the NIOS development board DE2. But should work also on other boards with NIOS.

This driver writes 2x16 characters to the Board even when you have sent another count of characters.
If you send less then the left chars are replaced by spaces and if you send more than only the first 32 are used.
Your program has to take care of that. The time for printing on the display should be approximately 2 ms.
To clear the display take similar time but without printing new chars.

To write to the device you can use the ioctl function like in the example below.
Or you can access the device by fread fprintf ... . So you can readout the message of the display.
It is also possible to change the timing of scrolling (line by line).

Quartus and SOPC Builder

For the kernel driver is the used the altera_avalon_lcd_16207 SOPC component.

Add it and name it "lcd_16207_0". It also works with DE2_NIOS_HOST_MOUSE_VGA project.

Generate a new SOF and download it to the board.

uClinux

Copy the kernel driver (lcd_16207.c, lcd_16207.h) to uClinux-dist/linux-2.6.x/drivers/char.

Edit the file Kconfig in uClinux-dist/linux-2.6.x/drivers/char to contain a section for the lcd module like the following part.

config LCD_16207    # note: in the patched tree this seems to be called NIOS_LCD_16207, watch out.
    tristate "Nios LCD 16207 device support"
    depends on NIOS || NIOS2
    help
      This driver supports the Nios LCD 16207 device.


And add in the Makefile in the same directory one line.

obj-$(CONFIG_LCD_16207)         += lcd_16207.o


Then recompile the uClinux kernel. If you use a module then you have to do modprobe lcd_16207.
If you successfully loaded by the kernel then you should see this message: "Device /dev/lcd16207 registered".

Create device file: mknod /dev/lcd16207 c 250 0

Examples

The example lcd16207 rotates the input string char by char for all 32 positions. The string is always written to the LCD.
If you pass less than 32 chars then they are filled with spaces and if there are mor than 32 - they are truncated to 32.

Start the program like : ./lcd16207 "..... Hello! ....."

There are some little programs for showing how to use fread fprintf.
The example lcdtime set the timing value of the driver for scrolling.

Tag page

Files 2

FileSizeDateAttached by 
 lcd16207-kernel.zip
No description
5.38 kB02:57, 8 Dec 2008AdminActions
 lcd16207_example.zip
No description
5.17 kB02:57, 8 Dec 2008AdminActions
Viewing 2 of 2 comments: view all
I could use some help with this driver. I am using it on the Cyclone II Nios II dev kit. After following the steps descirbed above the code build had several minor errors. I corrected these and successfully built the code. However when the system starts up, I get the console message, "Uncompressing Linux... OK, booting the kernel", over and over. Can anyone tell me what cause this to occur in the boot up process?
Posted 16:49, 30 Jul 2009
Nice story about this.
Great Nice Pictures
causes back pain knee high shoes lizlange maternity fishing boats sale flu incubation period remedies sore throat cost breast implants muscle weight gain surgery breast reduction girls party ideas women laptop bags car brake parts continuing nursing education cost breast augmentation protein whey powder baby slings carriers bed bugs pictures bedding duvet covers phone pay as you go outdoor swing sets discount dinnerware sets coffee espresso machines salton yogurt maker hair color pictures pictures of haircuts asvab practice test herpes photos easy cooking recipes toy dog breeds herpes simplex 1 personalized dog tags stress fracture foot occupational therapy schools frontline plus cats fleas on humans physical therapy salary scabies pictures pictures of shingles what is blood pressure ibuprofen side effects pictures of ringworm gendongan bayi kain cukin ring sling pouch sling perlengkapan bayi selendang bayi nursing cover selendang baby perlengkapan bayi baru lahir bayi bayi lucu foto bayi parish vintage ebooks download tv series download manga free download make money online health information cell phone review disorders anxiety psat practice test blood preasure smart water filter filter pur water weight loss effects blood pressure side effects socks over knee socks dress Hot News Today Jual Beli Make Money Celebrity Gossip Kesehatan Alternatif Gosip Selebritis celebrity photos celebrity news hot celebrities celebrity blog kesehatan info kesehatan kesehatan kerja pelayanan kesehatan indonesia artis foto artis gambar artis selebriti iklan iklan gratis jual online handphone daily news breaking news local news online news food dehydrator tray massage chair ijoy homedics massage shiatsu evening gown dress evening wedding dress dry face skin gold toe sock window coverings blinds blinds for windows lip gloss cosmetics folding table chairs women high heels stockings high heels treatment of pain chlorine generation makeup lighted mirror pain management specialist lawn pest control garden pest control joint pain causes
Posted 16:09, 20 Jul 2010
Viewing 2 of 2 comments: view all
You must login to post a comment.
SourceForge.net