⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfag12864b

📁 linux 内核源代码
💻
字号:
	===================================	cfag12864b LCD Driver Documentation	===================================License:		GPLv2Author & Maintainer:	Miguel Ojeda Sandonis <maxextreme@gmail.com>Date:			2006-10-27--------0. INDEX--------	1. DRIVER INFORMATION	2. DEVICE INFORMATION	3. WIRING	4. USERSPACE PROGRAMMING---------------------1. DRIVER INFORMATION---------------------This driver support one cfag12864b display at time.---------------------2. DEVICE INFORMATION---------------------Manufacturer:	CrystalfontzDevice Name:	Crystalfontz 12864b LCD SeriesDevice Code:	cfag12864bWebpage:	http://www.crystalfontz.comDevice Webpage:	http://www.crystalfontz.com/products/12864b/Type:		LCD (Liquid Crystal Display)Width:		128Height:		64Colors:		2 (B/N)Controller:	ks0108Controllers:	2Pages:		8 each controllerAddresses:	64 each pageData size:	1 byte each addressMemory size:	2 * 8 * 64 * 1 = 1024 bytes = 1 Kbyte---------3. WIRING---------The cfag12864b LCD Series don't have official wiring.The common wiring is done to the parallel port as shown:Parallel Port                          cfag12864b  Name Pin#                            Pin# NameStrobe ( 1)------------------------------(17) EnableData 0 ( 2)------------------------------( 4) Data 0Data 1 ( 3)------------------------------( 5) Data 1Data 2 ( 4)------------------------------( 6) Data 2Data 3 ( 5)------------------------------( 7) Data 3Data 4 ( 6)------------------------------( 8) Data 4Data 5 ( 7)------------------------------( 9) Data 5Data 6 ( 8)------------------------------(10) Data 6Data 7 ( 9)------------------------------(11) Data 7       (10)                      [+5v]---( 1) Vdd       (11)                      [GND]---( 2) Ground       (12)                      [+5v]---(14) Reset       (13)                      [GND]---(15) Read / Write  Line (14)------------------------------(13) Controller Select 1       (15)  Init (16)------------------------------(12) Controller Select 2Select (17)------------------------------(16) Data / InstructionGround (18)---[GND]              [+5v]---(19) LED +Ground (19)---[GND]Ground (20)---[GND]              E    A             Values:Ground (21)---[GND]       [GND]---[P1]---(18) Vee    - R = Resistor = 22 ohmGround (22)---[GND]                |                 - P1 = Preset = 10 KohmGround (23)---[GND]       ----   S ------( 3) V0     - P2 = Preset = 1 KohmGround (24)---[GND]       |  |Ground (25)---[GND] [GND]---[P2]---[R]---(20) LED -------------------------4. USERSPACE PROGRAMMING------------------------The cfag12864bfb describes a framebuffer device (/dev/fbX).It has a size of 1024 bytes = 1 Kbyte.Each bit represents one pixel. If the bit is high, the pixel willturn on. If the pixel is low, the pixel will turn off.You can use the framebuffer as a file: fopen, fwrite, fclose...Although the LCD won't get updated until the next refresh time arrives.Also, you can mmap the framebuffer: open & mmap, munmap & close...which is the best option for most uses.Check Documentation/auxdisplay/cfag12864b-example.cfor a real working userspace complete program with usage examples.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -