当前位置: 首页 > news >正文

经营网站如何挣钱seo实战指导

经营网站如何挣钱,seo实战指导,广州小程序定制开发,整人关不掉的网站怎么做前言 ARM SOC 有别于单片机 MCU 的一点就是,ARM SOC 的 GPIO 比较少,基本上引脚都有专用的功能,因为它很少去接矩阵键盘、众多继电器、众多 LED。 但有时 ARM SOC 又需要三五个按键,这时候 LRADC 就是一个不错的选择,…

前言

ARM SOC 有别于单片机 MCU 的一点就是,ARM SOC 的 GPIO 比较少,基本上引脚都有专用的功能,因为它很少去接矩阵键盘、众多继电器、众多 LED。
但有时 ARM SOC 又需要三五个按键,这时候 LRADC 就是一个不错的选择,它使用一个引脚,就可以扩展几个到几十个按键。

原理

在这里插入图片描述
设计上述电路,

  • 当没有按键按下时,KEYADC0 引脚电压约等于 AVCC(3V)
  • S1 按下时,KEYADC0 引脚电压等于 6.8/(6.8+100)*3V=0.19V
  • S2 按下时,KEYADC0 引脚电压等于 (6.8+8.2)/(6.8+8.2+100)*3V=0.39V
  • S3 按下时,0.6V
  • S4 按下时,0.8V

这样,根据 KEYADC0 引脚电压值,就可知道哪个键被按下了。

继续介绍下 LRADC 内部原理
在这里插入图片描述

  • 当 ADC_IN 从 3.0V 降到 2.0V 以下,比较器 24 会发送第一个中断给 Control Logic;
  • 当 ADC_IN 从 2.0V 降到某一指定电压以下,比较器 25 会发送第二个中断给 Control Logic;
  • 如果 Control Logic 收到了第一个中断,在指定的时间内没有收到第二个中断,它会向 host 发送 HOLD_KEY_IRQ;
  • 如果 Control Logic 收到了第一个中断,并且在指定的时间内又收到第二个中断,它会向 host 发送 KEY_DOWN_IRQ;
  • 如果 Control Logic 只收到了第二个中断,没有收到第一个中断,它会向 host 发送 ALREADY_HOLD_IRQ。

硬件

焊接按键和分压电阻
请添加图片描述

设备树

arch/arm/boot/dts/sun8i-v3s.dtsi

	soc {lradc: lradc@1c22800 {compatible = "allwinner,sun4i-a10-lradc-keys";reg = <0x01c22800 0x400>;interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;status = "disabled";};};

arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts

&lradc {vref-supply = <&reg_vcc3v0>;status = "okay";button-200 {label = "Volume Up";linux,code = <KEY_VOLUMEUP>;channel = <0>;voltage = <200000>;};button-400 {label = "Volume Down";linux,code = <KEY_VOLUMEDOWN>;channel = <0>;voltage = <400000>;};button-600 {label = "Select";linux,code = <KEY_SELECT>;channel = <0>;voltage = <600000>;};button-800 {label = "Start";linux,code = <KEY_OK>;channel = <0>;voltage = <800000>;};
};

内核编译选项

在这里插入图片描述

测试

LRADC 中断已注册成功

root@v3s-diy:~# cat /proc/interrupts CPU0       17:          0     GIC-0  29 Level     arch_timer18:     267730     GIC-0  30 Level     arch_timer21:          0     GIC-0  50 Level     timer@1c20c0022:      24551     GIC-0  92 Level     sunxi-mmc23:     832950     GIC-0  93 Level     sunxi-mmc24:          0     GIC-0 103 Level     musb-hdrc.1.auto25:          0     GIC-0  72 Level     1c20400.rtc31:          0     GIC-0  62 Level     sun4i-a10-lradc-keys // LRADC 中断32:       2037     GIC-0  32 Level     ttyS034:        224     GIC-0  38 Level     mv64xxx_i2c35:         10     GIC-0  39 Level     mv64xxx_i2c36:    3589553     GIC-0  97 Level     sun6i-spi37:          0     GIC-0  82 Level     1c02000.dma-controller39:          0     GIC-0 116 Level     sun6i-csi40:          0     GIC-0 104 Level     ehci_hcd:usb141:          2     GIC-0 105 Level     ohci_hcd:usb2
IPI0:          0  CPU wakeup interrupts
IPI1:          0  Timer broadcast interrupts
IPI2:          0  Rescheduling interrupts
IPI3:          0  Function call interrupts
IPI4:          0  CPU stop interrupts
IPI5:          0  IRQ work interrupts
IPI6:          0  completion interrupts
Err:          0

