beautypg.com

Zilog ZMOT0BHH User Manual

Page 23

background image

UM023902-1013

19

ZMOTION

®

20-Pin Detection and Control Development Kit

User Manual

ZMOTION 20-Pin Development Kit Application Software

The ZMOTION application software includes the

ZMOTION_Serial_Config

motion

detection project, which is described in this section.

ZMOTION_Serial_Config

The

ZMOTION_Serial_Config

project demonstrates the basic motion detection func-

tionality of the ZMOTION 20-Pin Development Board. The MCU included with the
Board is programmed with this project.

Each lens type is supported by an associated lens configuration header file which displays a
name format of

API_INIT_xx.h

. Header files for all supported lens types are included in

the include project folder of the

ZMOTION_Serial_Config

project. The

main.c

source

file contains the

include

directive to add the header file to the project. Changes to these

header files should not be required, but any modifications you make should be made to a
copy of the original header file; do not modify the original versions. As new lens types are
added to the ZMOTION family, an associated lens configuration file is made available on
the Zilog website.

Table 2 lists additional project features that can be modified or enabled in

main.c

and

main.h

.

When motion is detected, the LED is turned ON for 500 msec (

DEF_LED_ON_TIME

). A

serial terminal program such as HyperTerminal can be used to view the detection mes-
sages from the ZMOTION 20-Pin Development Board. In Figure 16, 26 indicates the ver-
sion of the application; the S following the

ZMOTION

>

prompt is displayed when the

pyroelectric sensor has become stable and the system is ready to detect motion. When
motion is detected, an N or E is displayed to indicate the type of detection (Normal motion
or Extended motion), along with the count and a time stamp (in seconds) after power-up.

Table 2. Additional Project Features

Feature

File

Define/Variable

Default Values

LED ON time duration

main.h

DEF_LED_ON_TIME

DELAY_500MSEC (500
milliseconds)

Lens Support

main.c

#include "API_INIT_xx.h"

API_INIT_04.h

This manual is related to the following products: