Home

ZMOTION Detection Module Product Specification

image

Contents

1. PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Zilog Detection Pattern The Fresnel lens directs the infrared energy from the target on to the pyro electric sensor Figure 8 shows the coverage area provided by the ZMOTION Detection Module It pro vides a 60 degree cone with 4 beams The two inner beams provide greater range than the two outer beams The actual range is affected by ambient temperature and the settings pro vided to the Module Sensitivity Range Hyper Sense and Frequency Response all con tribute to the range performance 3m im 2m 3m 4m 5m 3m im 2m 3m 4m 5m 2m 2m im im Om Om 1m 1m 2m 2m 3m 3m Figure 8 Detection Pattern PS028405 1010 Detection Pattern 45 ZMOTION Detection Module Product Specification Zilog Mechanical Information 5 3540 2 1 6040 2 16 80 0 3 3 95x0 2 Figure 9 Mechanical Drawing of ZMOTION Detection Module PS028405 1010 Mechanical Information ZMOTION Detection Module Product Specification Zilog ZMOTION Detection Module Schematic Figure 10 displays the schematic of ZMOTION Detection Module RXD DLY TXD SNS MD RST LG Vss SLP DBG PAS ANAO ius PA1 ANA3 PA4 ANA1 8 Pin Header PA2 Reset PA3 ANA2 Z8FS040BSB20SG C2 1uF R1 47K Figure 10 Schematic of ZMOTION Detection Module PS028405 1010 ZMOTION Detection Module Schematic
2. PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification zil 22 Hyper Sense Hyper Sense Mode allows smaller signal changes to be considered valid motion events This significantly increases sensitivity at the cost of more potential false motion detec tions The typical application for this mode is in occupancy sensing where it is enabled after valid normal motion has already been detected Command Read Hyper Sense Setting PS028405 1010 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 pe ZMOTION Host ry 4NG Module 4 amp Serial Commands ZMOTION Detection Module Product Specification Z 23 Command Write Hyper Sense Setting E 0x45 Description This command enables and disables Hyper Sense mode Input Values Y Hyper Sense Enabled N Hyper Sense Disabled Normal Command Sequence E y N Val Y N Current Value ZMOTION Y N Module ACK 4 amp PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 24 Frequency Response Setting The Frequency Response setting controls sensitivity to targets producing lower frequen cies When set to H
3. 42 Module Reset This command forces the ZMOTION Detection Module to perform a reset All configu ration and status are returned to default values see Table 3 This is a special command that requires confirmation Once 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 con firm sequence is incorrect or the inactivity timeout is exceeded the device will send a NACK and ignore the reset request Command Module Reset X 0x58 Description Reset the ZMOTION Detection Module Return Values ACK Reset command accepted NACK Reset command not accepted Normal Command Sequence X r gt ACK i e AK ZMOTION ost q 2 a 4 Module EA a ae ACK 8 amp PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 43 Command Read Sleep Time y 0x79 Description This command returns the current sleep time setting in seconds Return Values 0 255 decimal Normal Command Sequence y xc Host ZMOTION 0 255 Module sj Command Write Sleep Time Y 0x79 Description This command sets the Sleep time 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 cha
4. sensitivity to targets producing lower frequencies i is reduced This also has the effect of reducing the distance that the ZMOTION Detection Module can see Command Read Frequency Response Setting PS028405 1010 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 p ZMOTION Host CL Hy Module Serial Commands ZMOTION Detection Module Product Specification Z 25 Command Write Frequency Response Setting PS028405 1010 F 0x46 Description This command sets the Frequency Response of the Module Input Values L Low and High frequency targets detected H Low frequency target sensitivity reduced Normal Command Sequence PF eo L H Current Value Host EL H ZMOTION Module ACK a Serial Commands ZMOTION Detection Module Product Specification Z 26 Motion Detection Suspend This command enables and disables motion detection by the ZMOTION Detection Module 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 Out
5. 0 ee es 9 SLEEP Mode in Hardware Interface Mode 10 Serial Interface Mode 2 cee eee eee 10 SLEEP Mode in Serial Interface Mode 000 eee eee 11 Serial Interface Commands and Description 11 Serial Commands 0a 15 Table of Contents PS028405 1010 ZMOTION Detection Module Product Specification Motion Status 0 0 0 cc ee ee eee eee 15 Light Gate Level i i csse im RR ERRARE MER SOC EARL 16 MD RST Pin Configuration a 222 oer ed E DEDERE ives RERRESSE 18 MD Activation Time III 20 Hyper Sense iosuada a RES RGc ORE EGCRO RR GRO Ra ERG CR ERA GRE 22 Frequency Response Setting 000 eee eee eee eee 24 Motion Detection Suspend 0 0 00 e eee eee 26 Software Revision 0 cece ee eee eens 28 Serial Interface Command Mode 000 eee eee eae 29 Motion Detected Unsolicited Mode 0002 eee 31 MD Current Active Output Time 000 eee ee 33 PING CP raene Se wae APAN 34 Range Setting annann 36 SBSIIVIDV acc ccdnteed cd redke E NLANG BALANGA ea ERRE 37 Directional Detection ra ee eens 38 Module Reset 0 ccc ee ee eee teens 42 Sleep Mode pg cs kaki eh a RR ROC RNC ela EX CRT OR RS E CR 44 Detection Pattern 0 nh 45 Mechanical Information lille 46 ZMOTION Detection Module Schematic 00 0 0000 47 Related Documents 0
6. 5 LG 6 ISLP 7 GND 8 Lens Fresnel Figure 1 ZMOTION Block Diagram Figure 2 displays the ZMOTION Detection Module Figure 2 The ZMOTION Detection Module PS028405 1010 ZEPIROAASO2MODG Block Diagram ZMOTION Detection Module Product Specification Z Pin Description Table 1 lists the pin and signal description for ZMOTION Detection Module Table 1 Pin Description Hardware Serial Interface Pin Signal Name Interface Mode Mode Comments 1 GND Ground Ground 2 VDD Supply Voltage Supply Voltage 3 RXD DLY DLY Delay RXD Receive analog input Data digital input 4 TXD SNS SNS Sensitivity TXD Transmit Mode Select during reset analog input Data digital output 5 MD RST Motion Detect Configurable RST Default is RST Reset in Serial digital output Reset digital input Interface Mode MD Motion Detect digital input 6 LG Light Gate analog Light Gate analog If unused connect to Vag input input 7 SLP DBG SLP Sleep SLP Sleep DBG is used for programming digital input digital input and debug 8 GND Ground Ground Operational Modes The ZMOTION Detection Module operates in following two modes e Hardware Interface Mode Serial Interface Mode Hardware Interface Mode The Hardware Interface Mode is explained below e Basic configuration via hardware interface pins e Allows you to adjust sensiti
7. Light Gate pin This is typically relative to the ambient light detected by an externally connected CDS photocell The range is 0 to 255 with O indicating maximum ambient light and 255 indi cating minimum ambient light See Appendix A Hardware Interface Mode on page 52 and Appendix B Serial Interface Mode on page 53 for recommended CDS Photo Cell 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 acti vate in the presence of ambient light When the signal on the LG Light Gate pin is below this value the MD output signal remains inactive even when motion has been detected When the signal on the LG Light Gate pin is above this value the MD signal activates normally when motion has been detected Command Read Current Light Gate Input Level b 0x62 Description The b command returns the current signal level present on the LG Light Gate pin Return Values 0 255 decimal Normal Command Sequence b M ZMOTION Host 0 255 Module 4 amp PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 17 Command Read Light Gate Threshold I 0x6C Description The I command Returns the current Light Gate threshold value set
8. 0x56 V Write Single Directional A Command Mode D Mode Ox4B K Write Serial Interface D A 0x58 X Module Reset 2 8 Command Mode 4 0x6C T Read Light Gate Threshold 0 255 0x79 y Read Sleep Time 0 255 100 0 Ox4C L Write Light Gate Threshold 0 255 0x59 Y Write Sleep Time 0 255 Ox5A Z Sleep Mode 1 2 3 4 PS028405 1010 Serial Interface Mode ZMOTION Detection Module Product Specification Z 15 Serial Commands Motion Status 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 Command Read Motion Status a 0x61 Description This 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 amp a Host cy N U ZMOTION Module gt Note This value is independent of the MD output state or the MD Activation Time see commands 0 O and d D PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z O Q 16 Light Gate Level These commands control and monitor the signal associated with the LG
9. 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 IXSYS Company All other product or service names are the property of their respective owners PS028405 1010 ZMOTION Detection Module Product Specification Z Revision History PS028405 1010 Each instance in the revision history table reflects a change to this document from its previous revision For more details refer to the corresponding pages or appro priate links given in the table below Date Revision Level Description Page Number October 2010 05 Replaced all instances of ePIR with All advanced passive infrared September 04 Fixed formatting and pagination All 2010 issues September 03 Replaced Zilog logos ePIR with All 2010 ZMOTION and Zdots with Module Updated Figure 11 October 2008 02 Updated Related Documents section All changed 88 pin SOIC to 28 pin SOIC for Z8FS040AHJ20SG Removed references to GP and General Purpose October 2008 01 Original issue All Revision History ZMOTION Detection Module Product Specification Z Table of Contents PS028405 1010 Revision History RG er Rr kr tyr hm ohm n c
10. Detection MCU Family Improved detection stability Added Range Low Power Hyper Sense Advanced API features PS028405 1010 Appendix C ZMOTION Detection Module Product Specification Z 55 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 sup port zilog com This publication is subject to replacement by a later edition To determine whether a later edition exists please visit the Zilog website at http www zilog com PS028405 1010 Customer Support
11. R2 82K 82K 3 3V D DELAY TRIMPOT SENS TRIMPOT MIN DELAY GND MAX SENS GND R3 R4 100K 100K T o cal o S RXDIDELAY 3 3V A TXD SENSE ZMOTION Detection IMDIRESET pod Solid State Module 5 LIGHT GATE Relay N O 3 3 3V 7 3 3V 4 4 Motion 9 N Detect 9 100K LIGHT GATE R6 Output IMD ACTIVE IF gt 1VDC 5 R7 CPC1017N CDS 100K Figure 11 Application Example Hardware Interface Mode PS028405 1010 Appendix A Hardware Interface Mode ZMOTION Detection Module Product Specification zilog Appendix B Serial Interface Mode The schematic in Figure 12 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 10K ohm 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 uncon nected or tied high SLP has an internal pull up to ensure proper operation The LG Light Gate signal is connected to a CDS photo cell in a divider configuration with a potentiometer to adjust the light level The signal is used by the Mod
12. Y N Current Value lt lt AB Host EET ZMOTION CILE Module ACK po Serial Commands ZMOTION Detection Module Product Specification Z 40 Command Read Single Direction Mode 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 UNT Single direction mode set to detect motion only in the direction Normal Command Sequence Host RON ZMOTION A55 Module gS PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification zil 41 Command Write Single Direction Mode PS028405 1010 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 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 Detect motion only in the direction Normal Command Sequence ZMOTION Host Module Serial Commands ZMOTION Detection Module Product Specification
13. ZMOTION Detection Module Product Specification Z 48 Related Documents The related documents for ZMOTION Detection Module include ZMOTION Detection Module Evaluation Kit User Manual UM0223 Z8 Encore XP F082A Series Product Specification PS0228 ZMOTION Detection Module Product Brief PB0223 ZMOTION Detection Module Development Kit Quick Start Guide QS0073 ZMOTION Detection Module Application Walkthrough AN0307 ZMOTION A New PIR Motion Detection Architecture White Paper WP0017 Power Management and Customer Sensing with Zilog s ZMOTION Detection Module AN0301 ZMOTION Detection and Control Family Featuring PIR Technology Product Specification PS0285 Related Products The table below lists the products related with ZMOTION Detection Module Product Number Product Description Z8FS040BSB20EG ZMOTION MCU 8 pin SOIC Z8FS040BHH20EG ZMOTION MCU 20 pin SOIC Z8FS040BHJ20EG ZMOTION MCU 28 pin SOIC ZEPIR000102ZCOG ZMOTION Detection Module Evaluation Kit Note See Zilog s ZMOTION Detection and Control Family Featuring PIR Technology Product PS028405 1010 Specification PS0285 available on Zilog com Related Documents ZMOTION Detection Module Product Specification Z 49 Chapter 2 Electrical Characteristics The data in this chapter is pre qualification and pre characterization and is subject to change For additional electric
14. at a value between 0 V and 1 8 V Hardware Interface Mode is selected MD RST Motion Detect and Reset Pin 5 An active Low output that is activated when motion is detected The time that 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 func tion of this pin is selected by the C serial command The default value for this pin is RST LG Light Gate Pin 6 SLP PS028405 1010 A high impedance analog input The signal 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 typi cally provided via a CDS photo cell or similar circuit e LG gt Light Gate Threshold Register MD is activated when motion is detected e LG lt 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 V qq SLEEP Mode Pin 7 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 the Module exits SLEEP m
15. lighting controls access control display systems and general purpose proximity sensing It is also an easy way to add energy management capability to various applications such as vending machines and appliances and Zilog s Evaluation Kit makes it quick and easy to integrate into your own custom application Key features of the ZMOTION Detection Module include Complete fully functional motion detection including Fresnel lens Comes pre programmed with motion detection software e Small form factor 25 5 mm x 16 7 mm e Upto5mx5 m 60 degree detection pattern e Sensitivity control via simple hardware configuration e Advanced serial UART based configuration and interface e SLEEP mode for low power applications e No temperature compensation required e Input to support CDS photocell input for ambient light detection Minimal components ensure highest possible Mean Time Between Failures MTBF Application code can also be modified to support custom solutions Complete development system available e Operates from 2 7 V to 3 6 V power supply e Simple 8 pin interface e Standard operating temperature 0 C to 70 C Architectural Overview ZMOTION Detection Module Product Specification Zilog ZEPIROAASO2MODG Block Diagram Figure 1 displays the block diagram of the ZMOTION Detection Module 8 Pin Connector GND 1 Pyro ZMOTION MCU VDD 2 Electric RD bi J Z8FS040BSB20EG E Sensor MD RST
16. 0 rh 48 Related Products 0 ce ee rh 48 Electrical Characteristics 00 eee eee 49 Absolute Maximum Ratings 0 00 eee eee 50 Ordering Information 1 4 hah RR A KAKA AKNG 51 Part Numbers Xa cece PETER NES eee tie ees BG 51 Customer Support sca amn PANA BLG RE RR DER rer rad RR EE 55 Table of Contents ZMOTION Detection Module Product Specification Z l N fn Chapter 1 Architectural Overview Features PS028405 1010 Zilog s ZMOTION Detection Module is a complete and fully functional motion detec tion solution ideal for lighting control and other occupancy and proximity detection appli cations It is a board level module that combines the unique features of Zilog s Z8FS040 Motion Detection Microcontroller with a Pyroelectric Sensor and a low profile Fresnel lens The surface mount pyroelectric sensor and Fresnel lens combine to provide the lowest possible profile without sacrificing performance The module is only 25 5 mm x 16 7 mm a little over 1 2 square inch so it can easily fit into many size constrained applications The ZMOTION Detection Module can operate in a simple Hardware mode which pro vides an output signal when motion is detected or in an advanced asynchronous serial mode when greater control over the motion detection performance is required In both modes sensitivity and delay time can be controlled to match the application requirements It is an excellent choice for
17. 1 during power ON 0 Module disabled low power SLEEP mode is active 1 Normal operation Signal Descriptions Serial Interface Mode GND Ground Pin 1 and Pin 8 Both Pin 1 and Pin 8 ground signals are tied together on the ZMOTION Detection Mod ule Single Board Computer PCB and are connected to power ground VDD Supply Voltage Pin 2 This provides power to the Module For power consumption see Electrical Characteristics on page 49 RXD DLY Receive Data Pin 3 This 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 and 1 Stop Bit no flow con trol For a list and description of the commands supported see Table 3 PS028405 1010 Signal Descriptions Serial Interface Mode ZMOTION Detection Module Product Specification Z OQ TXD SNS Transmit Data Pin 4 This output is the asynchronous serial data output from the Module in response to com mands and configuration supplied on the RXD line It operates at 9600 bps No Parity 8 Data Bits 1 Stop Bit For more information on the serial command interface see Serial Interface Commands and Description on page 11 This signal also determines the interface mode of the Module At power ON and when exiting Sleep Mode the signal is sampled and if it is higher than 2 5 V for example pulled to Vpp via resistor then Serial Interface Mode is entered If the signal is
18. 40 ZMOTION MCU for more details on the operation of this software The application software provides the Serial and H W Interface Mode functionality It uses the services provided by the advanced passive infrared software engine for all of the motion detection functions This application software is available for download and can be modified for custom applications Please see the Zilog Web Site to obtain the application software project See Appendix C on page 54 for version information Command S W Revision i 0x69 Description The i command returns the revision of the software programmed into the ZMOTION Detection Module The first value returned is the application software revision The sec ond value returned is the advanced passive infrared software engine revision See Table 8 and Table 9 in Appendix C for a description of software revisions Return Values VALI 0 255 decimal Application S W Version VAL2 0 255 decimal ZMOTION S W Engine Version PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 29 Normal Command Sequence Jlili T ZMOTION VAL1 VAL2 Module FF Ee 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 return
19. MOTION Detection Module For power consumption see Electrical Characteristics on page 49 RXD DLY Delay Pin 3 A high impedance analog input pin that sets the time for the MD Motion Detect pin to remain active once motion has been detected Provide a voltage between 0 and 2 V to PS028405 1010 Signal Descriptions Hardware Interface Mode ZMOTION Detection Module Product Specification Z 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 OV 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 TXD SNS Sensitivity Pin 4 MD PS028405 1010 A high impedance analog input that sets the Module s sensitivity to motion Provide a volt age 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 and if it is greater than 2 5 V for example pulled to Vpp via resistor then Serial Interface Mode is entered and the pin is converted to TXD If the signal
20. Zilog AnEiIXYS Company ZEPIROAASO2MODG ZMOTION Detection Module Product Specification PS028405 1010 ZMGTISN Copyright 2010 by Zilog Inc All rights reserved www zilog com ZMOTION Detection Module Product Specification ziloa N Warning DO NOT USE IN LIFE SUPPORT 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 2010 by 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
21. al characteristics refer to Z8 Encore xP F082A Series Product Specification PS0228 Table 5 Electrical Characteristics Symbol Parameter Min Typ Max Units Conditions VpoR Power on Reset Voltage 2 20 2 45 2 70 V Vpp VpoR Threshold VvBo Voltage Brownout Reset 2 15 2 40 2 65 V Vpp VpoR Voltage Threshold TRAMP Time for Vpp to 0 10 100 ms transition from Vss to Vpog to ensure valid Reset TpoR Power on Reset Digital 1 0 ms Delay Vpp Supply Voltage 2 7 3 6 V Via Low Level Input Voltage 0 3 9 Vpp V RXD RST SLP Vind High Level Input Voltage 0 7 Vpp 5 5 V RXD RST SLP Vout Low Level Output 0 4 V lo 2 mA Vpp 3 0 V Voltage TXD MD VoL2 Low Level Output 0 6 V lo 20 mA Vpp 3 3 V Voltage TXD MD Vout High Level Output 2 4 V lon 2 MA Vpp 3 0 V Voltage TXD MD Vouo High Level Output 2 4 V loy 20 mA Vpp 3 3 V Voltage TXD MD lpp Active Supply Current in Active 8 9 mA Vpp 3 3 V Mode Ipp Sleep Supply Current in Sleep 600 uA Vpp 3 3 V Mode Typ TpiR PIR Stabilization Time 20 seconds PS028405 1010 Electrical Characteristics Table 5 Electrical Characteristics Continued ZMOTION Detection Module Product Specification Z 50 Symbol Parameter Min Typ Max Units Conditions ZIN Analog Pin Input 550 KO DLY SNS LG Impedan
22. an 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 the ZMOTION Detection Module 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 detec tion pattern If the target begins motion while inside the Module detection pattern area an incorrect direction can be reported Command Read Dual Direction Mode u 0x75 Description The u command returns the current Dual Direction Mode setting Return Values N Dual Direction Mode Disabled Y Dual Direction Mode Enabled Normal Command Sequence ZMOTION Host cv NG Module PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Zit 39 Command Write Dual Direction Mode PS028405 1010 U 0x55 Description Enable directional detection in both and directions When Dual Direction mode is enabled the a command Read Motion Status and M command Motion Detected Unsolicited Mode provide the 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 ay Hpe
23. by the Write Light Gate Threshold command Return Values 0 255 decimal Normal Command Sequence p ZMOTION moet 0 255 Module Command Write Light Gate Threshold L 0x4C Description The L command sets the Light Gate Threshold value Input Values 0 255 decimal Normal Command Sequence E 2 Val 0 255 Current Value ZMOTION ost 0 255 Module ot ACK A PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification ZI 18 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 Signal Descriptions Serial Inter face Mode on page 6 for more information Command Read MD RST Pin Configuration PS028405 1010 c 0x63 Description This Read command returns the configuration mode of the MD RST pin as set by the C command Return Values M z MD RST pin configured as MD R Z MD RST pin configured as RST Normal Command Sequence c ZMOTION Host EMP R Module 4 Serial Commands ZMOTION Detection Module Product Specification Z 19 Command Write MD RST Pin Configuration C 0x43 Description Configures the MD RST pin as either MD Motion D
24. ce Serial Interface Inactivity 2 5 seconds Timeout Absolute Maximum Ratings Stresses greater than those listed in Table 6 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 For improved reliability unused inputs should be tied to one of the supply voltages V pp Or Vgs Table 6 Absolute Maximum Ratings Parameter Min Max Units Ambient Temperature Under Bias 0 70 C Storage Temperature 65 150 C Voltage on Any Pin with respect to Vss 0 3 5 5 V Voltage on Vpp Pin with respect to Vss 0 3 3 6 V Maximum Output Current from Active Output Pin 25 25 mA PS028405 1010 Electrical Characteristics ZMOTION Detection Module Product Specification Z 51 Chapter 3 Ordering Information You can order the ZMOTION Detection Module from Zilog or any of our authorized distributors using the following part numbers For more information on ordering please consult your local Zilog sales office The Zilog website www zilog com lists all regional offices and provides additional information about ZMOTION Detection Module prod uct line Part Numbers Table 7 lists the part numbers for ZMOTION Detection Module and a brief description of each pa
25. ce Commands ZMOTION Detection Module Product Specification Z Value Value Command Name Default Command Name Default 0x61 a Read Motion Status Y N Ox6D m Read Motion Detected YN U Unsolicited Mode N 0x62 b Read Current Light Gate Input 0 255 0x4D M Write Motion Detected YN Level Unsolicited Mode 0x63 c Read MD RST Pin M R Ox6F o Read MD Current 0 255 Configuration R Output Active Time 0 Ox43 C Write MD RST Pin M R Ox4F O Write MD Output State 0 255 Configuration 0x64 d Read MD Activation Time 0 255 0x70 p Read Ping Value 0 255 2 1 0x44 D Write MD Activation Time 0 255 0x50 P Write Ping Value 0 255 0x65 e Read Hyper Sense Setting Y N Ox72 r Read Range Setting 0 15 N 0 Ox45 E Write Hyper Sense Setting Y N 0x52 R Write Range Setting 0 15 0x66 f Read Frequency Response H L 0x73 s Read Sensitivity 0 255 Setting L 16 0x46 F Write Frequency Response H L 0x53 S Write Sensitivity 0 255 Setting 0x68 h Read Motion Detection Y NN 0x75 u Read Dual Directional Y N Suspend Setting N Mode N 0x48 H Write Motion Detection Y N 0x55 U Write Dual Directional Y N Suspend Setting Mode 0x69 i Read Module Software 0 255 0x76 v Read Single Directional A Version Mode A Ox6B k Read Serial Interface D A
26. d Normal Command Sequence p T Current Value ZMOTION os New Value Module ACK 4 PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 36 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 tempera ture 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 Command Read Range Setting r 0x72 Description This command returns the current range setting Return Values 0 15 decimal Normal Command Sequence up ZMOTION Host 0s 0 15 Module Command Write Range Setting PS028405 1010 R 0x52 Description This command sets the Range value Input Values 0 15 decimal Normal Command Sequence Bh 0 15 Current Value ZMOTION Host 0 15 Module r ACK Qt Serial Commands ZMOTION Detection Module Product Specification Z 37 Sensitivity This command controls how sensitive the ZMOTION Detection Module is to motion Larger values provide lower sensitivity and also have the effect of reducing the range Smaller values provide higher sensitivity Command Read Sensitivity s 0x73 Description Th
27. ecification Z 31 Motion Detected Unsolicited Mode This mode allows the ZMOTION Detection Module 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 Command Read Motion Detected Unsolicited Mode PS028405 1010 m 0x6D Description This read command returns the Motion Detected Unsolicited Mode currently selected Return Values Y Unsolicited mode is enabled Module sends an M each time motion is detected N Unsolicited mode is disabled Normal Command Sequence m gt ZMOTION Host BY NG Module Serial Commands ZMOTION Detection Module Product Specification Z 32 Command Write Motion Detected Unsolicited Mode M 0x4D Description Enable disable Motion Detected Unsolicited Mode Input Values Y Unsolicited mode is enabled Module sends an M each time motion is detected N Unsolicited mode is disabled Normal Command Sequence M paa NG Y N Current Value lt lt Host m ZMOTION LEG ue Module ACK i M PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification zil 33 MD Current Active Output Time This comma
28. ed in ASCII This is useful for demonstration purposes or when using a terminal to control and monitor the ZMOTION Detection Module For example the data for the Sensitivity command is a value from 0 to 255 In ASCII Dec imal mode this would be sent as a single byte 0x00 to OxFF In ASCII mode this would be sent as 3 bytes 0 0 0 to 2 5 5 All values are sent as 3 characters Command Read Serial Interface Command Mode 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 ee ZMOTION Host BA D Module PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z Command Write Serial Interface Command Mode 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 ZMOTION lt lt Host FA D Module ACK 4 Table 5 MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate on motion 1 127 1 127 seconds 128 Output does not activate on motion 129 255 1 128 minutes PS028405 1010 Serial Commands ZMOTION Detection Module Product Sp
29. etect output or RST Module Reset Input Values M Configure MD RST pin as MD R Configure MD RST pin as RST Normal Command Sequence x OE Li te ZMOTION Host vm Module ACK A PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 20 MD Activation Time The length of time that the MD pin is held active when motion is detected is configured by this command See Table 6 for corresponding values Command Read MD Activation Time d 0x64 Description Returns the MD pin output activation time value used when motion is detected Return Values 0 255 decimal See Table 6 Normal Command Sequence d a ie Host ZMOTION 0 255 Module PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 21 Command Write MD Activation Time D 0x44 Description Selects the MD pin output activation time value used when motion is detected Input Values 0 255 decimal See Table 6 Normal Command Sequence D 0 255 Current Value ZMOTION Host 0 255 Module k ACK fe Table 4 MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate on motion 1 127 1 127 seconds 128 Output does not activate on motion 129 255 1 128 minutes
30. he Read Motion Status command a or the Clear Motion Status command A 2 Ifthe MD pin is configured as Reset the value is saved as if the MD pin is configured to indicate motion Table 6 MD Output Activation Time Values Command Value MD Output Activation Time 0 Output does not activate on motion 1 127 1 127 seconds 128 Output does not activate on motion 129 255 1 128 minutes Ping PS028405 1010 This command provides a simple method to ping the ZMOTION Detection Module to ensure it is responding to commands The P 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 character written whether it is in ASCII mode or ASCII Decimal mode K command For exam ple sending the command P 1 will return 0 4 9 in ASCII mode and 0x31 49 dec imal in ASCII Decimal mode Serial Commands ZMOTION Detection Module Product Specification Z 35 Command Read Ping Value 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 jo Host ZMOTION Return Value Module Command Write Value Ping P 0x50 Description This write command stores a value that can be read by the p command Input Values 0 255 decimal Value is stored and read by p comman
31. ial Interface Mode 10 ZMOTION Detection Module Product Specification Zilog 11 e 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 showing how to use the ZMOTION Detection Module in Serial Interface Mode see Appendix A Hardware Interface Mode on page 52 SLEEP Mode in Serial Interface Mode In applications where 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 woken up 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 where the Module is the client Commands are sent from the Host and the Module responds with the requested informa tion or confirmation The only except
32. icate 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 Vj Once Hardware Interface mode has been established this pin becomes the sensitivity input and accepts a voltage between O V and 1 8 V to set the motion detection sensitivity level 0 V Highest Sensitivity 1 8 V Lowest Sensitivity PS028405 1010 Operation ZMOTION Detection Module Product Specification These sensitivity levels are normally achieved with a simple resistor divider or potentiom eter 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 typically takes 20 seconds but varies depending on environmental conditions The software dynamically monitors the pyro electric 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 time that 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 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 doe
33. ion 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 the ZMOTION Detection Module are in ASCII character format but the data sent to and from the Module may be ASCII or decimal There are three types of commands accepted by the Module e Read Commands e Write Commands e Confirmation Commands PS028405 1010 Serial Interface Mode ZMOTION Detection Module Product Specification i 12 Read Command Structure Read Commands are used to request information from the Module Read Commands are sent from the Host and the ZMOTION Detection Module responds with the requested data e All read commands are initiated by single lower case letters Once received the device returns the applicable value as described in the Serial Com mands on page 15 Command Host ZMOTION Module Response Figure 5 Read Command Structure Write Command structure Write Commands are used to update configuration of the ZMOTION Detection Mod ule The command is sent from the Host and the Module responds with the current value as an acknowledgment Then the Host sends the new data and the Module responds with an ACK e All write commands are initiated by single upper case letters e Once a write command is received the device returns the current value and expects an appropriate single by
34. is between 0 V and 1 8 V Hardware Interface Mode is selected Motion Detect Pin 5 An active Low output that is activated when motion is detected The time that this signal remains active is set by the DLY signal This signal is actively driven High 0 Motion detected 1 No motion detected Signal Descriptions Hardware Interface Mode ZMOTION Detection Module Product Specification zil LG Light Gate Pin 6 A high impedance analog input This pin should be provided with a voltage that is propor tional to the amount of ambient light in the environment typically provided via a CDS photo cell 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 time is completed before MD is deactivated If LG is unused connect to V qq GND to 1 0 V MD is activated when motion is detected 1 0 V to Vga MD does not activate when motion is detected SLP SLEEP Mode Pin 7 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
35. is command returns the current motion detection sensitivity setting Return Values 0 255 decimal Normal Command Sequence g ZMOTION Host 0 255 Module E Command Write Sensitivity S 0x53 Description This command sets the motion detection sensitivity Input Values 0 255 decimal Normal Command Sequence e BEA 0 255 Current Value ZMOTION 0 255 Module ACK da PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification 38 Directional Detection Directional Detection places the ZMOTION Detection Module 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 pyro electric 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 c
36. mm ee iii Table of Contents 4 2 5222 Re NAA NAAN eee ANAN eee we NA iv Architectural Overview 24 eere 1 Fealut S isole eR RES LAKAD CoS BAKA eee ee nha ER eee SR 1 ZEPIROAASO2MODG Block Diagram a 2 Pin Description 3 oca saa hess KARA RODEO o806 eaten 3 Operational Modes asse RR RER bas eGeanaeudie REN RR CREARE RR 3 Setting Operation Modes xke adoret EROR ee NOE Eus Ye dee eos 4 Signal Descriptions Hardware Interface Mode 4 GND Ground Pin 1 and Pin 8 0 0 ccc ees 4 VDD Supply Voltage Pin 2 52s sasuke ER hU REEKREEXT RR Yea 4 RXD DLY Dsla3y PING 23 tiger Bai oud tees ac eot bees daw 4 TXD SNS Sensitivity Pin 4 0 2 0c eee eee 5 MD Motion Detect Pin5 0 a 5 LG Baht Gate PING s aues sana KB ANAK AGANG ae nd oe hss epee 6 ISLP SLEEP Mode PN 7 ssi cide note aa RARO n 6 Signal Descriptions Serial Interface Mode 000e eee 6 GND Ground Pin 1 and Pin 8 ces 6 VDD Supply Voltage Pin 2 asus set Rr BALER ELA KAG 6 RXD DLY Receive Data PINS 0 a 6 TXD SNS Transmit Data Pin4 leen 7 MD RST Motion Detect and Reset Pin5 7 LG Light Gate Pin Gila steers dotewaseevadte stavesaievews 7 ISLP SLEEP Mode PIN F paa aaka gata aoisi KGG i a poo NG 7 Voltage Brownout Protection and Power On Reset 8 eru mL EET 9 Hardware Interface Mode
37. nd 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 6 The o command is used to read the remaining time that 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 Command Read MD Current Output Active Time o 0x6F Description Returns the remaining time that the MD output pin will be held active Return Values 0 255 decimal See Table 6 Normal Command Sequence o a Host ZMOTION 0 255 Module gt 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 PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification Z 34 Command Write MD Output State O 0x4F Description Activates the MD output pin for the amount of activation time desired Input Values 0 255 decimal MD activated for the selected amount of time See Table 6 Normal Command Sequence Q mm 0 255 Current Value Host 0 255 ACK 4 ZMOTION Module Notes 1 This command does not affect t
38. ode and begins detecting motion This signal must be held at logic 1 during power ON Signal Descriptions Serial Interface Mode ZMOTION Detection Module Product Specification Zilog 0 Module disabled low power SLEEP mode is active 1 Normal operation Voltage Brownout Protection and Power On Reset Internal MCU Reset MD PS028405 1010 The ZMOTION Detection Module contains an internal Reset Controller with a Power on Reset circuit and Brown out 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 pyro electric 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 displays Power on Reset operation See Related Documents on page 48 for the POR threshold voltage Vpop lt POR Delay ITE MCU Begins Operating PIR Sensor Stabilization 3 Time Variable Figure 3 Power On Reset Operation The ZMOTION Detection Module provides low Voltage Brownout VBO protection to ensure proper operation when the sup
39. ply voltage drops below an unsafe level below the VBO threshold voltage 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 Voltage Brownout Protection and Power On Reset ZMOTION Detection Module Product Specification Zilog 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 displays the Voltage Brownout operation See Related Documents on page 48 for the VBO threshold voltage Vypo A VCC EPI uerum a ME I Voltage i Brown Out Z Internal Normal POR Delay MCU MCU Tros BiA Reset Execution Stabilization Time MD PIR MD Inactive Stable Figure 4 Voltage Brownout Reset Operation 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 pyro electric sensor is monitored and the device waits for it to become ready Once it is stable 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 commun
40. put State command Command Read Motion Detection Suspend Setting PS028405 1010 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 ZMOTION Host Y N Module gt Serial Commands ZMOTION Detection Module Product Specification Z 27 Command Write Motion Detection Suspend Setting PS028405 1010 H 0x48 Description This write command enables and disables motion detection by the ZMOTION Detection Module Input Values Y z Motion Detection is suspended N Motion Detection is active Normal Command Sequence H Y N C t Val pa Current Value 7MOTION Pe DONT Module ACK OO Serial Commands ZMOTION Detection Module Product Specification zilog 28 Software Revision The software in the ZMOTION Detection Module is made up of two parts e Advanced passive infrared software engine e Application software The S W Revision command returns the revisions of this software The advanced passive infrared software 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 product specification for the ZSFS0
41. racter is received over the serial interface The character is received and processed Input Values 0 255 decimal Normal Command Sequence ey ec 0 255 Current Value ZMOTION Host 0 255 Module ACK aQ PS028405 1010 Serial Commands ZMOTION Detection Module Product Specification zil 44 Sleep Mode This command places ZMOTION Detection Module into Sleep Mode Sleep Mode Enable is a special command that requires confirmation Once the Z 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 enters low power Sleep Mode for the number of seconds set by the Y Write Sleep Time command If the con firm sequence is incorrect or the inactivity timeout 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 Command Sleep Mode Enable Z 0x5A Description The Z command places the ZMOTION Detection Module into low power Sleep mode Return Values ACK Sleep command accepted NACK Sleep command not accepted Normal Command Sequence ug 5 Pa ZMOTION Host 4r 2 agp 4 Module ACK 4
42. rt Table 7 Part Numbers Part Number Description ZEPIROAASO2MODG ZMOTION Detection Module ZEPIR000102ZCOG ZMOTION Detection Module Evaluation Kit PS028405 1010 Ordering Information ZMOTION Detection Module Product Specification Zilog Appendix A Hardware Interface Mode The schematic in Figure 11 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 OV and 1 8V 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 connec tions 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 accept able to tie this pin to Vdd The MD signal directly drives a solid state relay and is active low The LG Light Gate signal is connected to a CDS photo cell in a divider configura tion 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 3 3V 3 3V R1
43. s not activate even in the presence of motion For an example showing how to use the ZMOTION Detection Module in Hardware Interface Mode see Appendix A Hardware Interface Mode on page 52 SLEEP Mode in Hardware Interface Mode In applications where 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 woken up by deactivating the signal driving the signal high Serial Interface Mode PS028405 1010 The Serial Interface mode is implemented as a superset of the features available in Hard ware 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 imple ment 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 V Typically this signal is tied to V qq through a pull up resistor Once 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 e 9600 Baud e No Parity e 8 Data Bits e 1 Stop Bit Ser
44. te data value e When the data value is received the device returns an ACK If no data is received after the inactivity timeout of 2 5 seconds the device returns a NACK Command Current Value M Host ZMOTION Module New Value ACK D Figure 6 Write Command Structure PS028405 1010 Serial Interface Mode y Notes 1 PS028405 1010 Confirmed Command Structure ZMOTION Detection Module Product Specification 13 Certain commands require a specific sequence of characters to be sent in order to help pre vent accidental initiation These commands require a 4 character confirmation sequence Once a command requiring confirmation is received the device returns an ACK e If the sequence is correct the device returns an ACK and executes the command e Ifthe sequence is incorrect or there is an inactivity delay of more than 2 5 seconds be tween any characters of the sequence the device immediately sends a NACK and does not execute the command Command ACK St Host Sequence 4 ACK EE ZMOTION Module Figure 7 Confirmed Command Structure ACK 0x06 ASCII ACK character 2 NACK 0x15 ASCII NACK character The Module will respond with a NACK on all unrecognized commands and when command requiring data that is Write Clear and Confirmation types does not receive the required data within the inactivity timeout period Serial Interface Mode Table 3 Summary of Serial Interfa
45. ule 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 PB1 ANA1 AMPINN PBO ANAO AMPOUT x FERNY TES PB2 ANA2 AMPINP PC3 COUT LED PB3 CLKIN ANA3 PC2 ANAG LED el VDD PC1 ANAS CINN LED PAO TOIN TOOUT XIN PCO ANA4 CINP LED Pa PA1 TOOUT XOUT VSS RESET PDO ap PA2 DEO PA7 T1OUT TDI PA3 CTSO PAG TAIN TIOUT HL PA4IRXDO PAS TXDO a Z B 5 5 Z8F1680 1 RXD DELAY 3 TXD SENSE gt gt gt SERIAL gt gt gt 5 IMD RESET OPTIONAL 7 LIGHT GATE lt lt lt SERIAL lt lt lt ISLEEP DBG OPTIONAL a as o 43 3V R2 100K LIGHT LEVEL R3 CDS 100K PS028405 1010 Figure 12 Application Example Serial Interface Mode ZMOTION Detection Module Product Specification Z 54 Appendix C Table 8 ZMOTION Detection Module S W Revision Application S W Returned Value T command S W Revision Changes Updates 1 1 0 Initial Production Release 2 2 0 Support for additional features in ZMOTION Detection Module Added ASCII serial mode RAM R W and sleep timer Improved sleep mode current Table 9 ZMOTION S W Engine Revision Returned Value i command S W Revision Changes Updates 1 1 0 Initial Production Release 2 2 0 Release of ZMOTION
46. vity and delay Optional ambient light input e SLEEP mode to reduce power consumption PS028405 1010 Pin Description ZMOTION Detection Module Product Specification Serial Interface Mode The Serial Interface Mode is explained below e Advanced configuration and status via serial interface e MD LG and SLP remain functional The serial interface runs at 9600 bps no parity 8 data bits and 1 stop bit no flow control Setting Operation Mode Serial Interface Mode Selection To select Serial Interface Mode provide a pull up resistor from TXD SNS to V 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 dur ing power ON or when exiting SLEEP Mode For examples of using the ZMOTION Detection Module in Hardware and Serial Inter face Modes see Appendix A Hardware Interface Mode on page 52 and Appendix B Serial Interface Mode on page 53 Signal Descriptions Hardware Interface Mode GND Ground Pin 1 and Pin 8 Both Pin 1 and Pin 8 ground signals are tied together on the ZMOTION Detection Mod ule PCB and are connected to power ground VDD Supply Voltage Pin 2 Provides power to the Z

Download Pdf Manuals

image

Related Search

Related Contents

Avaya Configuring Traffic Filters and Protocol Prioritization User's Manual  PCR clean-up  Cargadores de Baterías Industriales TOTALIFT – T Series MANUAL    d`info et le mode d`emploi  MARCONI 6970 Ops  

Copyright © All rights reserved.
Failed to retrieve file