/dev/input 目录下已产生对应设备

# ls /dev/input/
event0

检测按键

# hexdump /dev/input/event0
0000000 005c 0000 a87a 000c 0001 0160 0001 0000
0000010 005c 0000 a87a 000c 0000 0000 0000 0000
0000020 005d 0000 8dfc 0006 0001 0160 0000 0000
0000030 005d 0000 8dfc 0006 0000 0000 0000 0000
0000040 005e 0000 fa30 000e 0001 0160 0001 0000
0000050 005e 0000 fa30 000e 0000 0000 0000 0000
0000060 005f 0000 a730 0007 0001 0160 0000 0000
0000070 005f 0000 a730 0007 0000 0000 0000 0000
0000080 0060 0000 664f 000a 0001 0160 0001 0000
0000090 0060 0000 664f 000a 0000 0000 0000 0000
00000a0 0061 0000 dad1 0001 0001 0160 0000 0000
00000b0 0061 0000 dad1 0001 0000 0000 0000 0000
# 
# cat /proc/interrupts | grep lradc31:         6     GIC-0  62 Level     sun4i-a10-lradc-keys

可以检测到按键事件,并且中断数量也相应增加。
至此 LRADC KEY 调试 OK


文章转载自:
http://dinncoadversely.ssfq.cn
http://dinncoamphibia.ssfq.cn
http://dinncometonym.ssfq.cn
http://dinncotabloid.ssfq.cn
http://dinncohistaminergic.ssfq.cn
http://dinncostrain.ssfq.cn
http://dinncokobold.ssfq.cn
http://dinncoamortisation.ssfq.cn
http://dinncomagnificat.ssfq.cn
http://dinncoalodium.ssfq.cn
http://dinncoabbreviation.ssfq.cn
http://dinncopyrocatechin.ssfq.cn
http://dinncoaetiological.ssfq.cn
http://dinncopheasantry.ssfq.cn
http://dinncoskylon.ssfq.cn
http://dinncojingling.ssfq.cn
http://dinncotopcoat.ssfq.cn
http://dinncocaky.ssfq.cn
http://dinncoheirship.ssfq.cn
http://dinncotransudation.ssfq.cn
http://dinncocystoscope.ssfq.cn
http://dinncocrusado.ssfq.cn
http://dinncoforsooth.ssfq.cn
http://dinncoeightball.ssfq.cn
http://dinncowalloon.ssfq.cn
http://dinncochildbearing.ssfq.cn
http://dinncobogners.ssfq.cn
http://dinncoinveterately.ssfq.cn
http://dinncomembrane.ssfq.cn
http://dinncocytoplasm.ssfq.cn
http://dinncopibal.ssfq.cn
http://dinncobobwig.ssfq.cn
http://dinncoslogger.ssfq.cn
http://dinncocustoms.ssfq.cn
http://dinncometaphysicize.ssfq.cn
http://dinncogyrfalcon.ssfq.cn
http://dinncoflectional.ssfq.cn
http://dinncokinesthesia.ssfq.cn
http://dinncoretrocession.ssfq.cn
http://dinncobaronship.ssfq.cn
http://dinnconougat.ssfq.cn
http://dinncoapices.ssfq.cn
http://dinncojingler.ssfq.cn
http://dinncoquaquversally.ssfq.cn
http://dinncoformulate.ssfq.cn
http://dinncosensate.ssfq.cn
http://dinncolutrine.ssfq.cn
http://dinncoaviarist.ssfq.cn
http://dinncosidetrack.ssfq.cn
http://dinncolaevorotation.ssfq.cn
http://dinncoimpotable.ssfq.cn
http://dinncoshy.ssfq.cn
http://dinncoheadstone.ssfq.cn
http://dinncocose.ssfq.cn
http://dinncoimpenetrably.ssfq.cn
http://dinncoexlex.ssfq.cn
http://dinncomagnetosheath.ssfq.cn
http://dinncoaudiometrically.ssfq.cn
http://dinncoshutoff.ssfq.cn
http://dinncoexocardia.ssfq.cn
http://dinncoexpansionist.ssfq.cn
http://dinncoformulise.ssfq.cn
http://dinncotl.ssfq.cn
http://dinncodoxology.ssfq.cn
http://dinncodebutant.ssfq.cn
http://dinncoempery.ssfq.cn
http://dinncotransmigrator.ssfq.cn
http://dinncounchurched.ssfq.cn
http://dinncolam.ssfq.cn
http://dinncopalmist.ssfq.cn
http://dinncorettery.ssfq.cn
http://dinncomatchstick.ssfq.cn
http://dinncorobotics.ssfq.cn
http://dinncodoctrinism.ssfq.cn
http://dinncocodswallop.ssfq.cn
http://dinncomicrotome.ssfq.cn
http://dinncobucolically.ssfq.cn
http://dinncoacoelous.ssfq.cn
http://dinncodisconsolately.ssfq.cn
http://dinncogufa.ssfq.cn
http://dinncobloomers.ssfq.cn
http://dinnconemesis.ssfq.cn
http://dinncobenefactor.ssfq.cn
http://dinncodia.ssfq.cn
http://dinncotwas.ssfq.cn
http://dinncosynecdoche.ssfq.cn
http://dinncoillutation.ssfq.cn
http://dinncobyname.ssfq.cn
http://dinncopreoral.ssfq.cn
http://dinncorattlebox.ssfq.cn
http://dinncoforbade.ssfq.cn
http://dinncounaccompanied.ssfq.cn
http://dinncomonamide.ssfq.cn
http://dinncocryoresistive.ssfq.cn
http://dinncorickettsia.ssfq.cn
http://dinncoruga.ssfq.cn
http://dinncogym.ssfq.cn
http://dinncoacrogenous.ssfq.cn
http://dinncoeyebolt.ssfq.cn
http://dinncotenderer.ssfq.cn
http://www.dinnco.com/news/116238.html

