Page 17 of 346 Start Back Next End ZBasic System Library 5 ZBasic Microcontrollers PulseOut() generate a pulse on an output pin Put1Wire() send a bit using the 1-Wire protocol Put1WireByte() send a byte using the 1-Wire protocol Put1WireData() send one or more bytes using the 1-Wire protocol PutDAC() produce an analog voltage on an output pin PutPin() configure an I/O pin PWM() initiate 16-bit PWM generation or change the duty cycle PWM8() initiate 8-bit PWM generation or change the duty cycle RCTime() measure an RC charge/discharge time Reset1Wire() send a reset signal using the 1-Wire protocol ShiftIn() perform synchronous serial input ShiftInEx() perform synchronous serial input with more configurability ShiftOut() perform synchronous serial output ShiftOutEx() perform synchronous serial output with more configurability SPICmd() perform SPI communication with an external device SPIGetByte() retrieve a byte from an SPI slave SPIGetData() retrieve a series of bytes from an SPI slave SPIPutByte() send a byte to an SPI slave SPIPutData() send a series of bytes to an SPI slave SPIStart() initialize an SPI channel SPIStop() deinitialize an SPI channel StatusX10() determine the status of an X-10 communication channel X10Cmd() send commands using the X-10 protocol PutTimeStamp() set the current date and time information Timer() get the current clock tick value Task-related Routines CallTask prepare a task to begin execution DisableInt() disable interrupts Delay() pause a task DelayUntilClockTick() pause a task EnableInt() conditionally re-enable interrupts ExitTask() cause a task to terminate LockTask() suspend normal task switching Pause() pause a task without relinquishing control ResumeTask() cause a waiting task to resume execution RunTask() cause a specific task to run Semaphore() coordinate the use of a resource SetInterval() set the interval timer period Sleep() pause a task StackCheck() enable or disable stack checking StatusTask() determine the status of a task System.TaskHeadRoom() determine the unused space in a task’s stack TaskIsLocked() determine if a task is locked TaskIsValid() determine if a task stack is in the task list UnlockTask() resume normal task switching UpdateRTC() update RTC registers to account for missed ticks WaitForInterrupt() pause a task until an external event occurs WaitForInterval() pause a task until an interval timer expires Yield() allow another task to run