📄 tft-lcd_card.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#tft-lcd_card_for_blackfin_bf537_stamp_board" class="toc">TFT-LCD card for Blackfin BF537 STAMP board</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#targets" class="toc">Targets</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#hardware_setup" class="toc">Hardware Setup</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#kernel_config" class="toc">Kernel Config</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#test" class="toc">Test</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#mouse" class="toc">Mouse</a></span></div></li></ul></li></ul></div></div><h1><a name="tft-lcd_card_for_blackfin_bf537_stamp_board" id="tft-lcd_card_for_blackfin_bf537_stamp_board">TFT-LCD card for Blackfin BF537 STAMP board</a></h1><div class="level1"></div><!-- SECTION [1-61] --><h2><a name="targets" id="targets">Targets</a></h2><div class="level2"><p> MainBoard: BF537 STAMP.</p><p>LCD type: LQ035Q7DB03</p><p>Interface: PPI(P8), Timers(P11) </p></div><!-- SECTION [62-165] --><h2><a name="hardware_setup" id="hardware_setup">Hardware Setup</a></h2><div class="level2"><ol><li class="level1"><div class="li"> Switch all DIPs of SW5 on BF537 stamp board to position OFF</div></li><li class="level1"><div class="li"> Connect the control cable of the LCD pannel to the control socket (bit one) on the daughter board. Metal side faces up. </div></li><li class="level1"><div class="li"> Connect the back light cable of the LCD pannel to the back light socket (small one) on the daughter board. Metal side faces up. </div></li><li class="level1"><div class="li"> Connect the LCD daughter board to the PPI socket, LCD panel part should be out of the BF537 board.</div></li><li class="level1"><div class="li"> Connect the 10-<acronym title="Personal Identification Number">PIN</acronym> cable to the timer sockets on both BF537 stamp board and LCD daughter board. Line 1 should be connect to <acronym title="Personal Identification Number">PIN</acronym> 1 of both sockets.</div></li></ol></div><!-- SECTION [166-769] --><h2><a name="kernel_config" id="kernel_config">Kernel Config</a></h2><div class="level2"><p> The latest version of uClinux for Blackfin can be obtained from the Blackfin/uClinux website. The current kernel source supports all existing blackfin parts. </p><p>Assume uClinux-dist is current directory, and user is cvshdr.</p><pre class="code">cvshdr@colinux:~/uclinux/uClinux-dist$ make menuconfig</pre><p>A window will display, configure it as follows:</p><pre class="code"> Vendor/Product Selection ---> --- Select the Vendor you wish to target (AnalogDevices) Vendor --- Select the Product you wish to target (BF537-STAMP) AnalogDevices Products</pre><pre class="code"> 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 </pre><p> Exit and save the new kernel, and a new window will display. If some prompts display, just press ‘ENTER’. The new window looks like:</p><p><a href="media/lcd-config1.png" class="media" target="_blank" title="lcd-config1.png"><img src="media/lcd-config1.png" class="media" alt="" /></a> </p><p>Make configurations as follows: </p><pre class="code"> Blackfin Processor Options ---> --- Processor and Board settings CPU (BF537) ---> Kernel is configured for (BF537-STAMP) ---> --- Cache Support [*] Enable 1M Uncached SDRAM region </pre><pre class="code"> Device Drivers ---> I2C support ---> <*> I2C support I2C Hardware Bus support ---> <M> Blackfin TWI I2C support </pre><pre class="code"> 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 </pre><p>Exit and save configuration. Now another windows will display: This windows looks like:</p><p><a href="media/lcd-config2.png" class="media" target="_blank" title="lcd-config2.png"><img src="media/lcd-config2.png" class="media" alt="" /></a></p><pre class="code"></pre><p>Make Microwiindows configurations as follows: </p><pre class="code"> MicroWindows ---> [*] MicroWindows --- Libraries [*] Microwin (NEW) --- Demos [*] MicrowinDemo (NEW) --- Settings (Packed-16bit-5/6/5) Screeen PixType --- Mouse/Touch Screen [*] Serial Mouse --- Keyboard [*] No Keyboard </pre><p>Exit ans save the new configurations. Then:</p><pre class="code">cvshdr@colinux:~/uclinux/uClinux-dist$ make</pre></div><!-- SECTION [770-3205] --><h2><a name="test" id="test">Test</a></h2><div class="level2"><p> Download the kernel image to BF537 STAMP board.</p><pre class="code">root:~> root:~> video_test</pre><p>The test curve will display on the LCD panel.</p></div><!-- SECTION [3206-3363] --><h2><a name="mouse" id="mouse">Mouse</a></h2><div class="level2"><p> The mouse will be connected to UART 0. To use it, user need to disable the shell on that UART. Then use telnet as shell. </p><ul><li class="level1"><div class="li"> Disable the UART shell</div></li></ul><p> enter the folder of uClinux-dist.</p><pre class="code">cvshdr@colinux:~/uclinux/uClinux-dist$ make menuconfig</pre><p>Select: </p><pre class="code"> Kernel/Library/Defaults Selection ---> [*] Customize Vendor/User Settings (NEW)</pre><p> Exit and save, then you will see the Vendor/User configuration Dialog. Select: </p><pre class="code"> Core Applications ---> [*] init [ ] enable console shell </pre><p> Exit and save. </p><ul><li class="level1"><div class="li"> Modify uClinux-dist/vendors/AnalogDevices/BF537-STAMP/rc, make sure it includes</div></li></ul><pre class="code"> ifconfig eth0 <ipaddr> up inetd &</pre><p> </p><ul><li class="level1"><div class="li"> Type ‘make’ in folder “uClinux-dist” to rebuild the linux image</div></li></ul><pre class="code">cvshdr@colinux:~/uclinux/uClinux-dist$ make</pre><ul><li class="level1"><div class="li"> After the kernel bootup, use the telnet shell to control the system, for example,</div></li></ul><pre class="code">telnet 192.168.1.16 </pre><ul><li class="level1"><div class="li"> The connection of mouse</div></li></ul><pre class="code"> 537-stamp RS232 port mouse 2 ------------------ 3 3 ------------------ 2 5 ------------------ 5 7 -------- 5V power</pre><p> ’’ </p><pre class="code"> </pre></div><!-- SECTION [3364-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -