Table of Contents

TFT-LCD card for Blackfin BF537 STAMP board


MainBoard: BF537 STAMP (unknown if this card works with the BF537-EZKIT Lite).

LCD type: LQ035Q7DB03

Interface: PPI(P8), Timers(P11)

Schematics & BOM

Hardware Setup

STAMP Board Setup

LCD Board Setup

To assemble the LCD Card, follow the following directions:

Kernel Config

The latest version of uClinux for Blackfin can be obtained from the Blackfin/uClinux website. The current kernel source supports all existing blackfin parts.

Assume uClinux-dist is current directory, and user is cvshdr.

cvshdr@colinux:~/uclinux/uClinux-dist$ make menuconfig

A window will display, configure it as follows:

  Vendor/Product Selection  --->
      --- Select the Vendor you wish to target
      (AnalogDevices) Vendor 
      --- Select the Product you wish to target
      (BF537-STAMP) AnalogDevices Products
  Kernel/Library/Defaults Selection  --->
      --- Kernel is linux-2.6.x 
       (uClibc) Libc Version    
       [ ] Default all settings (lose changes)    
       [*] Customize Kernel Settings (NEW)        
       [*] Customize Vendor/User Settings (NEW)
       [ ] Update Default Vendor Settings      

Exit and save the new kernel, and a new window will display. If some prompts display, just press 'ENTER'. The new window looks like:

Make configurations as follows:

  Blackfin Processor Options  --->  
      --- Processor and Board settings
       CPU (BF537)  ---> 
      Kernel is configured for (BF537-STAMP)  ---> 
      --- Cache Support 
      [*] Enable 1M Uncached SDRAM region 
  Device Drivers  ---> 
      I2C support  ---> 
          <*> I2C support
          I2C Hardware Bus support  --->
               <M> Blackfin TWI I2C support 
  Graphics support  --->             
      <*> Support for frame buffer devices 
      <*>   SHARP LQ035 TFT LCD on uClinux (BF537 STAMP)
      [*] Backlight & LCD device support  ---> 
          --- Backlight & LCD device support 
          <*>   Lowlevel Backlight controls
          <*>   Lowlevel LCD controls

Exit and save configuration. Now another windows will display: This windows looks like:

Make Microwindows configurations as follows:

  MicroWindows  --->
      [*] MicroWindows 
      --- Libraries
      [*] Microwin (NEW)
      --- Demos 
      [*] MicrowinDemo (NEW) 
      --- Settings
      (Packed-16bit-5/6/5) Screeen PixType
      --- Mouse/Touch Screen
      [*] Serial Mouse 
      --- Keyboard
      [*] No Keyboard

Exit ans save the new configurations. Then:

cvshdr@colinux:~/uclinux/uClinux-dist$ make


Download the kernel image to BF537 STAMP board.

If the video driver has been compiled as a module, you must install it.

root:~> modprobe bf537-lq035
root:~> video_test

The test curve will display on the LCD panel.


The mouse will be connected to UART 0. To use it, you need to disable the shell on that UART. Then use telnet as a shell.

enter the folder of uClinux-dist.

cvshdr@colinux:~/uclinux/uClinux-dist$ make menuconfig


  Kernel/Library/Defaults Selection  --->
      [*] Customize Vendor/User Settings (NEW)

Exit and save, then you will see the Vendor/User configuration Dialog. Select:

  Core Applications  --->
      [*] init
      [ ]   enable console shell 

Exit and save.

	ifconfig eth0 <ipaddr> up
	inetd &

the ipaddr can be any address the user wants, for example: ifconfig eth0 up inetd &

cvshdr@colinux:~/uclinux/uClinux-dist$ make
          537-stamp RS232 port            mouse
                    2  ------------------ 3
                    3  ------------------ 2
                    5  ------------------ 5
                                          7 -------- 5V power

Because there are no RTS/CTS signals on the stamp board, the mouse will need external power on it's number 7 pin. (As a suggestion, you can use the UART1's pin 2 on stamp board as 5V power)

Special Notes when using LCD card with SPI device

Since Lq035 uses GPIO PF13 as UD signal, which conflicts with SPICLK. This will cause problem when using SPI device like AD1836 sound card, AD7877 touch screen board, etc.

We need to modify the board, by grounding the pin on the BF537-STAMP board that corresponds to the UD feed using a resistor (after cutting the UD lead) which drove the signal to zero. Also the Lq-035 driver need to be changed to disable “UD” setting (Comment out ”#define UD GPIO_PF13 /* Up / Down */”).