无法Communicate with External Processor on Port 0 Pins

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
MarkDsylva_2277
Offline
Last seen:1 month 2 weeks ago
加入:2019-06-19 04:20
无法Communicate with External Processor on Port 0 Pins

Hi,

I am have a external processor attached to my custom board with DA14585. The external chip's IO pin is connected to PORT0, PIN2. I am configuring this pin as Input without pullup. The external processor has the pin pulled high most of the time. When the data is ready, it pulls down the pin. But I am not able to read a low when i read using GPIO_GetPinStatus(GPIO_PORT_0,GPIO_PIN_2). When i checked it on an oscilloscope, the low signal level is at 0.8V and high signal is at 3.3V in that pin. Why the offset of 0.8V?. What am i doing wrong here?.

For a test, I changed the pin to GPIO_PORT1, PIN0 and it works well and I am able to read the stage correctly. Why the offset on PORT0 pin?.

Regards,

Mark

Device:
PM_Dialog
Offline
Last seen:2天21小时前
工作人员
加入:2018-02-08 11:03
Hi Mark,

Hi Mark,

Can you please share more inputs for this? Is the P0_2 used for any other purpose in your setup? For example, P0_2 is used as SPI_MISO (STEP B) when the DA14585 boots from SPI Flash and acts as slave device. Does the DA14585 act as master or slave device? Would it be possible to share the pin configurations?

Thanks, PM_Dialog

MarkDsylva_2277
Offline
Last seen:1 month 2 weeks ago
加入:2019-06-19 04:20

Pi PM_Dialog,

I am using a custom board for my application. I am communicating with the external processor via three GPIO pins of which 2 are from PORT0 and 1 pin is from PORT1. The PORT1 pin is working fine. The 0.8V offset in low condition occurs only on PORT0 pins.

Regards,

Mark

CYibin
Offline
Last seen:4 months 3 weeks ago
工作人员
加入:2017-12-14 02:48
Hi Mark,

Hi Mark,

Could you share your shematic of your 585 custom board.

In addition,regards the operation of the PINs,could you post some code snippets about it.

Br, Yibin