beautypg.com

Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual

Page 4

background image

Contents

Introduction 5

Contents of the Development Kit 5 • Key Features 6 • Product

Overview 7 • Using the Developer Guide 7

Chapter 1

Using the Click 500

9

Physical Features 9 • Connecting Power 12 • Serial Communi-

cations 13 • Using the DIP Switches 15 • Using Digital I/O 16 •

Using the Menu 22

Chapter 2

Installing the Development Tools

25

Installing the Click 500 Software Package 25 • Installing Dy-

namic C 26 • Configuring Dynamic C 26

Chapter 3

Getting Started

31

Opening the Hello World Example 31 • Compiling and Ex-

ecuting the Hello World Example 32 • Returning to Edit Mode

33 • Error Window/Fixing Syntax Errors 34 • Debugging 34 •

Example Code 3.1 36

Chapter 4

Operating Functions and Menu

39

Modes and Tasks 39 • Implementing an Operating Function

41 • Adding Modes and Tasks to the Menu 43 • Adding a Task

44 • Making a Submenu Selection 44 • Example Code 4.1 45

Chapter 5

LED and Push-button Functions

49

LEDs 49 • Push-Button 51 • Example Code 5.1 51

Chapter 6

Timers and Clocks

55

The OS and Timer Interrupt 55 • Cooperative Multitasking 58

• Watchdog Timers 60 • Real-time Clock 61 • Example Code