Difference between revisions of "All-in-One Android Touch Screen/zh"
From FriendlyELEC WiKi
(→接口定义) |
(→接口定义) |
||
Line 15: | Line 15: | ||
| style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#''' || style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio''' | | style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#''' || style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Name'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Linux gpio''' | ||
|- | |- | ||
− | |1 | + | | style="background: PaleTurquoise; color: black" colspan="1"| '''Pin#''' || style="background: PaleTurquoise; color: black" colspan="1"| '''Symbol'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''I/O'''|| style="background: PaleTurquoise; color: black" colspan="1"| '''Function''' |
|- | |- | ||
− | | | + | |1 || VDD-C-TP || P ||2 || VDD_5V || |
+ | |- | ||
+ | |2 || GND-C-TP || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |3 || RST-C-TP || I ||4 || VDD_5V || | ||
|- | |- | ||
− | |5 || | + | |4 || SCL || I ||2 || VDD_5V || |
+ | |- | ||
+ | |5 || SDA || I/O ||6 || GND || | ||
+ | |- | ||
+ | |6 || INT || O ||2 || VDD_5V || | ||
+ | |- | ||
+ | |7 || GND || P ||8 || UART1_TX / GPIOG6 || 198 | ||
+ | |- | ||
+ | |8 || GND || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |9 || GND || P ||10 || UART1_RX / GPIOG7 || 199 | ||
+ | |- | ||
+ | |10 || VCOM || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |11 || VDD || P ||12 || GPIOA6 || 6 | ||
+ | |- | ||
+ | |12 || VDD || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |13 || RST GLOBAL || I ||14 || GND || | ||
+ | |- | ||
+ | |14 || STBYB || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |15 || GND || P ||16 || UART1_RTS / GPIOG8 || 200 | ||
+ | |- | ||
+ | |16 || RXIN0- || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |17 || RXIN0+ || I ||18 || UART1_CTS / GPIOG9 || 201 | ||
+ | |- | ||
+ | |18 || GND || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |19 || RXIN1- || I ||20 || GND || | ||
+ | |- | ||
+ | |20 || RXIN1+ || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |21 || GND || P ||22 || UART2_RX / GPIOA1 || 1 | ||
+ | |- | ||
+ | |22 || RXIN2- || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |23 || RXIN2+ || I ||24 || SPI0_CS / GPIOC3 || 67 | ||
+ | |- | ||
+ | |24 || GND || P ||22 || UART2_RX / GPIOA1 || 1 | ||
+ | |- | ||
+ | |25 || RXCLKIN- || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |26 || RXCLKIN+ || I ||24 || SPI0_CS / GPIOC3 || 67 | ||
+ | |- | ||
+ | |27 || GND || P ||22 || UART2_RX / GPIOA1 || 1 | ||
+ | |- | ||
+ | |28 || RXIN3- || I ||2 || VDD_5V || | ||
+ | |- | ||
+ | |29 || RXIN3+ || I ||24 || SPI0_CS / GPIOC3 || 67 | ||
+ | |- | ||
+ | |30 || GND || P ||22 || UART2_RX / GPIOA1 || 1 | ||
+ | |- | ||
+ | |31 || GND || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |32 || DIMO || O ||24 || SPI0_CS / GPIOC3 || 67 | ||
+ | |- | ||
+ | |33 || SELB || I ||22 || UART2_RX / GPIOA1 || 1 | ||
+ | |- | ||
+ | |34 || AVDD || P ||2 || VDD_5V || | ||
+ | |- | ||
+ | |35 || GND || P ||24 || SPI0_CS / GPIOC3 || 67 | ||
+ | |- | ||
+ | |36 || LED- || P ||24 || SPI0_CS / GPIOC3 || 67 | ||
|- | |- | ||
− | | | + | |37 || LED- ||P ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |38 || L/R || I ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |39 || U/D || I ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |40 || VGL || P ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |41 || CABCEN1 || I ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |42 || CANCEN0 || I ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |43 || VGH || P ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |44 || LED+ || P ||24 || SPI0_CS / GPIOC3 || 67 |
|- | |- | ||
− | | | + | |45 || LED+ || P ||24 || SPI0_CS / GPIOC3 || 67 |
|} | |} | ||
Revision as of 07:01, 15 March 2019
1 介绍
- All-in-One Android Touch Screen是友善电子设计开发并生产的一款9寸高清电容触摸显示屏,分辨率为1280 x 800,支持触摸,背光可调(通过i2c通讯),特意定做的底板接口适用于友善电子出品的Smart4418、Smart6818核心板,可支持Linux, Android等嵌入式系统,并且驱动开源。
- 底板使用定制的支架和屏幕固定,没有制作外壳,非常方便企业用户安装到设备中做二次开始使用。
2 机械尺寸图
3 接口定义
- HD900(LVDS)接口定义
Pin# Name Linux gpio Pin# Name Linux gpio Pin# Symbol I/O Function 1 VDD-C-TP P 2 VDD_5V 2 GND-C-TP P 2 VDD_5V 3 RST-C-TP I 4 VDD_5V 4 SCL I 2 VDD_5V 5 SDA I/O 6 GND 6 INT O 2 VDD_5V 7 GND P 8 UART1_TX / GPIOG6 198 8 GND P 2 VDD_5V 9 GND P 10 UART1_RX / GPIOG7 199 10 VCOM P 2 VDD_5V 11 VDD P 12 GPIOA6 6 12 VDD P 2 VDD_5V 13 RST GLOBAL I 14 GND 14 STBYB I 2 VDD_5V 15 GND P 16 UART1_RTS / GPIOG8 200 16 RXIN0- I 2 VDD_5V 17 RXIN0+ I 18 UART1_CTS / GPIOG9 201 18 GND P 2 VDD_5V 19 RXIN1- I 20 GND 20 RXIN1+ I 2 VDD_5V 21 GND P 22 UART2_RX / GPIOA1 1 22 RXIN2- I 2 VDD_5V 23 RXIN2+ I 24 SPI0_CS / GPIOC3 67 24 GND P 22 UART2_RX / GPIOA1 1 25 RXCLKIN- I 2 VDD_5V 26 RXCLKIN+ I 24 SPI0_CS / GPIOC3 67 27 GND P 22 UART2_RX / GPIOA1 1 28 RXIN3- I 2 VDD_5V 29 RXIN3+ I 24 SPI0_CS / GPIOC3 67 30 GND P 22 UART2_RX / GPIOA1 1 31 GND P 2 VDD_5V 32 DIMO O 24 SPI0_CS / GPIOC3 67 33 SELB I 22 UART2_RX / GPIOA1 1 34 AVDD P 2 VDD_5V 35 GND P 24 SPI0_CS / GPIOC3 67 36 LED- P 24 SPI0_CS / GPIOC3 67 37 LED- P 24 SPI0_CS / GPIOC3 67 38 L/R I 24 SPI0_CS / GPIOC3 67 39 U/D I 24 SPI0_CS / GPIOC3 67 40 VGL P 24 SPI0_CS / GPIOC3 67 41 CABCEN1 I 24 SPI0_CS / GPIOC3 67 42 CANCEN0 I 24 SPI0_CS / GPIOC3 67 43 VGH P 24 SPI0_CS / GPIOC3 67 44 LED+ P 24 SPI0_CS / GPIOC3 67 45 LED+ P 24 SPI0_CS / GPIOC3 67
4 连接使用
5 Datasheet下载
- [点击下载]
6 原理图下载
- [点击下载]
7 支持的开发板
Debian系统 Android系统 Linux+Qt系统 Smart4418 Smart4418 Tiny4412 Tiny4412
8 关于一线触摸
- 在大部分的ARM主控板中,我们发现,直接使用CPU自带的ADC转换器并不能很好的支持大尺寸(7寸以上)的四线电阻触摸屏,市面上一般采用更加专业的USB或串口触摸屏扩展模块来解决。为了节省ARM主控芯片的有限资源以及减少外扩,我们专门开发了只使用一个普通GPIO就可以实现专业触摸效果的替代方案,并把它集成到我们的LCD模块驱动板中,我们称之为“一线触摸(1-Wire)”。它的基本原理是,使用一个低成本的MCU连接一个专业的触控芯片(在此我们使用的是ADS7843或兼容芯片),采集并处理四线电阻模拟信号,并把滤波(未校准)后的稳定原始数据通过GPIO送给ARM主控,经我们长期反复测试,即使在19寸这样大的电阻触摸屏上,也可以实现非常精准的触摸效果,不会出现漂移抖动的现象。
- 另外,当今12寸以内的LCD显示屏,大都采用了LED背光,我们顺便也把背光调节部分也交给MCU来处理,并设置了统一的调节数值区间,最后通过“一线触摸”的GPIO传给ARM主控,这样在ARM端就可以非常方便的来设置背光了。
- 与此同时,我们还为我们设计开发的每一款带“一线触摸”的LCD模块设置了编号存储在MCU中,这样通过一线通讯读取到的编号,就可以知道这个LCD模块的具体类型了,也就可以在bootloader和内核中自动匹配相应的LCD驱动参数,以此来实现无需修改任何配置,即插即用带”一线触摸”的LCD模块。
- 在电容触摸LCD模块中,我们则去掉了电阻触控芯片,而保留了背光调节和存储LCD类型编号这2个功能,因此电容触摸通讯依然是标准的I2C接口。
- 需要注意的是,我们实现的“一线触摸”的通讯,和通常所说的单总线接口是不同的。在ARM主控端内部,我们实际采用了一路pwm timer(不是pwm管脚哦)来实现固定的通讯频率(9600Hz),详细请查看驱动源代码。