亚洲春色中文字幕久久久-三上亚,一吻二脱三床四吻胸,国产真实伦对白视频全集,在线毛片观看,精品成品入口黄网,国产毛aⅴ片久久久,亚洲AV色香蕉一区二区三区老师,萧皇后A级艳片,色情日本视频更新,99久久亚洲精品日本无码

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2061|回復: 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 單片機教程網

快速回復 返回頂部 返回列表