Chapter 1. Introduction

Zilogic’s ZDev library provides a set of easy to use API interfaces for rapid embedded firmware development. ZDev provides APIs for accessing hardware controllers and devices. It is based on C language and targeted at tiny micro-controllers like 8051 and ARM. ZDev currently supports the following boards:

  1. ZKit-51-RD2 (only 6x clock mode)
  2. ZKit-51-V664
  3. ZKit-51
  4. ZKit-ARM-1343

Following is the short list of ZDev’s features.

The modules available in ZDev are shown in the following block diagram.

Figure 1.1. ZDev Blocks

ZDev Blocks

The modules can be classified as shown below.

Common Modules

  1. Board - Initialize the board
  2. Event - Check for events and dispatch callbacks
  3. IRQ - Enable/Disable interrupts, and register handlers
  4. Timer - Call functions after a timeout
  5. Delay - Generate short delays
  6. Error - Handle error conditions

HID Modules

  1. LCD - Display text on an LCD
  2. Graphics - Draw text & images on a graphics display
  3. Buttons - Read button status

Networking and Communication Modules

  1. I²C - Communicate with I²C devices
  2. SPI - Communicate with SPI devices
  3. Serial - Communicate with serial devices

Analog and Digital I/O Modules

  1. GPIO - Control digital pin state
  2. PWM - Generate PWM signals
  3. ADC - Measure analog voltages
  4. DAC - Generate analog voltages

Storage Modules

  1. EEPROM - Access non-volatile memory