4 posts / 0 new
Last post
Bharath
Offline
Last seen:1 year 4 months ago
加入:2016-04-14 07:03
PAN1740该服务l pin and Analog pin

In our application, the input to P02 is a square wave of 50 Hz. I am always reading low on this pin. We are using the same pin to detect a high condition which is working fine.
How to solve this issue?
Please help me.

Thank you

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

How do you read the signal from the 580, are you polling it or using interrupts and what is the pin configuration ? Also check the signal voltage level of your input signal.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 4 months ago
加入:2016-04-14 07:03
We are using GPIO

We are usingGPIO_ConfigurePin(Port_0,pin_2, INPUT, PID_GPIO, false) to read the values. We are doing it in a systick interrupt which is called 250times/second.
The voltage level is 0V - 3V square wave.
The same pin will be driven high by external circuit and we are able to read that state. But when the same external circuit toggles this pin at 50Hz we are reading only low.
We have verified the voltage levels and frequency using a CRO.
Is there a different way to read the pin value?

Thank you

MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

There is no other function to read the status of a pin, have you tried to check your signal while sampling with the 580 and check how it behaves ? Also what is the configuration of your pin ? and is there any other component that interfiers with the connection between the pin of the 580 and signal source ? Also can you please try using other pins ?

Thanks MT_dialog