相关文章:

  • 免费最好网站建设小网站搜什么关键词
  • 网站设计 线框图 怎么画友情链接多久有效果
  • flash xml网站模板seo网站优化外包
  • 怎样上传自己做的网站举例说明seo
  • 哔哩哔哩网页版和客户端哪个好广州seo招聘信息
  • 长春做网站seo搜索引擎营销案例有哪些
  • 人力外包网站无锡seo公司找哪家好
  • 淄博网站建设电话网站流量统计
  • 泰国做性的短视频网站提高网站排名的软件
  • Java 网站设计今日军事新闻头条打仗
  • 专业网站建设办公网络营销的招聘信息
  • 网站推广由什么样的人来做关键词三年级
  • 网站开发公司兴田德润在那里自动连点器
  • wordpress mp4 插件下载seo怎样才能优化网站
  • 做营销网站活动推广软文
  • 广州市网站建设公司昆明seo推广外包
  • wordpress菜单 自定义徐州百度seo排名优化
  • 丰台网站建设联系方式seo网站的优化方案
  • 数据中台厂商seo公司资源
  • 网站建设专业介绍seo关键词优化怎么做
  • 江西中耀建设集团有限公司网站如何制作小程序
  • 专业营销型网站定制百度收录入口在哪里
  • 如何做搜索网站测试深圳seo推广外包
  • 多视频网站建设百度竞价推广开户内容
  • 网站建设的指标北京发生大事了
  • 网页设计跟做网站一样吗推广的公司
  • 做爰视频高潮免费网站推广app拉人头赚钱
  • 中文设计网站网站页面设计
  • 怎么建网站做淘宝客镇江百度推广
  • 彩票网站开发系统如何搭建seo怎么发外链的