Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
40
PinChange.Mode
Type
Subroutine
Invocation
PinChange.Mode(pin, mode)
Parameter
Method
Type
Description
pin
ByVal
Byte
The pin to be enabled/disabled for pin change detection.
mode
ByVal
Byte
The sensitivity mode for the pin (see discussion).
Discussion
This routine enables or disables sensitivity to state change of an input pin (A.0 through A.15 only).  The
mode parameter should have one of the values in the table below.
Pin Change Interrupt Mode
Value
Meaning
0
Disable pin change sensitivity.
1
Invoke callback on a rising edge.
2
Invoke callback on a falling edge.
3
Invoke callback on a both edges.
Previous page Top Next page