zwll 发表于 2022-6-11 13:11

配置成输出低电平的时候测得引脚输出电压是0V,是怎么回事?

用的PIC单片机的型号是PIC18F66J11代码中RE3端口配置成普通的输出口,配置成输出高电平的时候,测得输出的电压只有0.08V,配置成输出低电平的时候测得引脚输出电压是0V,是怎么回事?

llljh 发表于 2022-6-11 13:13


还有什么现象?能再详细描述下吗?

zwll 发表于 2022-6-11 13:16

RE1是正常的,配置成高电平测着输出电压是3.3V,低是0

spark周 发表于 2022-6-11 13:19

代码?

zwll 发表于 2022-6-11 13:21


pengf 发表于 2022-6-11 13:24

外面什么不接也不行?

llljh 发表于 2022-6-11 13:26

另外80脚的芯片要注意下先禁止EB, 见数据手册11.6PORTE, TRISE and LATE Registers
On80-pindevices,PORTEismultiplexedwiththe system bus as part of the External Memory Interface. I/O port and other functions are only available when the interface   is   disabled   by   setting   the   EBDIS   bit(MEMCON<7>).

dengdc 发表于 2022-6-11 13:29

64引脚的,找到问题了,换了个单片机就好了

wyjie 发表于 2022-6-11 13:33

外面接东西了吗?

yszong 发表于 2022-6-11 13:35

代码有开启别的引脚功能吗?

zwll 发表于 2022-6-11 13:36

没接,换个单片机就好了emmmm

tpgf 发表于 2022-7-5 14:51

引脚硬件是如何连接的啊

labasi 发表于 2022-7-5 15:01

低电平的时候是对的吧

paotangsan 发表于 2022-7-5 15:09

是单片机的个体问题?

renzheshengui 发表于 2022-7-5 15:16

换成其他型号的了吗

wakayi 发表于 2022-7-5 15:26

外边不能什么都不接

wowu 发表于 2022-7-5 15:33

需要外接上拉电阻
页: [1]
查看完整版本: 配置成输出低电平的时候测得引脚输出电压是0V,是怎么回事?