283 of 323
ZBasic System Library 273 ZX Microcontroller Family TaskWaitPinChangeQ1 37 The task is waiting for a pin change event, port Q. TaskWaitAnalogCompA0 38 The task is waiting for an analog comparator A event. TaskWaitAnalogCompA1 39 The task is waiting for an analog comparator A event. TaskWaitAnalogCompAW 40 The task is waiting for an analog comparator A window event. TaskWaitAnalogCompB0 41 The task is waiting for an analog comparator B event. TaskWaitAnalogCompB1 42 The task is waiting for an analog comparator B event. TaskWaitAnalogCompBW 43 The task is waiting for an analog comparator B window event. TaskHalting 254 The task is in the process of terminating. TaskHalted 255 The task has terminated. The shaded entries in the table above are specific to ZX devices based on ATmega processors. The values 18-43 are specific to ZX devices based on ATxmega processors. The table below shows the correspondance between pin change events and ports for ATmega-based devices. ATmega Pin Change Event Ports Underlying CPU PinChange0 PinChange1 PinChange2 PinChange3 mega644P, mega1284P PortA PortB PortC PortD mega328P PortB PortC PortD mega1281 PortB PortE mega1280 PortB PortJ PortK If this function is invoked using an array other than one that is or was being used for a task stack the result is undefined. See the section on Task Management in the ZBasic Reference Manual for additional information regarding task management. See Also ExitTask, ResumeTask, RunTask, TaskIsValid