Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
39
PinChange.Handler
Type
Subroutine
Invocation
PinChange.Handler(subAddr)
Parameter
Method
Type
Description
subAddr
ByVal
UnsignedLong
The address of a subroutine to invoike on pin change.
Discussion
This subroutine sets a callback procedure to be invoked when an input pin changes state. The callback
procedure must be defined as shown by example:
Sub pinChangeCB(ByVal flags as UnsignedInteger)
End Sub
When the callback is invoked, the bits of the flags parameter will have a 1 for each pin A.15 to A.0 that
has changed state. 
Previous page Top Next page