background image

                                                                                                        Z8F3224 ZMOTION Development Kit 

 

 

 

UM029501-0321 

 

SAMPLE APPLICATIONS 

User Manual 

15 

 

Figure 9. ZM_NP_Basic Power on Messages 

Each time the MCU wakes up from a motion event it will display the following status message: 

 

Figure 10. ZM_NP_Basic Motion Detection Messages

 

ZM_NP_Command 

This project demonstrates the use of the ZMOTION Library and API to detect motion with ambient 
light detection and a serial command interface. When a motion event is detected, the status LED is 
flashed, motion trigger output is pulsed, and a message can be sent via Serial interface. 

Typical current consumption is <1mA @ 3.0V 

The serial command interface includes the following features that help adjust system operations 
and performance: 

  Pet Immunity mode 

 

Programmable Digital sensitivity

 

 

Programmable LED, trigger, and motion delay time

 

 

Ambient light levels and threshold

 

 

Temperature Compensation 

– adjusts Analog PIR thresholds based on ambient 

temperature

 

 

Temperature Change Protection 

– Ignores motion events generated by temperature 

changes

 

 

Vdd Shift Protection 

– Ignores motion events generated by shifts in supply voltage

 

 

Smart Sense Mode 

– Intelligent micro motion

 

 

Pass Through Mode 

– Intelligent motion delay time

 

 

Boot Loader

 

 
Refer to the Serial Command Functions NP file included with the project for a full list of functions 
and features.

 

Содержание zilog Z8F3224 ZMOTION

Страница 1: ...ZMOTIONL400ZCOG Z8F3224 ZMOTION Development Kit User Manual UM029501 0321 ...

Страница 2: ...ife support device or system or to affect its safety or effectiveness Document Disclaimer 2021 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 INFORMATION DEVICES OR TECHNOLOGY DES...

Страница 3: ...ion white light detection and several other motion related functions to be integrated with the user s application code An Application Programming Interface API allows the application code to configure control and monitor the Library in real time API configuration parameters allow the Engine operation to be optimized for the particular lens and pyro electric sensor being used in the application Thi...

Страница 4: ...Z8F3224 ZMOTION Development Kit UM029501 0321 KIT CONTENTS User Manual 2 Figure 1 ZMOTIONL400 Development Kit Contents ...

Страница 5: ...Z8F3224 ZMOTION Development Kit UM029501 0321 KIT CONTENTS User Manual 3 Figure 2 Development Board top side Figure 3 Development Board bottom side ...

Страница 6: ...ng Lighting and HVAC Control Kiosk Display Control Vending Appliance Power Management ZNCL10S 9mm Wall Ceiling Mount 15o x15o Clips on to pyro electric sensor 2 beams X 1 beam Y 12m range Barrier or entrance detection Kiosk Display Counters Vending HVAC Directional detection ZNCL926 Clip on 15mm 360o 26 Segments 5m height 2 1 1 Floor diameter to height ratio Room Occupancy and Proximity Sensing Li...

Страница 7: ...Z8F3224 ZMOTION Development Kit UM029501 0321 LENSES User Manual 5 Figure 6 ZCWM05GIV1 PCB Mount Figure 5 ZNCL11 PCB Mount Figure 4 Clip on Lenses ...

Страница 8: ...Features Two Z8F3224QN020XK2258 ZMOTION MCU s Normal Power configuration Low Power configuration USB Serial Interface Tamper switches Ambient Light Sensors Status LED s Variable power supply 2 0V to 3 5V The following figure shows a block diagram of the Z8F3224 ZMOTION Development Board Refer to Appendix A for the complete schematic diagrams Figure 7 Z8F3224 ZMOTION Development Board Block Diagram...

Страница 9: ...el 12 bit Analog to Digital Converter ADC that can be configured for internal or external voltage reference and single ended or differential inputs Two on chip analog comparators Two on chip low power operational amplifiers 8 Channel Event System provides communication between peripherals for autonomous triggering Full duplex 9 bit UART port with the support of Local Interconnect Network LIN and D...

Страница 10: ...Development Software This will create a folder that includes the VCOM USB driver reference schematics sample applications ZMOTION Engine Library and related documentation Version 1 0 is the latest version of the installation file when the kit was released Later versions of the file may be available After installation the following folders will be created Zilog ZMOTIONL400ZCOG_1 0 Documentation Dri...

