久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 1377|回復: 4
收起左側

STM32單片機矩陣鍵盤邏輯寫的沒有問題,但一直不出功能,求大佬

[復制鏈接]
ID:1119762 發表于 2024-6-13 14:43 | 顯示全部樓層 |閱讀模式
STM32矩陣鍵盤邏輯寫的沒有問題,但一直不出功能,求大佬
回復

使用道具 舉報

ID:59202 發表于 2024-6-13 16:28 | 顯示全部樓層
啥也沒有能說啥
回復

使用道具 舉報

ID:1125104 發表于 2024-6-13 18:21 | 顯示全部樓層
Many microcontrollers have different locations for accesing the inputs and outputs. For example on ATMEL AVR microcontroler to read or write the logical values to port B you use PORTB. To read the actual phisical value of port B you will need to use PINB. Example: "in r16,PINB" will read the physical bits of port B. This is what you need to use to read the keyboard matrix.
回復

使用道具 舉報

ID:1125104 發表于 2024-6-13 18:25 | 顯示全部樓層
Maybe you are reading the logical value of the keyboard matrix i/o port instead of reading the phisical value.

On ATMEL AVR microcontroller, to read the logical value of port b for example you use:
in r16,PORTB

To read the actual phisical value of port b you will use:
in r16,PINB

So, in your matrix keyboard you need to read the physical value (the real value), not the logical value from the port.
回復

使用道具 舉報

ID:1125137 發表于 2024-6-13 22:02 | 顯示全部樓層
不發原理圖,不發代碼,誰知道你寫的啥啊,一個矩陣鍵盤能需要什么邏輯
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 四虎在线播放 | 一区二区福利 | 国产理论视频 | 久草福利在线 | 国产91视频在线观看 | 亚洲精品1区 | 黄网站在线播放 | 国产成人精品亚洲 | 91免费看 | 欧美香蕉视频 | 国产黄a三级三级看三级 | 好吊视频一区二区三区四区 | 欧美天天干 | 天天拍天天干 | 麻豆三级视频 | 色噜噜狠狠一区二区三区果冻 | www.国产在线观看 | 亚洲日本视频 | 国产三级在线看 | 国产精品久久久国产盗摄 | 国产精品伦 | 欧美视频免费看 | 欧美韩日| 欧美福利一区二区 | 视频在线一区二区 | 自拍偷拍欧美日韩 | 国产不卡视频在线观看 | 免费亚洲婷婷 | 欧美日韩一本 | 69精品视频| 亚洲精品日本 | 国产麻豆一区二区 | 中文字幕超清在线观看 | 婷婷六月综合 | 亚洲淫片 | 欧美久久久 | 成人在线精品 | 国产人成一区二区三区影院 | 中国黄色1级片 | 欧美日韩免费在线观看 | 免费看色片 |