0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
ZEPIR0BAS02MODG

ZEPIR0BAS02MODG

  • 厂商:

    ZILOG(齐洛格)

  • 封装:

    Module

  • 描述:

    ZMOTION DETECTION MODULE Z8FS040

  • 数据手册
  • 价格&库存
ZEPIR0BAS02MODG 数据手册
ZEPIR0BxS02MODG ZMOTION® Detection Module II Product Specification PS030504-0917 Copyright ©2017 Zilog®, Inc. All rights reserved. www.zilog.com ZMOTION® Detection Module II Product Specification ii 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 ©2017 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 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 trademarks or registered trademarks of Zilog, Inc., an IXYS Company. All other product or service names are the property of their respective owners. PS030504-0917 Disclaimer ZMOTION® Detection Module II Product Specification iii Revision History Each instance in the following revision history table reflects a change to this document from its previous version. For more details, refer to the corresponding pages or appropriate links provided in the table. Revision Level Description Page Number Sep 2017 04 Corrected ZMOTION Engine revision. 65 Sep 2014 03 Updated Table 10 to include PS0336 and change title of PS0286 58 May 2013 02 Updated mechanical drawings, Figures 9 and 10. 56, 57 Mar 2013 01 Original issue. All Date PS030504-0917 Revision History ZMOTION® Detection Module II Product Specification iv Table of Contents Revision History. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .iii Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv List of Figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .viii Architectural Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 ZEPIR0BxS02MODG Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Operational Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Setting Operation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Signal Descriptions, Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Supply Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Motion Detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Light Gate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Signal Descriptions, Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Supply Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Receive Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Transmit Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Motion Detect and Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Light Gate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Voltage Brown-Out Protection and Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . 8 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Sleep Mode in Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Sleep Mode in Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 PS030504-0917 Table of Contents ZMOTION® Detection Module II Product Specification v Serial Interface Commands and Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Serial Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Motion Status Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Light Gate Level Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 MD/RST Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 MD Activation Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Hyper Sense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Hyper Sense Level Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Frequency Response Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Motion Detection Suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Software Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Serial Interface Command Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Motion Detected Unsolicited Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 MD Current Active Output Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Ping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Range Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Directional Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Module Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Sleep Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Detection Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mechanical Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 55 56 58 58 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Part Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 PS030504-0917 Table of Contents ZMOTION® Detection Module II Product Specification vi Appendix A. Schematic Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Appendix B. Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Appendix C. Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Appendix D. Software Revisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 PS030504-0917 Table of Contents ZMOTION® Detection Module II Product Specification vii List of Figures Figure 1. ZDM II Block Diagram (ZEPIR0BxS02MODG) . . . . . . . . . . . . . . . . . . . . . 2 Figure 2. The ZMOTION Detection Module II, Right-Angle Version (ZEPIR0BAS02MODG) 2 Figure 3. Power-On Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 4. Voltage Brown-Out Reset Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Figure 5. Read Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Figure 6. Write Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Figure 7. Confirmed Command Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Figure 8. Detection Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Figure 9. Mechanical Drawing of the ZMOTION Detection Module II (Right-Angled Pins, ZEPIR0BAS02MODG) 56 Figure 10. Mechanical Drawing of the ZMOTION Detection Module II (Straight Pins, ZEPIR0BBS02MODG) 57 Figure 11. Schematic Diagram of ZMOTION Detection Module II . . . . . . . . . . . . . . 62 Figure 12. Application Example, Hardware Interface Mode . . . . . . . . . . . . . . . . . . . . 63 Figure 13. Application Example, Serial Interface Mode . . . . . . . . . . . . . . . . . . . . . . . 64 PS030504-0917 List of Figures ZMOTION® Detection Module II Product Specification viii List of Tables Table 1. Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Table 2. Delay Time and Voltage on DLY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Table 3. Summary of Serial Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Table 4. Shortcuts to Light Gate Level Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table 5. MD Output Activation Time Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table 6. MD Output Activation Time Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Table 7. MD Output Activation Time Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Table 8. Shortcuts to Directional Detection Commands . . . . . . . . . . . . . . . . . . . . . . 47 Table 9. Shortcuts to Module Reset Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Table 10. ZMOTION Detection Module II Reference Design Documentation . . . . . 58 Table 11. Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Table 12. Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Table 13. Part Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Table 14. ZMOTION Detection Module II Application Software Revision . . . . . . . . 65 Table 15. ZMOTION Engine Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 PS030504-0917 List of Tables ZMOTION® Detection Module II Product Specification 1 Architectural Overview Zilog’s ZMOTION® Detection Module II (ZDM II) is a complete motion detection solution ideally suited for applications that must detect a human presence. It is an excellent solution for detecting people as they approach entrances, kiosks, product displays, vending machines, appliances and advertising displays. ZDM II is a board-level module that combines the unique features of Zilog’s ZMOTION® (Z8FS040) microcontroller with a pyroelectric sensor and a clip-on lens. The pyroelectric sensor and clip-on Fresnel lens combine to provide a compact solution without sacrificing performance, plus the ability to change lenses provides the flexibility to suit a variety of applications. The module is only 25.5 mm x 16.7 mm (and only 11 mm thick), so it can easily fit into many size-constrained applications. ZDM II is simple to use. It can operate in Hardware Mode – which simply activates an output signal when motion is detected – or in Serial Mode, allowing it to communicate with another processor in your system when greater control over motion detection performance is required. In both modes, sensitivity and output activation time can be controlled to match application requirements. For applications that require ambient light sensing, an input supporting an external light sensor is provided for gating motion detection output. ZDM II provides an easy, low-risk solution for your motion detection requirements. Features Key features of the ZDM II include: • • • • • • • • • • • PS030504-0917 Complete low-profile motion detection solution Small form factor: 25.5 mm x 16.7 mm Ranges up to 7 m with a 95-degree detection pattern Simple-to-use Hardware Mode or advanced Serial Mode (UART) Flexible control over sensitivity and output activation time Sleep Mode for low-power applications Support for Ambient Light Sensor input Unique Hyper Sense feature automatically increases sensitivity after motion is detected Minimal components ensure high reliability Application code can be modified to support custom solutions Complete evaluation system available Architectural Overview ZMOTION® Detection Module II Product Specification 2 • • • 8-pin interface connector with two orientations available (right-angle and straight) Operates from a 2.8 V to 3.6 V power supply Standard operating temperature range: 0°C to 70°C ZEPIR0BxS02MODG Block Diagram Figure 1 shows a block diagram of the ZMOTION® Detection Module II. ZNCL10IL Lens 8-Pin Connector Pyroelectric Sensor ZRE200BP ZMOTION MCU TM Z8FS040BSB20EG GND : 1 VDD : 2 RxD/DLY : 3 TxD/SNS : 4 /MD/RST : 5 LG : 6 /SLP : 7 GND : 8 Figure 1. ZDM II Block Diagram (ZEPIR0BxS02MODG) Figure 2 shows the right-angle version of the ZDM II Module. Figure 2. The ZMOTION Detection Module II, Right-Angle Version (ZEPIR0BAS02MODG) PS030504-0917 ZEPIR0BxS02MODG Block Diagram ZMOTION® Detection Module II Product Specification 3 Pin Description Table 1 lists the pin and signal descriptions per mode for ZDM II. Table 1. Pin Description Pin# Signal Name Hardware Interface Mode Serial Interface Mode Comments 1 GND Ground Ground — 2 VDD Supply Voltage Supply Voltage — 3 RXD/DLY Delay (DLY; analog input) RXD — Receive Data (digital input) — 4 TXD/SNS –Sensitivity (SNS; TXD — Transmit Mode Select during reset Data (digital output) analog input) 5 MD/RST Motion Detect (digital output) Configurable: Reset Default is Reset (RST) in Serial (RST; digital input); Interface Mode. Motion Detect (MD; digital input) 6 LG Light Gate (analog input) Light Gate (analog input) If unused, connect to VDD. 7 SLP/DBG Sleep (SLP; digital input) Sleep (SLP; digital input) DBG is used for programming and debug. 8 GND Ground Ground — Operational Modes ZDM II operates in both Hardware Interface and Software Interface modes; each is described in this section. Hardware Interface Mode • • • • PS030504-0917 Provides basic configuration via the hardware interface pins Allows you to adjust sensitivity and delay Offers optional ambient light input Includes a Sleep Mode to reduce power consumption Pin Description ZMOTION® Detection Module II Product Specification 4 Serial Interface Mode • • • Provides advanced configuration and status via a serial interface MD, LG and SLP remain functional The serial interface runs at: 9600 bps, no parity, 8 data bits, 1 stop bit and no flow control Setting Operation Mode This section briefly outlines how to set Module operation in either Serial Interface or Hardware Interface modes. Serial Interface Mode Selection To select Serial Interface Mode, provide a pull up resistor from TXD/SNS to VDD during power ON or when exiting Sleep Mode (typically 100 KΩ). The device detects that the voltage on the pin is greater than 2.5 V and enables the TXD and RXD signals. MD, LG and SLP remain active also. This resistor will have no effect on the transmitted data. Hardware Interface Mode Selection The Hardware Interface Mode is selected when TXD/SNS is between 0 V and 1.8 V during power ON or when exiting Sleep Mode. For examples of using ZDM II in Hardware and Serial Interface Modes, see Appendix B. Hardware Interface Mode on page 63 and Appendix C. Serial Interface Mode on page 64. Signal Descriptions, Hardware Interface Mode This section describes the signals for operating in Hardware Interface Mode. Ground Both Pin 1 and the Pin 8 ground (GND) signals are tied together on the ZMOTION® Detection Module II and are connected to power ground. Supply Voltage The supply voltage (VDD) provides power to ZDM II via Pin 2. For power consumption details, see the Electrical Characteristics chapter on page 59. PS030504-0917 Signal Descriptions, Hardware Interface Mode ZMOTION® Detection Module II Product Specification 5 Delay A high-impedance analog input, Pin 3 (RXD/DLY), sets the duration for the Motion Detect (MD) pin to remain active when motion has been detected. Provide a voltage between 0 V and 2 V to select a delay of 2 seconds to 15 minutes (see Table 2). Typically, a simple resistor divider or trim pot is used to set the voltage. Table 2. Delay Time and Voltage on DLY Delay Time Voltage on DLY 2 sec 0V 5 sec 0.2 V 10 sec 0.4 V 30 sec 0.6 V 1 min 0.8 V 2 min 1.0 V 3 min 1.2 V 5 min 1.4 V 10 min 1.6 V 15 min 1.8 V Sensitivity A high-impedance analog input, Pin 4 (TXD/SNS) sets the Module’s sensitivity to motion. Provide a voltage between 0 V and 1.8 V to adjust the sensitivity to meet the application requirements. A lower voltage means higher sensitivity. Typically, a simple resistor divider or trim pot is used to set the voltage. • • 1.8 V = lowest sensitivity 0 V = highest sensitivity This signal also determines the interface mode of the Module. At power ON, and when exiting Sleep Mode, the signal is sampled; if it is greater than 2.5 V (for example, pulled to VDD via resistor), then the system enters Serial Interface Mode and the pin is converted to TXD. If the signal is between 0 V and 1.8 V, Hardware Interface Mode is selected. PS030504-0917 Signal Descriptions, Hardware Interface Mode ZMOTION® Detection Module II Product Specification 6 Motion Detect An active Low output, Pin 5 (MD) is activated when motion is detected. The duration in which this signal remains active is set by the DLY signal. This signal is actively driven High. • • 0 = motion detected 1 = no motion detected Light Gate A high-impedance analog input, Pin 6 (LG), should be provided with a voltage that is proportional to the amount of ambient light in the environment (typically provided via a CDS photocell or similar circuit). The signal is used internally to gate the MD output signal such that it does not activate in the presence of daytime ambient light. When the voltage on this pin is lower than 1.0 V, the MD signal will not activate even when motion is detected. If MD is in an active state when LG transitions below 1.0 V, the current DLY duration is completed before MD is deactivated. If LG is unused, connect to VDD. • • GND to 1.0 V = MD does not activate when motion is detected 1.0 V to VDD = MD is activated when motion is detected Sleep Mode Pin 7 (SLP) is an active Low digital input. When at logic 0, the Module enters low-power Sleep Mode. The Module does not detect any motion and MD is driven inactive. When SLP is at logic 1, the Module exits Sleep Mode and begins detecting motion. This signal must be held at logic 1 during power ON. • • 0 = module disabled; low-power Sleep Mode is active 1 = normal operation Signal Descriptions, Serial Interface Mode This section describes the signals for operating in Serial Interface Mode. Ground Both Pin 1 and Pin 8 ground (GND) signals are tied together on the ZDM II Module and are connected to power ground. PS030504-0917 Signal Descriptions, Serial Interface Mode ZMOTION® Detection Module II Product Specification 7 Supply Voltage The supply voltage (VDD) provides power to the Module via Pin 2. For power consumption details, see the Electrical Characteristics chapter on page 59. Receive Data This Pin 3 (RXD/DLY) input is the asynchronous serial input used for sending commands and configuration to the Module. It operates at 9600 bps, no parity, 8 data bits, 1 stop bit and no flow control. For a list and description of the commands supported, see Table 3 on page 14. Transmit Data This Pin 4 (TXD/SNS) output is the asynchronous serial data output from the Module in response to commands and configuration supplied on the RXD line. It operates at 9600 bps, no parity, 8 data bits and 1 stop bit. For more information about the serial command interface, see the Serial Interface Commands and Description section on page 12. This signal also determines the interface mode of the Module. At power ON, and when exiting Sleep Mode, the signal is sampled; if it is higher than 2.5 V (for example, pulled to VDD via resistor), then the system enters Serial Interface Mode. If the signal is at a value between 0 V and 1.8 V, Hardware Interface Mode is selected. Motion Detect and Reset An active Low output, Pin 5 (MD/RST), is activated when motion is detected. The duration in which this signal remains active is set by the DLY signal. This signal is actively driven High. • • 0 = motion detected 1 = no motion detected As RST, this pin provides an active Low hardware reset signal for the Module. The function of this pin is selected by the C serial command. The default value for this pin is RST. Light Gate A high-impedance analog input, Pin 6 (LG), is used internally to gate the MD signal such that it does not activate in the presence of daytime ambient light. The voltage applied to this pin should be proportional to the amount of ambient light in the environment (typically provided via a CDS photocell or similar circuit). PS030504-0917 Signal Descriptions, Serial Interface Mode ZMOTION® Detection Module II Product Specification 8 • • LG > Light Gate Threshold Register — MD is activated when motion is detected LG < Light Gate Threshold Register — MD does not activate when motion is detected If MD is in an active state when LG transitions above the programmed value, the current DLY time is completed before MD is deactivated. If LG is unused, connect to VDD. Sleep Mode Pin 7 (SLP) is an active Low digital input. When at logic 0, the Module enters low-power Sleep Mode. The Module does not detect any motion and MD is driven inactive. When SLP is at logic 1, the Module exits Sleep Mode and begins detecting motion. This signal must be held at logic 1 during power ON. • • 0 = module disabled; low-power Sleep Mode is active 1 = normal operation Voltage Brown-Out Protection and Power-On Reset ZDM II contains an internal Reset Controller with a Power-On Reset (POR) circuit and Voltage Brown-Out (VBO) protection to ensure proper operation. When power is first applied, the POR circuit monitors the supply voltage and holds the Module’s MCU in the Reset state until the supply voltage reaches a safe operating level. After the supply voltage exceeds the POR voltage threshold (VPOR), the MCU is released and the Module begins operating. A further delay of typically 20 seconds is included to allow the pyroelectric sensor to stabilize. This value varies depending on environmental conditions. After this delay, the system begins to look for motion. Prior to this delay, the MD signal remains inactive. Figure 3 shows Power-on Reset operation. See the Electrical Characteristics chapter on page 59 for the POR voltage threshold (VPOR). PS030504-0917 Voltage Brown-Out Protection and Power-On Reset ZMOTION® Detection Module II Product Specification 9 Figure 3. Power-On Reset Operation ZDM II provides low Voltage Brown-Out protection to ensure proper operation when the supply voltage drops below an unsafe level – below the VBO voltage threshold. The VBO circuit senses this condition and forces the Module into the Reset state. While the supply voltage remains below the POR voltage threshold (VPOR), the VBO block holds the Module in the Reset. After the supply voltage again exceeds the Power-On Reset voltage threshold, the Module progresses through a full Power-On Reset sequence, as described in the Power-On Reset section. Figure 4 shows the Voltage Brown-Out operation. See the Electrical Characteristics chapter on page 59 for the VBO voltage threshold (VVBO). Figure 4. Voltage Brown-Out Reset Operation PS030504-0917 Voltage Brown-Out Protection and Power-On Reset ZMOTION® Detection Module II Product Specification 10 Operation When power is applied, the TXD/SNS pin is sampled to determine the mode of operation. If the signal is above 2.5 V, Serial Interface Mode is entered. If the signal is between 0 V and 1.8 V Hardware Interface Mode is entered. During this time, the pyroelectric sensor is monitored, and the device waits for it to stabilize. After this stabilization period is complete, the device starts normal operation in the selected mode. In Hardware Interface Mode, the DLY, SNS, LG and SLP signals are sampled regularly. In Serial Interface Mode, TXD/RXD are used to communicate with the device and LG, SLP and MD also provide their defined functions. Hardware Interface Mode This mode of operation is selected when the SNS pin is at a value between 0 V and 1.8 V during power ON (or after a reset caused by VBO). After Hardware Interface Mode has been established, this pin becomes the sensitivity input and accepts a voltage between 0 V and 1.8 V to set the motion detection sensitivity level. • • 0 V = highest sensitivity 1.8 V = lowest sensitivity These sensitivity levels are normally achieved with a simple resistor divider or potentiometer resistor divider. After application of power, the PIR sensor is allowed to stabilize. At this point, the MCU waits for the PIR sensor to stabilize; this period is typically 20 seconds but varies depending on environmental conditions. The software dynamically monitors the pyroelectric sensor during power up and begins detecting motion as soon as the sensor is stable. The MD (Motion Detect) pin is driven active (Low) when motion is detected. The duration in which the signal remains active is determined by the voltage on the delay pin and can be set to a value between 2 seconds and 15 minutes. See Table 2 on page 5. The Light Gate signal acts as a disable (gate) for the MD signal. In a typical application, this signal is a representation of the ambient light in the environment. If there is light detected, the MD signal does not activate, even in the presence of motion. For an example showing how to use ZDM II in Hardware Interface Mode, see Appendix B. Hardware Interface Mode on page 63. PS030504-0917 Operation ZMOTION® Detection Module II Product Specification 11 Sleep Mode in Hardware Interface Mode For applications in which motion detection is not always required, the Sleep signal can be used to put the device into a low-power mode. The advantage of this feature vs. removing power from the Module is that the PIR stabilization time is much shorter. If the Sleep (SLP) input signal is driven Low, the device enters a low-power Sleep Mode and is awakened by deactivating the signal (driving the signal High). Serial Interface Mode Serial Interface Mode is implemented as a superset of the features available in Hardware Interface Mode. The interfacing device (Host) has an expanded feature set and more flexibility with many of those features. The interface is designed to be simple to implement on the host processor and use as few resources as possible. This mode of operation is selected when the SNS pin is above 2.5 V during power ON (or after a reset caused by VBO). Typically this signal is tied to VDD through a pull-up resistor. After Serial Interface Mode has been established, this pin becomes the Transmit Data (TXD) output and is used to send responses to commands given to the device. The serial interface is asynchronous and is set to: • • • • • 9600 baud No parity 8 data bits 1 stop bit No flow control In Serial Interface Mode, commands are sent to the device over the RXD input pin and responses are sent from the device over the TXD output pin. The other signals on the device (MD, LG, SLP) remain active in Serial Interface Mode. Motion Detect (MD) output is driven active for the time set by the Output Activation Time command when motion is detected. The signal is also gated by the Light Gate (LG) input. For an example of how to use ZDM II in Serial Interface Mode, see Appendix B. Hardware Interface Mode on page 63. PS030504-0917 Serial Interface Mode ZMOTION® Detection Module II Product Specification 12 Sleep Mode in Serial Interface Mode For applications in which motion detection is not always required, the Sleep signal can be used to put the device into a low-power mode. The advantage of this feature vs. removing power from the Module is that the PIR stabilization time is much shorter. If the Sleep (SLP) input signal is driven Low, the device enters a low-power Sleep Mode and is awakened by either deactivating the signal (driving the signal High) or sending a character over the serial interface; the character is received and processed. Serial Interface Commands and Description The Serial Interface operates as a Host/Client relationship in which the Module is the client. Commands are sent from the Host and the Module responds with the requested information or confirmation. The only exception is when the Module is configured for MD Unsolicited operation. In this mode, the Module will send Motion Detected information without first receiving a command from the host. All commands sent to ZDM II are in ASCII character format; however, the data sent to and from the Module may be in ASCII or decimal formats. There are three types of command structures accepted by ZDM II; each is described in this section. • • • Read commands Write commands Confirmation commands Read Command Structure Read commands are used to request information from ZDM II, and are sent from the Host. The Module responds with the requested data. • • All Read commands are initiated by single lower-case letters. When a Read command is received, the Module returns the applicable value, as described in the Serial Commands chapter on page 15. See the example in Figure 5. Command Host Response ZDM II Module Figure 5. Read Command Structure PS030504-0917 Serial Interface Mode ZMOTION® Detection Module II Product Specification 13 Write Command Structure Write commands are used to update the configuration of ZDM II, and are sent from the Host. The Module responds with the current value as an acknowledgment. The Host then sends the new data and the Module responds with an ACK. • • All write commands are initiated by single upper-case letters. • When the data value is received, the device returns an ACK. If no data is received after the inactivity time-out period of 2.5 seconds, the device returns a NACK. See the example in Figure 6. After a write command is received, the device returns the current value and expects an appropriate single-byte data value. Command Current Value Host New Value ZDM II Module ACK Figure 6. Write Command Structure Confirmed Command Structure Certain commands require a specific sequence of characters to be sent to prevent accidental initiation. These commands require a 4-character confirmation sequence. After a command requiring confirmation is received, the device returns an ACK. • • PS030504-0917 If the sequence is correct, the device returns an ACK and executes the command. If the sequence is incorrect, or if there is an inactivity delay of more than 2.5 seconds between any characters of the sequence, the device immediately sends a NACK and does not execute the command. See the example in Figure 7. Serial Interface Mode ZMOTION® Detection Module II Product Specification 14 Command ACK Host Sequence (4) ZDM II Module ACK Figure 7. Confirmed Command Structure Note: ACK = 0x06 (ASCII ACK character). NACK = 0x15 (ASCII NACK character). The Module will respond with a NACK on all unrecognized commands, and when commands requiring data (that is, Write, Clear, and Confirmation types) do not receive the required data within the inactivity time-out period. PS030504-0917 Serial Interface Mode ZMOTION® Detection Module II Product Specification 15 Serial Commands The Serial Interface commands are summarized in Table 3, and are each described in this section. Table 3. Summary of Serial Interface Commands Command Name Value [Default] Value [Default] Command Name 0x43–'C' Write MD/RST Pin Configuration 'M', 'R' 0x64–'d' Read MD Activation Time 0–255 [2] 0x44–'D' Write MD Activation Time 0–255 0x65–'e' Read Hyper Sense Setting 'Y', 'N' [N] 0x45–'E' Write Hyper Sense Setting 'Y', 'N' 0x66–'f' Read Frequency Response Setting 'H', 'L' [L] 0x46–'F' Write Frequency Response Setting 'H', 'L' 0x67–'g' Read Hyper Sense Level 0x47–'G' Write Hyper Sense Level 0–3 0x68–'h' Read Motion Detection Suspend Setting 'Y', 'N' [N] 0x48–'H' Write Motion Detection Suspend Setting 'Y', 'N' 0x69–'i' Read Module Software Revision 0–255, 0–255 [6,4] 0x4B–'K' Write Serial Interface Command Mode 'D', 'A' 0x6B–'k' Read Serial Interface Command Mode 'D', 'A' [D] 0x4C–'L' Write Light Gate Threshold 0–255 0x6C–'l' Read Light Gate Threshold 0–255 [100] 0x4F–'O' Write MD Output State 0–255 0x6D–'m’ Read Motion Detected Unsolicited Mode ‘Y’,’N’ [N] 0x50–'P' Write Ping Value 0–255 0x4D–'M’ Write Motion Detected Unsolicited Mode ‘Y’,’N’ 0x52–'R' Write Range Setting 0–7 0x6F–'o' Read MD Current Output Active Time 0–255 [0] 0x53–'S' Write Sensitivity 0–255 0x70–'p' Read Ping Value 0–255 [1] 0x55–'U' Write Dual Directional Mode 'Y', 'N' 0x72–'r' Read Range Setting 0x58–'X' Module Reset '1', '2', '3', '4' 0x73–'s' Read Sensitivity 0–255 [16] 0x59–'Y' Write Sleep Time 0–255 0x75–'u' Read Dual Directional Mode 'Y', 'N' [N] PS030504-0917 0–3 [1] 0–7 [2] Serial Commands ZMOTION® Detection Module II Product Specification 16 Table 3. Summary of Serial Interface Commands (Continued) Command Name Value [Default] Value [Default] Command Name '1', '2', '3', '4' 0x76–'v' Read Single Directional Mode 'A', '+', '–' [A] Read Motion Status ‘Y’, ‘N’, ‘U’ 0x56–'V' Write Single Directional Mode 'A', '+', '–' 0x62–'b’ Read Current Light Gate Input Level 0–255 0x79–'y' Read Sleep Time 0x63–'c' Read MD/RST Pin Configuration 'M', 'R' [R] 0x5A–'Z' Sleep Mode 0x61–'a' PS030504-0917 0–255 [0] Serial Commands ZMOTION® Detection Module II Product Specification 17 Motion Status Command The current status of detected motion can be read and cleared through this command. When motion has been detected the value is set to 'Y' and latched until read with the 'a' command. Once cleared, the status remains at 'N' until motion is again detected. Read Motion Status Command ‘a’ (0x61) Description The Read Motion Status command returns the current status of detected motion. The current status is set to 'N' when read. Return Values 'Y' = Motion detected 'N' = No motion detected 'U' = PIR Sensor has not stabilized after power-up Normal Command Sequence “a” Host [“Y”, “N”, “U”] ZMOTION Module Note: The returned value ('Y', 'N', 'U') is independent of the MD output state or the MD Activation Time (see commands 'o'/'O' and 'd'/'D'). PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 18 Light Gate Level Commands Light Gate Level commands control and monitor the signal associated with the Light Gate (LG) pin, and they are typically relative to the ambient light detected by an externally connected CDS photocell. The range is 0 to 255, with 0 indicating maximum ambient light and, 255 indicating minimum ambient light. See Appendix B. Hardware Interface Mode on page 63 and Appendix C. Serial Interface Mode on page 64 for recommended CDS photocell connections. The 'b' command reads the current signal level present on the pin. The ‘L’ command sets the Light Gate Threshold value. This value is used in conjunction with the signal on the LG pin to internally gate the MD signal such that it does not activate in the presence of ambient light. When the signal on the Light Gate (LG) pin is below this value, the MD output signal remains inactive even when motion has been detected. When the signal on the Light Gate (LG) pin is above this value, the MD signal activates normally when motion has been detected. Table 4 lists the pages in this section that describe their respective commands. Table 4. Shortcuts to Light Gate Level Commands Name Command Page Read Current Light Gate Input Level ‘b’ (0x62) 18 Read Light Gate Threshold ‘l’ (0x6C) 19 Write Light Gate Threshold ‘L’ (0x4C) 19 Read Current Light Gate Input Level Command ‘b’ (0x62) Description The ‘b’ command returns the current signal level present on the Light Gate (LG) pin. Return Values 0–255 (decimal) PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 19 Normal Command Sequence “b” Host [0 – 255] ZMOTION Module Read Light Gate Threshold Command ‘l’ (0x6C) Description The ‘1’ command returns the current Light Gate threshold value set by the Write Light Gate Threshold command. Return Values 0–255 (decimal) Normal Command Sequence “l” Host [0 – 255] ZMOTION Module Write Light Gate Threshold Command ‘L’ (0x4C) Description The ‘L’ command sets the Light Gate Threshold value. Input Values 0–255 (decimal) PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 20 Normal Command Sequence “L” [0–255] Current Value Host [0 – 255] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 21 MD/RST Pin Configuration The MD/RST pin can be configured to function as either the Motion Detect output or the Reset input. This command selects between the two modes. As RST, a Low on this pin causes the Module to perform a full hardware reset. See the Signal Descriptions, Serial Interface Mode section on page 6 for more information. Read MD/RST Pin Configuration Command ‘c’ (0x63) Description This Read command returns the configuration mode of the MD/RST pin as set by the ‘C’ command. Return Values 'M' = MD/RST pin configured as MD 'R' = MD/RST pin configured as RST Normal Command Sequence “c” Host [“M”, “R”] ZMOTION Module Write MD/RST Pin Configuration Command ‘C’ (0x43) Description Configures the MD/RST pin as either Motion Detect output (MD) or Module Reset (RST). PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 22 Input Values 'M' = Configure MD/RST pin as MD 'R' = Configure MD/RST pin as /RST Normal Command Sequence “C” [“M”, “R”] Host [“M”, “R”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 23 MD Activation Time The duration in which the MD pin is held active when motion is detected is configured by this command. See Table 5 for corresponding values. Table 5. MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate upon motion. 1–127 1–127 seconds. 128 Output does not activate upon motion. 129–255 1–128 minutes. Read MD Activation Time Command ‘d’ (0x64) Description Returns the MD pin output activation time value used when motion is detected. Return Values 0–255 (decimal); see Table 5. Normal Command Sequence “d” Host [0 – 255] ZMOTION Module Write MD Activation Time Command ‘D’ (0x44) PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 24 Description Selects the MD pin output activation time value used when motion is detected. Input Values 0–255 (decimal); see Table 5. Normal Command Sequence “D” [0–255] Current Value Host [0 – 255] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 25 Hyper Sense Hyper Sense Mode allows smaller signal changes to be considered valid motion events. This mode significantly increases sensitivity at the cost of more potential false motion detections. The typical application for this mode is in occupancy sensing where it is enabled after valid 'normal' motion has already been detected. Read Hyper Sense Setting Command ‘e’ (0x65) Description This command returns the current status of the Hyper Sense setting. Return Values 'Y' = Hyper Sense Enabled 'N' = Hyper Sense Disabled Normal Command Sequence “e” Host [“Y”, “N”] ZMOTION Module Write Hyper Sense Setting Command ‘E’ (0x45) Description This command enables and disables Hyper Sense Mode. Input Values 'Y' = Hyper Sense Enabled PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 26 'N' = Hyper Sense Disabled Normal Command Sequence “E” [“Y”,“N”] Current Value Host [“Y”, “N”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 27 Hyper Sense Level Setting This command defines the Hyper Sense sensitivity level when the mode is enabled via the 'E' command. The purpose of the Hyper Sense Mode is to increase the detectors sensitivity to more subtle motion events. A value of 0 to 3 is used to set the level. Setting the level to 0 has the same effect as disabling Hyper Sense with the 'E' command (setting it to 'N'). Setting it to any other level can cause the occasional false detection, so this mode should only be used when the occasional false detection is tolerable. Read Hyper Sense Level Setting Command 'g' (0x67) Description This command returns the current Hyper Sense level that will be used when the Hyper Sense Mode is enabled via the 'E' command. 0 is the lowest setting and corresponds to off, while 3 is the most sensitive setting. Return Values 0-3 (decimal) Normal Command Sequence “g” Host PS030504-0917 [0-3] ZMOTION Module Serial Commands ZMOTION® Detection Module II Product Specification 28 Write Hyper Sense Level Setting Command 'G' (0x47) Description This command sets the Hyper Sense level used when it is enabled via the 'E' command. If Hyper Sense is currently on ('E' set to 'Y') when a new level is written, the new level is automatically used. Input Values 0-3 (decimal) Normal Command Sequence “G” [0–3] Current Value Host [0–3] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 29 Frequency Response Setting The Frequency Response setting controls sensitivity to targets producing lower frequencies. When set to ‘H’, sensitivity to targets producing lower frequencies is reduced. This reduced sensitivity also has the effect of reducing the distance over which the ZMOTION® Detection Module II can detect motion. Read Frequency Response Setting Command ‘f’ (0x66) Description This command returns the current frequency response setting of the Module. Return Values L = low and high frequency targets detected H = low frequency target sensitivity reduced Normal Command Sequence “f” Host [“L”, “H”] ZMOTION Module Write Frequency Response Setting Command ‘F’ (0x46) Description This command sets the Frequency Response of the Module. Input Values L = low and high frequency targets detected PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 30 H = low frequency target sensitivity reduced Normal Command Sequence “F” [“L”,“H”] Current Value Host [“L” , “H”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 31 Motion Detection Suspend This command enables and disables motion detection by the ZMOTION® Detection Module II. When set to ‘N’, the Module detects motion. When set to ‘Y’, motion detection is suspended. While Motion Detection Suspend is a method to temporarily disable motion detection, the MD pin may still be manually driven active/inactive via the ‘O’ (Write MD Output State) command. Read Motion Detection Suspend Setting Command ‘h’ (0x68) Description This read command returns the current Motion Detection Suspend setting. Return Values Y = Motion Detection is suspended N = Motion Detection is active Normal Command Sequence “h” Host [“Y”, “N”] ZMOTION Module Write Motion Detection Suspend Setting Command ‘H’ (0x48) Description This write command enables and disables motion detection by ZDM II. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 32 Input Values Y = Motion detection is suspended N = Motion detection is active Normal Command Sequence “H” [“Y”,“N”] Current Value Host [“Y”, “N”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 33 Software Revision The software in the ZMOTION® Detection Module II is made up of two parts: • • ZMOTION® Engine with advanced passive infrared software Application software Both the ZMOTION Engine and the application software have been preloaded into the ZDM II during production. The Software Revision command returns the revisions of this software. The ZMOTION Engine is locked into the device and cannot be changed. This software provides all of the algorithms and processing functions required for motion detection. Refer to the ZMOTION Detection and Control Product Specification (PS0285) for more details about the operation of this software. For all of its motion detection functions, the ZMOTION® Detection Module II application software provides the serial and hardware interface mode functionality of – and uses the services provided by – the advanced passive infrared software engine. This ZDM II application software can be modified for custom applications. See Appendix D. Software Revisions on page 65 for version information details. Software Revision Command ‘i’ (0x69) Description The ‘i’ command returns the revision of the software programmed into the ZMOTION® Detection Module II. The first value returned is the application software revision. The second value returned is the advanced passive infrared software engine revision. See Tables 14 and 15 in Appendix C for a description of these software revisions. Return Values VAL1 = 0–255 (decimal); Application Software Version VAL2 = 0–255 (decimal); ZMOTION Software Engine Version PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 34 Normal Command Sequence “i” Host PS030504-0917 VAL1, VAL2 ZMOTION Module Serial Commands ZMOTION® Detection Module II Product Specification 35 Serial Interface Command Mode The serial interface can operate in either ASCII or ASCII/Decimal modes. The default is ASCII/Decimal where commands are sent as ASCII characters, but numeric values sent and returned are decimal. In ASCII Mode, all commands and numeric values are sent and returned in ASCII, which is useful for demonstration purposes or when using a terminal to control and monitor ZDM II (see Table 6 on page 35). For example, the data for the Sensitivity command is a value from 0 to 255. In ASCII/Decimal Mode, this data would be sent as a single byte (0x00 to 0xFF). In ASCII Mode, this data would be sent as 3 bytes: '0','0','0' to '2','5','5'. All values are sent as 3 characters. Table 6. MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate upon motion. 1–127 1–127 seconds. 128 Output does not activate upon motion. 129–255 1–128 minutes. Read Serial Interface Command Mode Command ‘k’ (0x6B) Description This command returns the current command interface mode. Return Values 'A' = ASCII Mode enabled 'D' = ASCII/Decimal Mode enabled (default) Normal Command Sequence “k” Host PS030504-0917 [“A”, “D”] ZMOTION Module Serial Commands ZMOTION® Detection Module II Product Specification 36 Write Serial Interface Command Mode Command “K” (0x4B) Description This command selects the command interface mode. Input Values 'A' = ASCII Mode enabled 'D' = ASCII/Decimal Mode enabled Normal Command Sequence “K” [“A”,“D”] Current Value Host [“A”, “D”] ZMOTION Module ACK s PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 37 Motion Detected Unsolicited Mode This mode allows the ZMOTION® Detection Module II to send motion detection status to the Host unsolicited (without first sending the 'a' command). The Module will send an 'M' to the Host every time motion is detected. When Unsolicited Mode is not used, the Host must poll the Module using the 'a' command or read the Current Output Active Time using the ‘o’ to determine motion detection status. Read Motion Detected Unsolicited Mode Command ‘m’ (0x6D) Description This read command returns the Motion Detected Unsolicited Mode currently selected. Return Values ‘Y’ = Unsolicited Mode is enabled; the Module sends an 'M' each time motion is detected. ‘N' = Unsolicited Mode is disabled. Normal Command Sequence “m” Host [“Y”, “N”] ZMOTION Module Write Motion Detected Unsolicited Mode Command ‘M’ (0x4D) Description Enable/disable Motion Detected Unsolicited Mode. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 38 Input Values 'Y' = Unsolicited Mode is enabled; the Module sends an 'M' each time motion is detected. 'N' = Unsolicited Mode is disabled. Normal Command Sequence “M” [“Y”,“N”] Current Value Host [“Y”, “N”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 39 MD Current Active Output Time This command directly controls the MD output pin. The ‘O’ command activates the MD output pin for the amount of time specified in the command; it is a manual override of the current state of MD and is independent of motion detection. The valid range is listed in Table 7. The ‘o’ command is used to read the remaining time in which MD will be held active–as initiated by this command or by detected motion. If motion is detected after the ‘O’ command is given, the MD output time restarts at the MD Activation Time set by the ‘D’ command. Table 7. MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate upon motion. 1–127 1–127 seconds. 128 Output does not activate upon motion. 129–255 1–128 minutes. Read MD Current Output Active Time Command ‘o’ (0x6F) Description Returns the remaining time in which the MD output pin will be held active. Return Values 0–255 (decimal); see Table 7. Normal Command Sequence “o” Host PS030504-0917 [0 – 255] ZMOTION Module Serial Commands ZMOTION® Detection Module II Product Specification 40 Note: This command is still valid if the MD pin is configured for RST. The command returns the state of MD pin as if it was configured to indicate motion. Write MD Output State Command ‘O’ (0x4F) Description Activates the MD output pin for the duration of activation time required. Input Values 0–255 (decimal); MD activated for a selected duration of time; see Table 7 on page 39. Normal Command Sequence “O” [0–255] Current Value Host [0 – 255] ZMOTION Module ACK Note: This command does not affect the Read Motion Status command (‘a’) or the Clear Motion Status command (‘A’). If the MD pin is configured as Reset, the value is saved as if the MD pin is configured to indicate motion. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 41 Ping This command provides a simple method to ping ZDM II to ensure it is responding to commands. The ‘P’ command writes a value (typically a 1 or a 2) that can be read back using the ‘p’ command. The ‘P’ command only accepts a single written character whether it is in ASCII Mode or ASCII/Decimal Mode (‘K’ command). For example, sending the command ‘P’, ‘1’ will return '0', '4', '9' in ASCII Mode and 0x31 (49 decimal) in ASCII/ Decimal Mode. Read Ping Value Command ‘p’ (0x70) Description This command returns the last written Ping value. Return Values Last value written using the ‘P’ command. The default value is 1. Normal Command Sequence “p” Host [Return Value] ZMOTION Module Write Ping Value Command ‘P’ (0x50) Description This write command stores a value that can be read by the ‘p’ command. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 42 Input Values 0–255 (decimal); a value is stored and read by the 'p' command. Normal Command Sequence “P” [Current Value] Host [New Value] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 43 Range Setting This command determines the relative range of motion detection. Larger values decrease the range of detection. Range is also dependent on target size, speed and relative temperature. For example, a range control setting that rejects one target of a particular size at a given distance does not guarantee that a larger target will be rejected at the same distance. Read Range Setting Command ‘r’ (0x72) Description This command returns the current range setting. Return Values 0–7 (decimal) Normal Command Sequence “r” Host [0-7] ZMOTION Module Write Range Setting Command ‘R’ (0x52) Description This command sets the Range value. Input Values 0–7 (decimal) PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 44 Normal Command Sequence “R” [0–7] Current Value Host [0–7] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 45 Sensitivity This command controls how sensitive ZDM II is to motion. Larger values provide lower sensitivity and also have the effect of reducing the range. Smaller values provide higher sensitivity. Read Sensitivity Command ‘s’ (0x73) Description This command returns the current motion detection sensitivity setting. Return Values 0–255 (decimal) Normal Command Sequence “s” Host [0 – 255] ZMOTION Module Write Sensitivity Command ‘S’ (0x53) Description This command sets the motion detection sensitivity. Input Values 0–255 (decimal) PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 46 Normal Command Sequence “S” [0–255] Current Value Host [0 – 255] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 47 Directional Detection Directional Detection places ZDM II in a mode that detects both positive and negative motion directions. When Dual Direction Mode is enabled via the 'U' command, motion is detected in either direction and the 'a' and 'M' commands are enhanced to respond with a '+' or '–' to indicate the direction of the motion target. Single Direction Mode is enabled via the 'V' command and is similar to the 'U' command except motion is detected in only one of the '+' or '–' directions as set when the 'V' command is issued. The 'a' and 'M' commands are not modified when in Single Direction Mode. The signal generated by the pyroelectric sensor used to discern direction can vary from device to device, but is consistent for a particular device. Therefore, the '+' and '-' direction settings can mean either left to right or right to left motion, but will always be the same for that particular device. Each device can be calibrated simply by creating motion in one or both directions and observing the results. Other factors such as where the target starts motion will affect the directional detection capabilities of ZDM II. Directional detection works best when the target moves horizontally starting from outside of the range (left or right side) of Module and through the beams of the detection pattern. If the target begins motion while inside the Module detection pattern area, an incorrect direction can be reported. Table 8 lists the pages in this section that describe their respective commands. Table 8. Shortcuts to Directional Detection Commands Name Command Page Read Dual Direction Mode ‘u’ (0x75) 47 Write Dual Direction Mode ‘U’ (0x55) 48 Read Single Direction Mode ‘v’ (0x76) 49 Write Single Direction Mode ‘V’ (0x56) 49 Read Dual Direction Mode Command ‘u’ (0x75) Description The 'u' command returns the current Dual Direction Mode setting. Return Values 'N' = Dual Direction Mode disabled. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 48 'Y' = Dual Direction Mode enabled. Normal Command Sequence “u” Host [“Y”, “N”] ZMOTION Module Write Dual Direction Mode Command ‘U’ (0x55) Description Enable directional detection in both '+' and '–' directions. When Dual Direction Mode is enabled, the 'a' command (Read Motion Status) and the 'M' command (Motion Detected Unsolicited Mode) provide the following directional information: '+' = Motion detected in the '+' direction '–' = Motion detected in the '-' direction Input Values 'N' = Dual Direction Mode disabled 'Y' = Dual Direction Mode enabled Normal Command Sequence “U” [“Y”,“N”] Current Value Host [“Y”, “N”] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 49 Read Single Direction Mode Command ‘v’ (0x76) Description The 'v' command returns the current setting of the Single Direction Mode. Return Values 'A' = Single Direction Mode disabled. '+' = Single Direction Mode set to detect motion only in the ‘+’ direction. '–' = Single Direction Mode set to detect motion only in the ‘–’ direction. Normal Command Sequence “v” Host [“A”, “+”, “-“] ZMOTION Module Write Single Direction Mode Command ‘V’ (0x56) Description The 'V' command selects the direction of motion to be detected. When Single Direction Mode is enabled, motion status is reported only when motion is detected in the direction specified. For example, if the '+' direction is specified, then the 'a' command (Read Motion Status) will return a 'Y' only when motion is detected in the '+' direction. If motion is detected in the '–' direction, the 'a' command would return 'N'. Input Values 'A' = Single Direction Mode disabled. '+' = Detect motion only in the ‘+’ direction. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 50 '–' = Detect motion only in the ‘–’ direction. Normal Command Sequence “V” [“A”,“+”,”-“] Current Value Host [“A”, “+”, “-“] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 51 Module Reset This command forces ZDM II to perform a reset. All configuration and status are returned to default values; see Table 3 on page 15. This is a special command that requires confirmation. After ‘X’ is received, the Module sends an ACK and expects the 4-digit confirmation sequence (1, 2, 3, 4). Once this sequence is received the device sends an 'ACK' and performs a reset. If the confirm sequence is incorrect or the inactivity time-out is exceeded, the device will send a 'NACK' and ignore the reset request. Table 9 lists the pages in this section that describe their respective commands. Table 9. Shortcuts to Module Reset Commands Name Command Page Module Reset ‘X’ (0x58) 51 Read Sleep Time ‘y’ (0x79) 52 Write Sleep Time ‘Y’ (0x79) 52 Module Reset Command ‘X’ (0x58) Description Reset the ZMOTION® Detection Module II. Return Values ACK = Reset command accepted. NACK = Reset command not accepted. PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 52 Normal Command Sequence “X” ACK Host “1”, “2”, “3”, “4” ZMOTION Module ACK Read Sleep Time Command ‘y’ (0x79) Description This command returns the current sleep time setting in seconds. Return Values 0–255 (decimal) Normal Command Sequence “y” Host [0-255] ZMOTION Module Write Sleep Time Command ‘Y’ (0x79) Description This command sets the Sleep duration in seconds. A value of 0 disables the sleep timer, and wake-up is initiated only by a transition on the SLP pin or when a character is received over the serial interface (i.e., the character is received and processed). PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 53 Input Values 0–255 (decimal) Normal Command Sequence “Y” [0–255] Current Value Host [0–255] ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 54 Sleep Mode This command places ZDM II into Sleep Mode. Sleep Mode Enable is a special command that requires confirmation. After the ‘Z’ is received, the Module sends an ACK and expects the 4-digit confirmation sequence (1, 2, 3, 4). After this sequence is received, the device sends an ACK and enters low-power Sleep Mode for the number of seconds set by the 'Y' (Write Sleep Time) command. If the confirm sequence is incorrect or the inactivity time-out is exceeded, the device will send a NACK and ignore the reset request. Sleep Mode is exited automatically when the sleep time expires or by a transition on the SLP pin or by sending a character over the serial interface–this character is ignored. A value of 0 for sleep time disables the sleep timer. Sleep Mode Enable Command ‘Z’ (0x5A) Description The 'Z' command places the ZMOTION® Detection Module II into low-power Sleep Mode. Return Values ACK = Sleep command accepted. NACK = Sleep command not accepted. Normal Command Sequence “Z” ACK Host “1”, “2”, “3”, “4” ZMOTION Module ACK PS030504-0917 Serial Commands ZMOTION® Detection Module II Product Specification 55 Detection Pattern The Fresnel lens directs the infrared energy from the target on to the pyroelectric sensor. Figure 8 shows the coverage area provided by the ZMOTION® Detection Module II. It provides a 95-degree cone with three beams; the inner beams provide greater range than the outer beams. The actual range is affected by ambient temperature and the settings provided to the Module; Sensitivity, Range, Hyper Sense and Frequency Response all contribute to the range performance. 5m Figure 8. Detection Pattern PS030504-0917 Detection Pattern ZMOTION® Detection Module II Product Specification 56 Mechanical Information Figure 9. Mechanical Drawing of the ZMOTION Detection Module II (Right-Angled Pins, ZEPIR0BAS02MODG) PS030504-0917 Mechanical Information ZMOTION® Detection Module II Product Specification 57 Figure 10. Mechanical Drawing of the ZMOTION Detection Module II (Straight Pins, ZEPIR0BBS02MODG) PS030504-0917 Mechanical Information ZMOTION® Detection Module II Product Specification 58 Related Documentation The documents associated with ZDM II are listed in Table 10. Each of these documents can be obtained from the Zilog website by clicking the link associated with its Document Number. Table 10. ZMOTION Detection Module II Reference Design Documentation Document ID Document Title PB0244 ZMOTION Detection Module II Product Brief PS0305 This ZMOTION Detection Module II Product Specification UM0260 ZMOTION Detection Module II Evaluation Kit User Manual RD0026 ZMOTION Detection Module II Reference Design RD0026-SC01 Source code for the ZMOTION Detection Module II Reference Design PS0285 Z8FS021 ZMOTION Detection and Control Product Specification PS0228 Z8 Encore! XP F082A Series Product Specification PS0286 ZMOTION Lens Product Specification PS0336 ZMOTION Pyroelectric Sensor Product Specification WP0017 ZMOTION - A New PIR Motion Detection Architecture WP0018 ZMOTION Detection Lens and Pyro Sensor Configuration Guide WP0018-SC01 Application Library for the ZMOTION Detection Lens and Pyro Sensor Configuration Guide Related Products The table below lists the products related to the ZMOTION® Detection Module II. Product Number Product Description Z8FS040BSB20EG ZMOTION MCU (8-pin SOIC)* Z8FS040BHH20EG ZMOTION MCU (20-pin SOIC)* Z8FS040BHJ20EG ZMOTION MCU (28-pin SOIC)* ZEPIR000103KITG ZMOTION Detection Module II Evaluation Kit ZEPIR000103ZRDG ZMOTION Detection Module II Reference Design Note: *These products are described in Zilog’s ZMOTION Detection and Control Product Specification (PS0285). PS030504-0917 Related Documentation ZMOTION® Detection Module II Product Specification 59 Electrical Characteristics The data in Table 11 were captured during prequalification and precharacterization testing and are subject to change. For additional electrical characteristics, refer to the F082A Series Product Specification (PS0228). Table 11. Electrical Characteristics Symbol Parameter Min Typ Max Units Conditions VPOR Power-on Reset Voltage Threshold 2.20 2.45 2.70 V VDD = VPOR VVBO Voltage Brown-Out Reset Voltage Threshold 2.15 2.40 2.65 V VDD = VPOR TRAMP Time for VDD to transition from VSS to VPOR to ensure valid Reset 0.10 — 100 ms — TPOR Power-On Reset Digital Delay — 1.0 — ms — VDD Supply Voltage 2.8 — 3.6 V — VIL1 Low Level Input Voltage –0.3 — 0.3 * VDD V RXD, /RST, SLP VIH1 High Level Input Voltage 0.7 * VDD — 5.5 V RXD, /RST, SLP VOL1 Low Level Output Voltage — — 0.4 V IOL = 2 mA; VDD = 3.0 V TXD, MD VOL2 Low Level Output Voltage — — 0.6 V IOL = 20 mA; VDD = 3.3 V TXD, MD VOH1 High Level Output Voltage 2.4 — — V IOH = –2 mA; VDD = 3.0 V TXD, MD VOH2 High Level Output Voltage 2.4 — — V IOH = –20 mA; VDD = 3.3 V TXD, MD IDD Active Supply Current in Active Mode — 8.9 mA — — VDD = 3.3 V IDD Sleep Supply Current in Sleep Mode — 450 µA (Typ) — — VDD = 3.3 V TPIR PIR Stabilization Time — 20 — ZIN Analog Pin Input Impedance — 550 — Serial Interface Inactivity Time-out — 2.5 — PS030504-0917 seconds — KΩ DLY, SNS, LG seconds — Electrical Characteristics ZMOTION® Detection Module II Product Specification 60 Absolute Maximum Ratings Stresses greater than those listed in Table 12 can cause permanent damage to the device. These ratings are stress ratings only. Operation of the device at any condition outside those indicated in the operational sections of these specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Table 12. Absolute Maximum Ratings Parameter Min Max Units 0 70 °C Storage Temperature –65 +150 °C Voltage on Any Pin with respect to VSS –0.3 +5.5 V Voltage on VDD Pin with respect to VSS –0.3 +3.6 V Maximum Output Current from Active Output Pin –25 +25 mA Ambient Temperature Under Bias PS030504-0917 Absolute Maximum Ratings ZMOTION® Detection Module II Product Specification 61 Ordering Information You can order ZDM II from Zilog or any of Zilog’s authorized distributors using the following part numbers. For more information about ordering, please consult your local Zilog sales office. The Zilog website lists all regional offices and provides additional information about the ZMOTION® Detection Module II product line. Part Numbers Table 13 lists the part numbers for the ZDM II products and kit, and briefly describes each part. Table 13. Part Numbers Part Number Description ZEPIR0BAS02MODG ZMOTION Detection Module II (right-angle connector) ZEPIR0BBS02MODG ZMOTION Detection Module II (straight connector) ZEPIR000103KITG ZMOTION Detection Module II Evaluation Kit PS030504-0917 Ordering Information ZMOTION® Detection Module II Product Specification Appendix A. Schematic Diagram Figure 11 presents a schematic representation of the ZMOTION® Detection Module II. Figure 11. Schematic Diagram of ZMOTION Detection Module II PS030504-0917 62 ZMOTION® Detection Module II Product Specification 63 Appendix B. Hardware Interface Mode The schematic in Figure 12 shows a typical application example of how to use the Module in Hardware Interface Mode. Hardware Interface Mode is selected because the Sense pin is between 0 V and 1.8 V. In this example, the DLY and SNS signals are connected to trim pots for control of the MD output activation time and the motion detection sensitivity, respectively. These connections can also be replaced with fixed resistor values in an application where adjustments are not necessary. The Sleep feature is not being used so the SLP input is left unconnected as there is an internal pull-up resistor to ensure this pin remains inactive. It is also acceptable to tie this pin to VDD. The MD signal directly drives a solid state relay and is active low. The Light Gate (LG) signal is connected to a CDS photocell in a divider configuration with a potentiometer to adjust the light level. The signal is used by the Module to gate the MD signal such that it does not activate in the presence of daytime ambient light. When the voltage on this pin is lower than 1.0 V, the MD signal will not activate even when motion is detected. Figure 12. Application Example, Hardware Interface Mode PS030504-0917 Part Numbers ZMOTION® Detection Module II Product Specification 64 Appendix C. Serial Interface Mode The schematic in Figure 13 shows a typical application example of how to use the module in Serial Interface Mode. Serial Interface Mode is selected because the TXD pin is pulled High via the 10 KΩ resistor R1. This High state is only required to be guaranteed during power up. In this example, the RXD and TXD signals are connected to the TXD and RXD signals (respectively) of the Z8F1680. Since the MD and SLP signals are still active in the Serial Interface Mode, they are also connected to the host MCU. If they were not connected to the MCU, MD would typically drive the control circuitry similar the Hardware Interface Mode and SLP either left unconnected or tied high. SLP has an internal pull-up to ensure proper operation. The Light Gate (LG) signal is connected to a CDS photocell in a divider configuration with a potentiometer to adjust the light level. The signal is used by the Module to gate the MD signal such that it does not activate in the presence of daytime ambient light. When the signal on this pin is lower than lower than the value programmed into the Light Gate Threshold register, the MD signal will not activate even when motion is detected. U1 +3.3V +3.3V +3.3V C1 1uF PB1/ANA1/AMPINN PB2/ANA2/AMPINP PB3/CLKIN/ANA3 VDD PA0/T0IN/T0OUT/XIN PA1/T0OUT/XOUT VSS PA2/DE0 PA3/CTS0 PA4/RXD0 PB0/ANA0/AMPOUT PC3/COUT/LED PC2/ANA6/LED PC1/ANA5/CINN/LED PC0/ANA4/CINP/LED DBG RESET/PD0 PA7/T1OUT PA6/T1IN/T1OUT PA5/TXD0 20 19 18 17 16 15 14 13 12 11 Z8F1680 RXD/DELAY >>>SERIAL>>> TXD/SENSE (OPTIONAL) /MD/RESET
ZEPIR0BAS02MODG 价格&库存

很抱歉,暂时无法提供与“ZEPIR0BAS02MODG”相匹配的价格&库存,您可以联系我们找货

免费人工找货
ZEPIR0BAS02MODG
  •  国内价格 香港价格
  • 1+62.688661+7.61011
  • 5+62.395725+7.57454
  • 25+62.3943425+7.57438
  • 50+62.3929650+7.57421
  • 150+62.39158150+7.57404

库存:0

ZEPIR0BAS02MODG
  •  国内价格 香港价格
  • 1+66.016471+8.01409
  • 4+65.707974+7.97664
  • 15+65.7065215+7.97646
  • 30+65.7050730+7.97628
  • 75+65.7036275+7.97611

库存:0

ZEPIR0BAS02MODG
  •  国内价格 香港价格
  • 1+62.688661+7.61011
  • 5+62.395725+7.57454
  • 30+62.3943430+7.57438
  • 100+62.39296100+7.57421
  • 300+62.39158300+7.57404

库存:0