B4R Question Inline C pooling

rdkartono

Member
Licensed User
Longtime User
I have 8 pins A7~A0 and 8 pins D7~D0.
The signal is : if A7=high, ignore it. If A7=low, time to read all A7~A0 and D7~D0.

So I tried using A7.Addlistener function, or addlooper function, but still not fast enough to get all readings.

So is it possible I create an inline C function, that doing :
while (true) {
....
....
}

My purpose is to get (much) faster A7 response.
 

rdkartono

Member
Licensed User
Longtime User
This morning I did measurement with Oscilloscope, found out that A7 low pulse width is only 2 uS. And between A7 pulse to next pulse is 50uS interval. I guess interrupt approach is the best now, any suggestion ?
 
Upvote 0
Top