Home
ZMOTION 20-Pin Detection and Control Development Kit User Manual
Contents
1. User Zi VCC 3v3 2 per pur VCC 3v3 T EG1218 VCC 5v ut 1 Vin Vout 3 2 5 n j s GND GND FERRITE BEAD 20K gt R4 6 4 7uF p tuF 4 75K Q EN NC 7 NCPB82LXV33T2G USB PWR WALL PWR RDR PIN 1x3 J5 PWR SRC u2 4 1 VCCIO TXD 3 RXD 20 voc RxD lt lt TXD 16 ATS p3 USBDM iF TS p 15 Usgpp PWR ON TR p R5 8 ncr DSR p Laysa RESET pep pi 100K 741 Nc Ri p 27 23 x osci cBuso p 28 osco cpus p22 7 cpus2 p 3v3 OUT m CBUS3 P pe 2858885 12 Z 8 9 2 p causa pe bur lt 666F e n e ole i al jl FT232RL Figure 18 ZMOTION 20 Pin Development Board Schematic Diagram 2 of 2 qoc EN TPS2051B VCC_3v3 100 ohm Board Design Inf ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog OIXys 36 Customer Support To share comments get your technical questions answered or report issues you may be experiencing with our products please visit Zilog s Technical Support page at http support zilog com To learn more about this product find additional documentation or to discover other facets about Zilog product offerings please visit the Zilog Knowledge Base or consider participating in the Zilog Forum This publication is subject to replacement by a later edition To de
2. 3 3V VCC 3v8 T e LED1 Al 2 ZA i voc 8v3 T 1K 3 av us 3 Pevanar ppo anao 22 al 3 ANA2 PCS COUT Hg 4 ANAS PC2 ANAG LED VREF 7 TCI VDD PC1 ANAS CINN MOTION d PAO TOIN TOOUT XIN PCO ANA4 CINP 18 um 7 PATTOOUT XOUT ___DBG 14 PDO Ro LED3 coo SS RESET PDO 13 PAT 2 A a PB1 ANA1 PAS g PA2 DEO_ PA7 TIOUT 12 PAG VPAZRXDO 10 PAS CTSO PAG TAINTIOUT 31 PAS TXDO 470 RXD X PA4 RXDO PAS TXDO gt TxD RED ZBFS040xHH20EG nie 0 ohm J9 PBL PB1 ANA1 pao PAO war 2 PAT VCC 3v8 T PAZ 3 PAZ PA3 E PAS 2 sas E PAS RST PAT 7 PAT J8 R12 VCC 3v3 T poo 8 PDO 10K R13 9 VCC 3v8 T eco 9 PCO i 10K spi 10 PCi 2 ms PCS P2 ss 12 pBo HDRIPIN 1x2 18 1 DEG 21 E 43 IN FOR DBG 6 5 l E a HDRIPIN 1x15 HDR PIN 2x3 PyroSensor Generic C11 R14 TuF 470 e a GOD 2 8 97 7 CD UD D CD CD CO C C e C VCC 3v3 I0 NOT POPULATE HEADERS PERETI Lad LED2 1 16 b d 1 16 212 is HE x protosx20 31 uH Y RD H 4 a LIGHT Te Jem TIS mol s oh 8 rANOTMOnNAD jene to eo r eo o Figure 17 ZMOTION 20 Pin Development Board Schematic Diagram 1 of 2 spare Hur Board Design Inf P1 ojojo SH1 SH2 SH3 SH4 ZMOTION 20 Pin Detection and Control Developn VBUS DM DP ID GND USB OTG mini AB e afco ro pe P otuF 1
3. Up to 20 vectored interrupts 16 I O pins 2 7V to 3 6V operating voltage with extended operating temperature range 40 C to 105 C Zilog PIR technology controlled and monitored via software API registers Selection capability from an assortment of lenses and pyroelectric sensors to best fit your application API settings provided for each lens and pyroelectric sensor combination Directly supports 1 or 2 pyroelectric sensors Sensitivity control range control and directionality detection Extended detection modes for occupancy sensing Low power modes Features ZMOTION 20 Pin Detection and Control Development Kit User Manual ZMOTION 20 Pin Detection and Control Development Kit Lenses and Pyroelectric Sensors The ZMOTION 20 Pin Detection and Control Development Kit includes nine different types of lenses and three different types of pyroelectric sen sors to fill a wide variety of lighting control occupancy sensing HVAC display proximity and power management applications These applica tions also demonstrate the flexibility and superior performance of Zilog s PIR motion detection technology Please refer to the ZMOTION Lens and Pyroelectric Sensor Product Specification PS0286 for part specific details about the individual lenses and pyroelectric sensors Refer to the ZMOTION 20 Pin Detection and Control Development Kit Quick Start Guide QS0085 for specific installation instructions for the lenses and pyroelectric
4. Event Log Reset Event Log Counts Hypersense On Time Hypersense Mode Levels Normal Sense Levels WOAH Cc re a ene Me mJ ce am ce Vv e Display Events On ZMOTION gt N 01 0026 Connected 0 01 02 Auto detect 115200 8 N 1 NUM Figure 16 The ZMOTION Serial Config Project Running in HyperTerminal The menu shown in Figure 16 allows you to monitor and make real time changes to the operation of the motion detection software a description of this menu s selections follows When the ZMOTION device is reset or power cycled all settings return to their default values UMO023002 01 12 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog BIXYS 0 Display API Registers Displays the current setting of the ZMOTION Engine registers 1 Read Write RAM Allows you to make direct modifications to specific RAM locations Peek Poke 2 MCU Reset Reset the ZMOTION MCU 3 LED On Off Time Sets the duration of the LED ON time and mini mum LED OFF time 4 Display Events On Off Turns the automatic display of motion events ON or OFF When OFF events are still stored in the log 5 Dump Event Log Displays a history of motion events since power on 6 Reset Event Log Counts Clears the Event Log and resets the time stamp to 0 7 Hypersense On Time If Hypersense mode menu item 8 is enabled when motion is de
5. Lens include API INIT 0A h API configuration file for NCL 11 Lens include API INIT IML 0643 ht API configuration file for IML 0643 Lens gt Note As the code listed above demonstrates the API_ INIT file must match the lens and pyroelectric sensor being used on the Development Board Use the Lens Selection Guide in the ZMOTION Lens and Pyroelectric Sensor Product Specification PS0286 to determine which API_INT file is required for each lens setting 4 To change the lens used by the project edit the include line at the top of the main c file to include the appropriate API INIT file The project initially uses API_INIT_04 h to support the CWM 0 5 GI V1 board clip in lens see the above code example To use a different lens edit out the comment characters in the main c file that cor respond to the new lens and comment out the lens that is no longer in use UMO023002 01 12 Downloading and Running the Sample Project Design Information Figure 17 displays the schematics for the ZMOTION 20 Pin Development Board J6 HDR PIN 1x1 J1 1 HDR PIN 1x1 J2 GND HDR PIN 1x1 J3 eno 9 HDR PIN 1x1 E ZMOTION 20 Pin Detection and Control Developn User Zi Bl
6. PIR Sensor Lens Each of the clip on lenses slide atop the PIR sensor and the notch on the PIR sensor aligns with the notch in the base of the lens as shown in Figure 3 Figure 3 NCL 9 26 Lens and PIR Sensor Installed on the ZMOTION 20 Pin Development Board UM023002 0112 Attaching the PIR Sensor Lens ZMOTION 20 Pin Detection and Control Development Kit User Manual ilog BIXYS P 12 Attaching the Circuit Board Lens This clip in lens style clips directly into the circuit board over the top of the PIR sensor There are 4 mounting clips on the lens that are aligned with the slots in the circuit board Note the locating tab on the side of the lens is to be aligned with the silkscreened tab as indicated in Figure 4 Figure 4 Assembled Clip In Lens Installed on the ZMOTION 20 Pin Development Board UM023002 0112 Attaching the Circuit Board Lens ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog AnEDX YS Company 1 3 Assembling the Circular Lens Holder The circular lens holder shown in Figure 5 is a 2 piece assembly that provides a 0 77 focal length mounting Figure 5 Circular 0 77 Lens Holder Cap and Base To assemble the lens and lens holder observe the following brief proce dure 1 Place the circular lens into the base of the lens holder aligning the notch on the lens with the inside notch on the base 2 Place the circular cap over the lens and the base ensuring the outs
7. XP Professional SP1 Windows2000SP3 Windows Vista 32 bit Windows NT 4 0 SP6 PentiumII 233MHz processor or higher up to PentiumIV 2 8 GHz 96MB RAM or more e 25MB hard disk space or more Super VGA video adapter e CD ROM drive USB 2 0 interface port Installation For details about installation and setup refer to the Using the ZMOTION 20 Pin Detection and Control Development Kit Quick Start Guide S0085 UM023002 0112 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog OIXYS Safeguards The following precaution must be observed when working with the devices described in this document UN Caution Always use a grounding strap to prevent damage resulting from electrostatic discharge ESD UM023002 0112 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog OIXYS ZMOTION 20 Pin Detection and Control Development Board Zilog s ZMOTION 20 Pin Detection and Control Development Board is a development and prototyping platform for the ZMOTION 20 pin silicon and software as well as for its lens pyroelectric sensor silicon and soft ware bundled solutions The Board provides the user with a tool to evalu ate the many features of ZMOTION PIR technology as well as the actual performance of each lens and pyro combination Features The ZMOTION 20 Pin Detection and Control Development Board fea tures the following elements Z8
8. immediately If the driver was previously installed Windows automatically installs the USB Smart Cable driver If this is the case proceed to Step 9 If Win dows cannot find the driver close the Search dialog and continue to Step 3 In the Windows Start menu s Search programs and files field enter Device Manager and click the Enter key A Device Manager link will appear in the Start menu s resulting Program list click to launch it In the Device Manager under Other devices right click USB Smart Cable Select Update Driver Software In the Update Driver Software USB Smart Cable dialog select the Browse my computer for driver Software option Browse to one of the following driver directories Installing ZDSII and the USB Smart Cable 19 9 ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS 20 For 32 bit versions lt ZDS II Installation Directory gt device drivers USB x32 lt ZDS II Installation CD gt device drivers USB x32 For 64 bit versions ZDS II Installation Directory gt device drivers USB x64 lt ZDS II Installation CD gt device drivers USB x64 Click Next to install the driver On 32 bit systems a Windows Secu rity dialog will appear select Install this driver software anyway After the Wizard finishes the installation click the Close button Windows Vista 32 bit OS Observe the following steps to install the USB Smart Cable for Windows Vista 32 b
9. implement a ZMOTION motion detecti ilication with a simple serial output UM023002 0112 Figure 14 The Location of the Rest and Go Icons An information notice may appear indicating that the silicon is not the latest version This occurrence is normal and is not an issue Click OK to continue You should see a message in the Debug Output Window indicating that the load was successful as shown in Figure 15 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog AnBIIXYS Company 28 FA 2Movon seral Config Z0S TE Encore Family tartupeitism tari Bible Edt View Project Build Debug Toots Window Help xXx Dug axana Debug Joana F BSRBRBWSEA zn Expression Vae 8 da EDDelay 0000 HSDelwy D0000 tMDCheck Ov0000 ePIR_Sensetivity 0x10 ePR SCO Ox00 ePIRSCI Ox4D wPIR SCI Ox01 PR ASCO 0x88 EPIR Process R 0x0206 PIR Signal DC OxS4D2 Mype Statusi O00 SysStstust Ont Er Address d 94 Loading fil Loading file C Checksum MOT 1 ng pad by Target is in HALT SLEEP mode codesLight Debug 2 tol ted eam SW and apps codw Lighting ZENS CD kit B 11 ZMOTION Seria ig Debug Serial led successful JD T fuia Debug Find in Fies 1j Find in files 2 Messages Command le For Help press Fl iniColl RUN Figure 15 ZDSII s Debug Output Window for the ZMOTION Serial Config Project
10. then click Next lt ZDS installation gt device drivers USB 5 After you find the appropriate driver click Next 6 Click Finish to complete the installation Windows 2000 Observe the following steps to install the USB Smart Cable for Windows 2000 systems 1 Connect the Zilog USB device to the host PC The Found New Hardware wizard should activate automatically after connecting the Zilog USB device for the first time UM023002 0112 Installing ZDSII and the USB Smart Cable ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog OIXYS 22 2 After the Found New Hardware wizard has been activated click Next 3 Select Search for a suitable driver for my device Recommended then click Next 4 Select Specify a location and click Next 5 Browse to the following driver directory then click OK lt ZDS installation gt device drivers USB 6 After you find the appropriate driver click Next 7 Click Finish to complete the installation Connecting the USB Smart Cable Observe the following steps to connect the USB Smart Cable to the ZMO TION 20 Pin Development Board AN Caution The power to the development board must be disconnected or turned OFF before connecting or disconnecting the USB Smart Cable 1 Attach one end of the six conductor ribbon cable included to the USB Smart Cable six pin DBG connector as shown in Figure 11 UM023002 0112 Installing ZDSII and the USB Smart Cabl
11. 2 Assembling the Flat Lens Holder ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog 17 nQIxys FRONT VIEW 49 9mm 1 965in CE 12 5mm 492in r1 E 35 6mm 1 400in Figure 9 Flat Lens AA 0 9 GI T1 To assemble this flat lens and holder observe the following brief proce dure 1 Place the lens into the inside of the cap ensuring that the grooves of the lens are facing inward 2 Place the cap over the base ensuring that the top of the lens is toward the arrow on the base Use the provided 2 machine screws 2 with a nut to secure the cap in place see the example in Figure 10 3 Place the lens and lens holder assembly onto the ZMOTION 20 Pin Development Board with the arrow on the lens holder aligned with the primary placement arrow on the circuit board as shown in Figure 10 The four screw holes in the circuit board should line up with the four upper mounting holes in the lens holder 4 Use the provided 34 machine screws 4 with a nut to secure the lens holder in place see the example in Figure 6 on page 14 UMO023002 01 12 Assembling the Flat Lens Holder ZMOTION 20 Pin Detection and Control Development Kit User Manual Zil og Embedded ir e AnBIIXYS Company 18 Figure 10 Assembled Flat 0 9 Lens Holder and Flat Lens Installing ZDSII and the USB Smart Cable Observe the following the steps to install
12. 8 Click the Go icon to start the application running The Red LED LED3 will be ON initially until the pyroelectric sensor stabilizes a period that can take up to 30 seconds After it has stabilized LED3 turns OFF to turn ON only when motion is detected 9 To test this procedure wave your hand over the lens and notice LED3 turning ON for approximately 1 second UM023002 0112 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS ZMOTION 20 Pin Development Kit Application Soft ware Feature LED ON time duration main h DEF LED ON TIME DELAY 500MSEC 500 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 functionality 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 or
13. ATION DEVICES OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT ZILOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION DEVICES OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE The information contained within this document has been verified according to the general principles of electrical and mechanical engineering ZMOTION and Z8 Encore XP are registered trademarks of Zilog Inc All other product or service names are the property of their respective owners UM023901 0312 Disclaimer ZMOTION 20 Pin Detection and Control Development Kit User Manual Z O d nIxYs Ii Revision History Each instance in the table below reflects a change to this document from its previous edition For more details refer to the corresponding pages and appropriate links in the table below Revision Date Level Description Page Mar 01 Original issue All 2012 UM023901 0312 Revision History ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog BIXYS Table of Contents Revision History 1 0 0 0 cece hh ii ImthOdUCHON EET 1 Kit Contents 4 eiui e Eee Exi ESR ELS PR Eg 2 System Requirements eeeeeeeeee eee ee 5 Safeguards e eieae tiea Gia E ey E E ld E Rios E 6 ZMOTION 20 Pin Detection and Control Development Board 7 hocce m 7 MCU Feat tes 22e terat ras eve Bal ed sae e e Ree eg edo 7 ZMOTION 20 Pin Detection and Contr
14. BIXYS Kit Contents The ZMOTION 20 Pin Detection and Control Development Kit contains the following hardware software and documentation Hardware e ZMOTION 20 Pin Development Board USB Smart Cable Debugger 0 9 Focal Flat Lens Holder e 0 77 Focal Circular Lens Holder Selection of lenses Selection of pyroelectric sensors including a RE200B P sensor installed on the Board e Mini USB serial cable e Wall mount mini USB 5 V DC power supply e An assortment of mounting hardware The contents of the kit are shown in Figure 1 1 Zilog recommends using only the power supply provided in the ZMOTION 20 Pin Detection and Control Development Kit UM023002 0112 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual Wall Mount Power Supply UT ZMOTION 20 Pin Detection and Control Development Board gt Fre aa gt E E Mini USB Serial Cable a HE uk ji USB Smart Cable Debugger Ern wn n D t Lenses Figure 1 ZMOTION 20 Pin Detection and Control Development Kit Components Software on CD ROM e ZDSII Z8 Encore IDE with ANSI C Compiler USB to Serial Driver e Sample Code ZMOTION Serial Config UM023002 0112 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS Documentation The CD ROM provided in the ZMOTION 20 Pin Detection and Control Development Kit contains the following documen
15. Embedded in Life AnEITXYS Company ZMOTIONL200ZCOG ZMOTION 20 Pin Detection and Control Development Kit User Manual UM023901 0312 Copyright 2012 Zilog Inc All rights reserved www zilog com ZMOTION 20 Pin Detection and Control Development Kit User Manual ZILOg BIXYS AN Warning DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS LIFE SUPPORT POLICY ZILOG S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION As used herein Life support devices or systems are devices which a are intended for surgical implant into the body or b support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness Document Disclaimer 2012 Zilog Inc All rights reserved Information in this publication concerning the devices applications or technology described is intended to suggest possible uses and may be superseded ZILOG INC DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORM
16. FS040 ZMOTION 20 Pin Detection and Control MCU 20 pin SSOP e Mini USB power connector and serial interface Power On and Detection LED On chip debugger interface Board openings for an assortment of lens holders and clip on lens attachments Prototyping area e 2 7V 3 6V operating voltage with 5 V tolerant inputs MCU Features The Z8FS040 ZMOTION 20 Pin Detection and Control MCU combines the programmability and rich peripheral set of Zilog s Flash Z8 Encore XP Family of MCUs with built in motion detection software algorithms to provide the functions necessary for PIR motion detection applications UMO023002 01 12 ZMOTION 20 Pin Detection and Control Development Board ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS The Z8FS040 MCU includes the following features UM023002 0112 High performance eZ8 MCU core 4KB in circuit programmable Flash memory available for application code Single pin debug with unlimited breakpoints Flexible clocking scheme Internal precision oscillator running at 5 53 MHz External oscillator operating up to 20MHz Sigma Delta ADC Four single ended channels or two differential channels available On chip analog comparator with independent programmable refer ence voltage Full duplex UART with dedicated BRG Two 16 bit timers with input capture output compare and PWM capability 11 modes total Watchdog timer WDT with dedicated internal oscillator
17. LED ON TIME DELAY 5SEC Time the LED stays on when motion is detected gt Note LED ON time definitions are provided in the main h file for values from 50ms to 30 minutes 3 Click the Rebuild icon to build the project The build output should not indicate any errors Click the Go icon to download the modified project and start the application running Generate motion and notice that the LED now stays on for 5 seconds This file must match the lens and PIR sensor used in the application include API_INIT_00 h Generic settings non lens specific include API INIT O1 h BPI configuration file for AA 0 9 GI V1 Lens include API INIT 02 h API configuration file for CM 0 77 GI V3 Lens include API INIT 03 h BPI configuration file for CM 0 77 GI V5 Lens include API INIT 04 h BPI configuration file for CWM 0 5 GI V1 Lens include API INIT 05 include API INIT 06 include API INIT 07 include API INIT 08 API configuration API configuration API configuration API configuration ile for NCL 9 26 Lens ile for NCL 10IL Lens ile for NCL 3B Lens ile for NCL 3R Lens Hh oP rh bh Ph rh bh rh UM023002 0112 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual ZILOg nIxYs 33 include API INIT 09 h API configuration file for NCL 10S
18. Zilog Developer Studio ZDS ID and its associated documentation 1 Insert the ZDSII CD into the CD ROM drive The DemoShield installer launches automatically If DemoShield does not launch automatically open Windows Explorer browse to your CD ROM drive and double click 1aunch exe to launch DemoShield 2 From the product installer list you can choose to install ZDSII alone or both ZDSII and its associated documentation You can also copy the documentation directly from your CD ROM drive to your hard disk using Windows Explorer or read the documentation directly from the CD ROM itself For customer service and technical support Zilog recommends that you create an account at support zilog com UMO023002 01 12 Installing ZDSII and the USB Smart Cable ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS Installing the USB Smart Cable This section describes how to install the USB Smart Cable and associated driver software for your particular operating system Windows 7 32 64 Observe the following steps to install the USB Smart Cable for Windows Vista 32 bit systems 1 UM023002 0112 Connect the USB Smart Cable to the Host PC A window message stating Driver Software Installation appears Windows automatically searches the driver this process can sometimes take a few minutes to complete In this case wait for the search to com plete since there is no option to terminate this process
19. code is srented on a TOyslty ree Bomis Mowever users ore cautioned to suthanticete the code contained berein D X DOES MOT GUARANTEE THE VERACITY OF THIS SOFTWARE ANY SOFTWARE CONTAINED HEREIN 15 PROVIDED AS 18 NO WARRANTIES ARE GIVEN WHETHER EXPRESS IMPLIED OR STATUTORY INCLUDING 49 IMPLIED WARRANTIES OF FITNESS FOR PARTICULAR PURFOGE OR MEHFCHANIAUIL i ENT WILL z1L09 BE LIABLE FOR ANY SPECIAL TNCIDENTAL A n 30 LIABILITY IN TORT NEGLIGENCE OR OTHER LIABILITY INCURRE RES x EVEN ty ZILU HAS BEEN ADVISED OF THE POSSIBIL 5 DAROE A NOT WARRANT THAT THE r 1 OF THE SOFTWARE OR OF ANY IHFGEMATION CONTAINED THEREIN WILL HOT INFRINGE ANY PATENT COPYRIGHT OR TRADEMARK OF ANY THIRD PERSON OR ENTITY DESIGNED MAM PACIURED OR IN J EDATA 0100 1 0183 144 132 12 RDATA R 20 RiFF 80 63 n ROM c 0000 C EB6 4096 3767 329 ZMotion Serisl hex 093 7Motion Serisl lod 093 Relisting C WOREPO 1 EPIRCO 1 SWANDA I Light ing ZEMSCD 1 ZM TIO 1 arc etertupaPIR aum Relisting ORKFO 1 EPTRCO INSWANDA Lighting ZEMSCU T ZMOTIO 1 Debug apir api sre Relisting IRKFO 1 EPTRCO 138WANDA INL i ght 1ag ZENSCD 1 ZMOTIO 1 Debug ere Relisting REPO INEPT RCO 1NSWANDA 1 L1gbting ZEMSCD 132MOT10 1 Debug util src Relisting C WORKFO I EPIRCO7I SWANDA I Light ing ZEXSCD 13ZW9T107 1 Debug e lcommands erc Build euccmeded 4 is DT NBwia Debug Find i Files 1A Fi
20. e ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog tee 23 Figure 11 Connecting the Six Conductor Ribbon Cable to the USB Smart Cable 2 Attach the free end of the ribbon cable to the DBG connector ZDI In terface on the development board Ensure that pin 1 on the ribbon ca ble indicated by the dark stripe is aligned with pin 1 on the target connector indicated by a 1 on P2 of the board Installing the FTDI USB to Serial Driver Observe the following steps to install the FTDI USB to Serial Driver 1 Make sure that the USB cable is not plugged into the ZMOTION 20 Pin Development Board 2 On the CDROM double click the CDM20802 Setup exe file locat ed in the USB to Serial Driver folder to start the driver installation The installation process will begin and will appear similar to the fol lowing code statements UMO023002 01 12 Installing ZDSII and the USB Smart Cable ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS 24 32 bit OS detected lt installation path gt dpinstx86 exe Installation driver FTDI CDM driver installation process completed 3 When the installation is complete plug the USB cable into the ZMO TION 20 Pin Development Board 4 If driver installation was successful USB Serial Port COMx should appear in the list displayed in the Device Manager s Ports COM amp LPT interface To open the Device Manager on W
21. ide tab on the cap aligns with the outside tab on the base Use the pro vided 34 machine screws 2 with a nut to secure the cap in place UM023002 01 12 Assembling the Circular Lens Holder ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog Embedded in AnQUIXYS Company 14 3 Place the lens and lens holder assembly onto the ZMOTION 20 Pin Development Board by aligning the screw holes on the lens holder with the upper set of holes on the circuit board as shown in Figure 6 The 4 screw holes in the circuit board should line up with the four center mounting holes in the lens holder Figure 6 Top of Lens Holder on the ZMOTION 20 Pin Development Board 4 Use the provided 34 machine screws 4 with a nut to secure the lens holder in place See Figure 7 UM023002 0112 Assembling the Circular Lens Holder ZMOTION 20 Pin Detection and Control Development Kit User Manual ilog ABUIXYS Com 15 PTI ANNA Ch Figure 7 Assembled Circular 0 77 Lens Holder and Circular Lens Installed on the ZMOTION 20 Pin Development Board UM023002 0112 Assembling the Circular Lens Holder ZMOTION 20 Pin Detection and Control Development Kit User Manual Embedded in Life AnBIIXYS Company 1 6 Assembling the Flat Lens Holder The flat lens holder shown in Figures 8 and 9 is a two piece assembly that provides a 0 9 focal length mounting Figure 8 Flat 0 9 Lens Holder Cap and Base UM023002 01 1
22. iginal header file do not modify the original versions As new lens types are added to the ZMOTION family an associ ated 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 Table 2 Additional Project Features File Define Variable Default Values milliseconds Lens Support main c include API INIT xx h API INIT 0O4 h When motion is detected the LED is turned ON for 500msec DEF LED ON TIME A serial terminal program such as HyperTerminal can be used to view the detection messages from the ZMOTION 20 Pin Development Board In Figure 16 26 indicates the version of the applica UMO023002 01 12 Downloading and Running the Sample Project 29 ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog AEUIXYS Coma 30 tion the S following the ZMOTION gt prompt is displayed when the pyro electric 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 3 20pin HyperTerminal File Edit View Call Transfer Help De 55 28 A 26 ZMOTION Serial Command Application Display API Registers Read Write RAM MCU Reset LED On Off Time Display Events On Off Dump
23. indows 7 systems launch the Start menu enter Device Manager in the Search program and files field and press the Enter key To open the Device Manager on earlier Windows systems observe the following navigation Start Control Panel System Hardware Device Man ager Ports COM amp LPT Downloading and Running the Sample Project Sample projects are included on the Application CD Copy these projects to a convenient folder on your PC Once copied ensure the folders are not set to Read Only by right clicking the folder and selecting properties Deselect the Read Only attribute and click OK Make sure you apply changes to this and the other subfolders when prompted In this example we reference the ZMOTION Serial Config project which is the project that the kit is initially programmed with The steps that follow show you how to build the project and run it on the ZMO TION Module in a debug session these steps also apply to any of the other projects provided in the kit UMO023002 01 12 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilogd DBIXYS gt Note At this point you should have installed the FTDI to USB Serial Driver and loaded ZDSII and the USB Smart Cable driver onto your computer If you haven t yet done so refer to the Installing the FTDI USB to Serial Driver section on page 23 and or the Installing ZDSII and the USB Smart Cable sec
24. it systems 1 UM023002 0112 Connect the USB Smart Cable to the host PC The Found New Hardware dialog box is displayed Select Locate and install the driver software recommended The Driver Software Installation window is displayed followed by the Found New Hardware USB Smart Cable dialog box When prompted select don t have the disc Show me other op tions When prompted select Browse my computer for driver software advanced Browse to the following driver directory lt ZDS II Installation Directory Ndevice drivers NUSB The Windows Security dialog box is displayed select Install this driv er software anyway Installing ZDSII and the USB Smart Cable ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog BIXYS 21 7 Upon successful installation click Close Windows XP Observe the following steps to install the USB Smart Cable for Windows XP systems 1 Connect the Zilog USB device to the host PC The Found New Hardware wizard should activate automatically after connecting the Zilog USB device for the first time If prompted to connect to Windows Update select No not at this time 2 Select Install from a list or specific location Advanced then click Next gt Note If the Windows Logo testing dialog appears select Continue Anyway 3 Select Search for the best driver in these locations and Include this location in search 4 Browse to the following driver directory
25. nd i Files 2 Messages A Command 7 tn LCoI Figure 12 Building the ZMOTION Serial Config project in ZDSII ojei Build Debug Tools Window Help gt e X 8 DA Debug J i gm x DHE zx 3 3 X 3 3 3 3 3 3 3 3 3 3 3 3 3 3 7 e was written hy an ode has been verified t The source code in this consultant The source r Permissid The Rebuild All icon 975 e3 9 a roy x anthenti Hn herein Figure 13 The Location of the Rebuild All Icon UMO023002 01 12 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog AEUIXYS Compar 27 Make sure that the ZMOTION 20 Pin Development Board is powered OFF then connect the USB Smart Cable Debugger to P2 as de scribed above Ensure that the J8 jumper is closed in position 1 2 to control the USB power supply Apply power to the Development Board by plugging in the USB cable and setting SW1 to the ON position Next click the Reset icon in ZDSII Figure 14 indicates the location of both the Reset and Go icons in the ZDSII menu bar Tools Window Help Release ML P P SCELELLEPAELE LEE EL ALE Lt rr ipyright C 1999 2011 by Zi pyrig esmsxs megeme u NF I Ug CPC PEEL SUC gg l Rights Reserved The Reset icon The Go icon S project demonstrates how to
26. ocontrollers with integrated motion detection algo rithms A variety of included lenses and pyroelectric sensors demonstrate the flexibility of the integrated motion detection algorithms to provide the best possible performance for a range of lighting detection and control applications The Z8FS040 MCU a prominent member of the ZMOTION 20 Pin Detection and Control Family combines the programmability and rich peripheral set of Zilog s Flash Z8 Encore Ap Family of MCUs with built in motion detection software algorithms to provide the functions necessary for PIR motion detection applications These motion detection algorithms comprise Zilog s PIR technology and run in the background while control and status of the motion detection engine is accessed through a software Application Programmer Interface API As a result the designer can create his or her own application specific software while taking advantage of Zilog s ZMOTION Motion Detection Technology Within this Kit API settings are provided to match the Engine operation to each of the lens and pyroelectric sensor combinations provided For more details about the ZMOTION MCU including functional differ ences between the 8 and 20 pin versions refer to the ZMOTION Detec tion and Control Product Specification PS0285 available free for download from the Zilog website UM023002 0112 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual ZILOg
27. ol Development Kit Lenses and Pyroelectric Sensors lleeeeeeeeeee e 9 Pyroelectric Sensor Options 0 cee eee eee 9 Lens Mounting Options 00 0 cee eee eee 10 Attaching the PIR Sensor Lens 0 0 0c eee eee eee 11 Attaching the Circuit Board Lens 0 0 0 0 ee eee eee ee 12 Assembling the Circular Lens Holder 00 00 00 00005 13 Assembling the Flat Lens Holder 0 00 00 0 eee e ee 16 Installing ZDSII and the USB Smart Cable 18 Installing the USB Smart Cable 004 19 Connecting the USB Smart Cable 0 0 0005 22 Installing the FTDI USB to Serial Driver lesus 23 Downloading and Running the Sample Project 24 ZMOTION 20 Pin Development Kit Application Software 29 Making Changes to the ZMOTION Serial Config Project 31 Board Design Information 0 0 cece eee eee 34 Customer Support e eek ae ae eee ee n RR ER oes 36 UM023002 0112 Table of Contents ZMOTION 20 Pin Detection and Control Development Kit User Manual ZILOg BIXYS Introduction Zilog s ZMOTION 20 Pin Development Kit provides a general purpose platform for evaluating the capabilities and operation of the ZMOTION 20 Pin Detection and Control Family of microcontrollers featuring Zilog s passive infrared PIR technology The family includes a series of high performance micr
28. sensors Pyroelectric Sensor Options The ZMOTION 20 Pin Detection and Control Development Kit includes the following three pyroelectric sensors RE200B P a basic dual element sensor installed on the board SDAO2 54 P a premium dual element sensor SBDIA6 504AA a quad element sensor Figure 2 Two Additional Pyroelectric Sensors L R SDA02 54 P and SBDI46 504AA UM023002 0112 ZMOTION 20 Pin Detection and Control Development Kit Lenses and ZMOTION 20 Pin Detection and Control Development Kit User Manual Zilog OIXys 10 gt Note The type of sensor you use depends on your application requirements however not all sensors are suitable for all lenses Lens Mounting Options The ZMOTION 20 Pin Detection and Control Development Board sup ports four lens mounting options as indicated in Table 1 For lens instal lation instructions please refer to the sections that follow Table 1 Four Supported Lens Mounting Options Lens Mounting Supported Lens PIR Sensor Clip On NCL 9 26 NCL 3B NCL 3R NCL 10S NCL 10IL Circuit Board Clip In CWM 0 5 GI V1 Circular Lens Holder 0 77 Focal CM 0 77 GI V3 CM 0 77 GI V5 Flat Lens Holder 0 9 Focal AA 0 9 GI T1 UM023002 0112 ZMOTION 20 Pin Detection and Control Development Kit Lenses and ZMOTION 20 Pin Detection and Control Development Kit User Manual ilog BIXYS Compar 11 Attaching the
29. tation ZMOTION Detection and Control Product Brief PB0225 ZMOTION Detection and Control Product Specification PS0285 ZMOTION 20 Pin Detection and Control Development Kit Quick Start Guide QS0085 This ZMOTION 20 Pin Detection and Control Development Kit User Manual UM0239 Board schematic assembly drawing and artwork The CD ROM also contains the following related ZMOTION documenta tion ZMOTION Detection Module UM023002 0112 ZMOTION Detection Module Product Brief PB0223 ZMOTION Detection Module Product Specification PS0284 ZMOTION Intrusion Detection ZMOTION Intrusion Detection Product Brief PB0230 ZMOTION Intrusion Detection Product Specification PS0288 Supporting Documentation ZMOTION Lens and Pyroelectric Sensor Product Specification PS0286 ZMOTION A New PIR Motion Detection Architecture White Paper WP0017 ZMOTION Detection Lens and Pyro Sensor Configuration Guide WP0018 Power Management and Customer Sensing with Zilog s ZMO TION Detection Module AN0301 Introduction ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog OIXYS ZMOTION Detection Module Application Walkthrough AN0307 Controlling Power with the ZMOTION Detection Module and Clare Solid State Relays Application Note AN0319 System Requirements An IBM PC or compatible computer with the following minimum con figurations is required Microsoft Windows 7 Windows
30. tected the sensitivity of the system can be increased for a set amount of time Hypersense On Time Sets this time If motion is detected while sensitivity is increased the ON time starts over 8 Hypersense Mode Level There are three settings that control sensi tivity to motion during Hypersense these settings are Major Sensi tivity Minor Sensitivity and Range This menu option allows you to enable and set each of these settings individually 9 Normal Sense Level When in Normal motion sense mode i e not in Hypersense mode this selection allows you to set the sensitivity levels of the three settings Major Sensitivity Minor Sensitivity and Range Making Changes to the ZMOTION Serial Config Project The operation of the motion detection software can be changed by making modifications directly to the source code Follow the comments in the code generally in main h and main c to make any permanent changes UM023002 0112 Downloading and Running the Sample Project ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog BIXYS 32 For example to change the lens configuration file and the duration of the LED ON time observe the following procedure 1 Change the following line in the main h file fdefine DEF LED ON TIME DELAY 500MSEC Time the LED stays on when motion is detected 2 Change the line as follows to select a five second LED ON time define DEF
31. termine whether a later edition exists please visit the Zilog website at http www zilog com UM023002 0112 Customer Support
32. tion on page 18 for information about how to install these items 1 Open ZDSII and select File Open Project then navigate to the project folder labeled ZHyOTION Serial Config 2 Open the ZMOTION Serial Config zdsproj project When you first receive your kit this project is already loaded into the ZMOTION MCU Right click within the open grey area below the menu icons and select Workbook Mode to turn on the tabs at the bottom of the editor and therefore make it easier to switch between files 3 Clickthe Rebuild All icon to build the project The build output should not indicate any errors If you receive errors try reloading the projects from the original Application CD and ensure that the folders are not set to Read Only See Figure 12 for an example Figure 13 indicates the location of the Rebuild All icon in the ZDSII menu bar UMO023002 01 12 Downloading and Running the Sample Project 25 ZMOTION 20 Pin Detection and Control Development Kit User Manual zilog Embedded in Life AnDIXYS Company 26 Wie Et View Project Bild Debug Took Window Hep 4 let Deug xX 6 DB Debug SSH 2 usee Pal af zisi Standard Proyect Fal i9400 0040000000000000900000000000000000000900000200000000200000000000200000000000800000000000209 he roe code ip ile ane or y an sutborized iog employee or s licensed sesultant The euurce code has bewe verified to thy fullest wzteat posible 49 Permission to use thi
Download Pdf Manuals
Related Search
Related Contents
Service Manual PM100 Series AC Motor Drive User`s Manual P5B-E Plus - oldschooldaw.com CHYPRE - MODE D`EMPLOI (9782742433766) Monacor APC-06 KX III - Raritan Bea-fon S400 Purgadores termodinámicos DT300F Instrucciones ZenCut Green Manual HP 11686A User's Manual Copyright © All rights reserved.
Failed to retrieve file