Страница 11: ...ration LP or NP 3 Install the ZNCL10IL lens on the PIR sensor 4 Ensure that each jumper is installed for J4 2 3 shunt and J9 2 3 shunt Active device is enabled on SW4 5 Ensure that R16 is adjusted on a fully clockwise direction This shall allow NP_VDD_IN to have the same voltage level as VCC_T 6 With the USB A male to Mini B cable connect Port P1 on the Development Board to a USB port on the devel...

Страница 12: ...to select the desired connection Table 5 LP MCU UART Connections Use caution when using a separate Serial to USB converter cable connected to J10 or J5 The Z8F3224 supply voltage VCC_T selected by R33 must match the drive level provided by the cable The sample applications provided avoid this issue as follows Txd Configured as Open Drain without an internal pull up The pull up resistor should be p...

Страница 13: ...e peripherals clock sources can be enabled Exit via Stop Mode Recovery SMR Stop mode provides the lowest current consumption and is used in the ZM_LP_Basic and ZM_LP_Command projects The ZM_NP_Basic and ZM_NP_Command projects use Halt mode to reduce current consumption However debugging operations are limited when using Stop mode To use the full debugger with the ZM_LP_Basic and ZM_LP_Command proj...

Страница 14: ...o Refer to Serial Command Functions NP Rev x pdf included in the project folder ZM_LP_Basic This project uses the Low Power MCU configuration to provide motion detection with ZMOTION Digital PIR validation The MCU stays in Low Power Stop mode until a motion event is detected by the analog PIR interface When the MCU wakes up it runs the ZMOTION Engine on the PIR signal to validate the motion event ...

Страница 15: ...de Description 0004 Wake up from Power on Stability Delay timer 0002 Wake up from Ignore Motion Timer 0001 Wake up due to analog PIR motion event 0010 Wake up to drive Motion Trigger Output inactive PIR Stable PIR sensor is stable Power on stability delay complete Motion Detected The ZMOTION Engine validated the motion event EM Motion detection enabled Ignore Motion time is complete SW1 Pressed In...

Страница 16: ...reshold Temperature Compensation adjusts Analog PIR thresholds based on ambient temperature Temperature Change Protection Ignores motion events generated by temperature changes Vdd Shift Protection Ignores motion events generated by shifts in supply voltage Smart Sense Mode Intelligent micro motion Pass Through Mode Intelligent motion delay time Boot Loader Refer to the Serial Command Functions LP...

Страница 17: ...e Typical current consumption is 1mA 3 0V The serial command interface includes the following features that help adjust system operations and performance Pet Immunity mode Programmable Digital sensitivity Programmable LED trigger and motion delay time Ambient light levels and threshold Temperature Compensation adjusts Analog PIR thresholds based on ambient temperature Temperature Change Protection...

Страница 18: ...l the VCOM USB driver included with the ZMOTIONL400ZCOG_1 0 installation file by right clicking on the exe file and selecting Run as administrator This driver is located in the Drivers folder Zilog_VCOM_Install x64 exe 64 bit Windows Zilog_VCOM_Install x86 exe 32 bit Windows The Device Driver will be installed as Zilog USB Serial Device in Device Manager under Ports COM LPT Connect ZMOTIONL400 Dev...

Страница 19: ...ligned correctly with the female connector on the unit as indicated by the red stripe in the following figure Figure 12 Connecting the 6 Circuit Ribbon Cable to the SmartCable 4 Connect the other end of the ribbon cable to NP Debug Connector J8 on the Development Board Ensure that Pin 1 on the ribbon cable is aligned with Pin 1 on the target connector as shown in the following figure Figure 13 Con...

Страница 20: ...pment Board 7 Start ZDS II and open the NP Serial Command project ZM_NP_Command zdsproj This can be done by starting ZDS II and opening the project by clicking File Open Project from the menu or by navigating to the folder in Windows File Explorer and double clicking the project file located in ZMOTIONL400ZCOG_x x Z8F3224 ZMOTION Library Sample Applications ZMOTION_3224_NP_Command_Rx_x The Rx_x su...

Страница 21: ... Rebuild All icon ZDS II will build the project using the current versions of all source files and generate the necessary output files If there were no errors detected during the build a message similar to the one in the following figure will be displayed Figure 16 Build Succeeded Message 11 Click the Go icon ZDS II will connect to the target MCU through the Encore SmartCable or USB SmartCable dow...

Страница 22: ...plication is running and connected to the Zilog USB Serial Device the messages similar to those shown in the following figure will be displayed Figure 18 Messages Displayed on Tera Term Serial Capture Program 14 Each time motion is detected the terminal will display Motion Detected 15 Other status messages are sent out the serial port The amount of status information sent can be selected by settin...

Страница 23: ...gn for Debug TN0036 Documentation Tools_Documentation Encore Smart Cable User Manual UM0294 Documentation Tools_Documentation USB SmartCable User Manual UM0181 Documentation Tools_Documentation Opto Isolated USB SmartCable User Manual UM0195 Documentation Tools_Documentation Ethernet SmartCable User Manual UM0207 Documentation Tools_Documentation Documents included in the ZMOTIONL400ZCOG_1 0 Insta...

Страница 24: ...24 ZMOTION Development Kit UM029501 0321 APPENDIX A User Manual 22 Appendix A Schematic Diagrams The schematic diagram for the Z8F3224 ZMOTION Development Board is shown in the figures on the following pages ...

Страница 25: ...IN 13 PC4 ANA8 C0IN1P 14 PC5 ANA9 C0IN1N 15 PD0 RESET 16 VDD 17 AVDD 18 AVSS 19 PB0 ANA2 C0IN0P AMPA0INP 21 PD1 ANA12 22 PD2 ANA13 23 PD3 ANA14 24 PB1 ANA3 C0IN0N AMPA0INN 25 PC6 ANA10 C1IN1P ESOUT2 26 PC7 ANA11 C1IN1N ESOUT3 27 PB2 ANA4 C0OUT AMPA0OUT 28 PB3 VREF 29 PB4 VREF 30 PD4 T2IN T2OUT ESOUT1 31 PB5 ANA5 C1OUT AMPA1OUT 32 PD5 T2OUT ESOUT2 33 PB6 ANA6 C1IN0N AMPA1INN ESOUT2 34 PB7 ANA7 C1IN...

Страница 26: ...5 ANA5 C1OUT AMPA1OUT 32 PD5 T2OUT ESOUT2 33 PB6 ANA6 C1IN0N AMPA1INN ESOUT2 34 PB7 ANA7 C1IN0P AMPA1INP ESOUT3 35 VCORE 36 VDD 37 PA0 T0IN T0OUT CLKIN 38 PA1 T0OUT SCKOUT 39 VSS 40 DBG 41 PC0 T0IN T0OUT DE MISO SCL 42 PC1 T0OUT CTS SS SDA 43 PE3 ESOUT3 44 VSS 20 EP GND 45 C41 4700pF J8 HDR PIN 2x3 1 2 3 4 5 6 R19 330 ohm D3 RED 2 1 R16 25K 1 3 2 C34 10uF 1 2 R22 10K C15 0 1uF R18 47K TP4 J10 HDR ...

Страница 27: ... J15 1 R39 10K GND Z8F6481QN U8 PA2 DE0 CLK2IN X2IN 1 PA3 CTS0 X2OUT 2 PE3 T4CHA ESOUT0 3 PD6 DE1 4 PA4 RXD0 MOSI0 5 PA5 TXD0 SCK0 6 PD5 TXD1 7 PA6 T1IN T1OUT SCL 8 PC4 MOSI0 T0IN T0OUT SCL DE0 9 PC5 SCK0 T0OUT SDA CTS0 10 PA7 T1OUT SDA 11 PD4 RXD1 12 PC6 T2IN T2OUT SCKOUT ESOUT0 13 PC7 T2OUT CTS1 ESOUT1 14 VDD 15 PD0 RESET 16 DBG 17 PD3 C1OUT AMPBOUT ANA8 18 VSS 19 PC0 ANA4 VBIAS C0INP 21 PC1 ANA...

Страница 28: ...stalling the Encore SmartCable Driver or Appendix C Installing the USB SmartCable Driver 1 Prior to connecting the Z8F3224 ZMOTION Development Board to your development PC download ZDS II for Z8 Encore v5 6 0 or later from the Zilog website Select the most recent version of ZDS II Z8 Encore 2 When your download is complete double click the installation file named ZDS2_Z8Encore version exe and foll...

Страница 29: ...Device Manager The Windows Device Manager should appear in the list of returned items in your search click this item to launch the Device Manager 4 A selection label as Other devices should appear in the list of hardware devices currently running in the Device Manager Click the arrow to the left of Other Devices to display these additional devices 5 Right click USB Smart Cable to select Update Dri...

Страница 30: ...ish If so you don t need to do the following below steps but there is no harm proceeding 1 Navigate to Start All Programs ZiLOG ZDSII Z8 Encore 5 6 0 2 Right click on Install Encore SmartCable Driver and select Run as administrator 3 Click on Yes button on the User Account Control prompt that appears 4 Click on Yes button on the Encore SmartCable Driver Installation prompt to install the driver so...

Страница 31: ...021 01 Original issue All 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 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 This publication i...

Отзывы: