ZMOT0BSB0A0BG Zilog, ZMOT0BSB0A0BG Datasheet

Microcontrollers (MCU) ZMB N. SDA02-54-P Py Fr AA 0.9 GI T1 Lens

ZMOT0BSB0A0BG

Manufacturer Part Number
ZMOT0BSB0A0BG
Description
Microcontrollers (MCU) ZMB N. SDA02-54-P Py Fr AA 0.9 GI T1 Lens
Manufacturer
Zilog
Datasheet

Specifications of ZMOT0BSB0A0BG

Processor Series
ZMOTION
Core
Z8FS040
Number Of Timers
2
Operating Supply Voltage
2.7 V to 3.6 V
Maximum Operating Temperature
+ 105 C
Mounting Style
SMD/SMT
Program Memory Type
Flash
Program Memory Size
4 KB
Package / Case
SOIC-8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ZMOT0BSB0A0BG
Manufacturer:
Zilog
Quantity:
3
Copyright ©2011 Zilog, Inc. All rights reserved.
ZMOTION
Control Family Featuring
PIR Technology
Z8FS040
Product Specification
PS028510-0111
www.zilog.com
Detection and

Related parts for ZMOT0BSB0A0BG

ZMOT0BSB0A0BG Summary of contents

Page 1

... Z8FS040 ™ ZMOTION Control Family Featuring PIR Technology Product Specification PS028510-0111 Copyright ©2011 Zilog, Inc. All rights reserved. www.zilog.com Detection and ...

Page 2

... Document Disclaimer ©2011 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 ...

Page 3

... Appendix D. Lens Selection 09 Updated to include two new Nicera lenses. 08 Updated to correct part number on title page. 07 Updated to comply with accepted Zilog style. 06 Updated to new Zilog/IXYS logo. 05 Replaced all instances of ePIR with advanced passive infrared. Fixed formatting and pagination issues. Replaced Zilog logos, ePIR with ZMOTION, and Zdots with Module ...

Page 4

... Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 RAM Memory Map (Register Files Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Peripheral Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Pin Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Hardware Connection Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Zilog’s PIR Technology and API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Standard API Register Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Advanced API Register Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Ordering Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Appendix A. Application Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 8-Pin Z8FS040xSB20EG MCU ...

Page 5

List of Figures Figure 1. Z8FS040 MCU Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 6

List of Tables Table 1. Z8FS040 MCU Package Availability ...

Page 7

Table 34. PIR Sensor Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 8

... Z8 Encore! XP vide the functions necessary for PIR motion detection applications. These motion detec- tion algorithms comprise Zilog’s PIR technology and run in the background while control and status of the PIR Engine is accessed through a software API result, the designer can create application-specific software while taking advantage of Zilog’s ZMOTION Motion Detection Technology ...

Page 9

... V to 3.6 V operating voltage with extended operating temperature range –40°C to +105°C • Zilog’s PIR technology controlled and monitored through software API registers • Select from an assortment of lenses and pyroelectric sensors to best fit your application • API settings provided for each lens and pyroelectric sensor combination • ...

Page 10

Z8FS040 MCU Block Diagram Figure 1 displays a block diagram of the Z8FS040 MCU. Register File RAM Flash (256B) Controller + API UART & BRG Timer 0 IrDA Figure 1. Z8FS040 MCU Block Diagram PS028510-0111 ZMOTION™ Detection and Control Family ...

Page 11

MCU Part Selection Guide and Reference The ZMOTION MCU is packaged in three forms to suit differing application require- ments, as follows: The ZMOTION Dedicated Silicon and Optimized Software Solution. pose MCU with motion detection software and API stack. The ...

Page 12

... Pin Configurations Zilog’s Z8FS040 products are available in 8-pin SOIC and 20- and 28-pin SSOP package configurations, as shown in Figures 2 through 4. This chapter describes the signals and available pin configurations for each of these package types. For a description of the sig- nals, see Tables 6 through 8 ...

Page 13

PB4/ANA7 PB5/VREF PA0/T0IN/T0OUT/XIN PA1/T0OUT/XOUT PA3/CTS0 PA4/RXD0 PA5/TXD0 Figure 4. 28-Pin SSOP Package Diagram – Z8FS040xHJ20EG Signal Descriptions At reset, all port pins are set to the GPIO input state on the 8-pin SOIC package except for /RESET/DE0/T1OUT, which is configured ...

Page 14

Table 3. Z8FS040 MCU Signal Descriptions Signal Mnemonic I/O Description General-Purpose I/O Ports A–D PA[7:0] I/O Port A. These pins are used for general-purpose I/O. PB[5:0] I/O Port B. These pins are used for general-purpose I/O. PC[7:0] I/O Port C. ...

Page 15

... The Z8FS040 MCU is based on Zilog’s Z8F082A device, which contains a total Flash memory. Zilog’s PIR technology is located in the 4 KB address range , a code space that is locked and cannot be erased by the user, by the Zilog Debug 1FFFh Interface (ZDI) mass or page erase commands. The remaining this Flash memory space, in the address range A memory map of the Z8SF040 MCU is illustrated in Figure 5 ...

Page 16

... Interrupt Vectors and Option Bits 0000h to and from to 0EFh 190h 3FFh to and from 000h 07Fh , and are also available to the application. The area from Product Specification ) is used by Zilog’s PIR technology. to (256 bytes) is 110h 18Fh to 400h EFFh Memory Map 9 ...

Page 17

... Standard PIR API Advanced PIR API Reserved for PIR Engine User Application RAM (128 bytes through these memory locations that configuration and status are to . See the Zilog’s PIR Technology and API 0F0h 0FFh Product Specification EFFh 400h 18Fh 110h 0FFh ...

Page 18

... Z8 Encore! XP Peripheral Availability Table 4 shows how the Z8FS040 MCU peripherals are used by Zilog’s PIR technology and how these peripherals differ from their counterparts on the base Z8F082A device. The peripherals used by the PIR technology should not be used by the application unless the engine is disabled through the PIR Engine Enable Register ...

Page 19

... Analog to Digital Signal Conversion Zilog’s PIR technology requires exclusive access to the ADC peripheral to detect motion. However, ADC conversions can be requested by the application via the API (PIR Status/ Control Register 3 necessary for the user application to utilize the ADC peripheral directly, the PIR engine must first be disabled via the PIR Engine Enable Register in the API ...

Page 20

ADC Channel PB2 (ANA2) is reserved as the analog ADC input from the pyroelectric 28-Pin Device. sensor. Therefore ANA2 is not available for user applications. Also, ANA3 is not avail- able since it is tied directly to PB5/ VREF. PB5 ...

Page 21

... Device 20-Pin Device All external Timer 1 functions are available 28-Pin Device All external Timer 1 functions are available Watchdog Timer No changes or limitations are placed on WDT functions by Zilog’s PIR technology; the WDT is available to the user application. Comparator 8-Pin Device 20-Pin Device All external Comparator functions are ...

Page 22

... Flash Memory The control registers associated with Flash memory are all available to the application. Zilog’s PIR technology uses the value programmed into the Flash Frequency registers (FFREQ) to determine its required sample timing. The Flash Frequency High (FFREQH) and Flash Frequency Low Byte (FFREQL) registers must be programmed prior to initial- izing the PIR engine ...

Page 23

... Although most pins on the ZMOTION MCU Series are available to the application, some pins are dedicated to supporting the PIR functions. The following section describes which pins are reserved and which are available to the application. The pins used by Zilog’s PIR technology are automatically configured when the engine is initialized. ...

Page 24

Device Pin 1 (ANA2) is reserved as the analog ADC input from the pyroelectric sensor. In single pyro mode, Pin 4 (ANA3) must be externally tied to VREF on Pin 3 (PB5/ VREF). PB5 will be configured as VREF ...

Page 25

... Pyroelectric Sensor (PIR Sensor). to the ANA2 input of the ADC. The ADC is configured for differential, buffered mode by Zilog’s PIR technology. The sensor signal should be connected directly to the ADC input with no additional signal conditioning circuitry unless specified by the pyroelectric sensor manufacturer. ...

Page 26

... ZMOTION™ Detection and Control Family These registers include all of the status and control functions These registers provide additional control over the PIR engine This macro is executed to initialize the PIR engine after reset nor- RP RP, #%E0 %1FFD RP Product Specification 19 Zilog’s PIR Technology and API ...

Page 27

CPU Cycles: 261 Peripherals Initialized: ADC and GPIO depending on API selected options. ADC IRQ set for medium priority. EPIR_ADC_ISR Macro. tion handles the ADC interrupt and executes this macro. All motion detection processing is performed by this macro. EPIR_ADC_ISR ...

Page 28

Table 5. PIR Engine Standard API Registers (Continued) PIR ADC Result Value (ePIR_ADC_Result) PIR Version (ePIR_Version) Table 6. PIR Engine Enable Register (ePIR_Enable) Bit 7 6 Field Control Address PIR Enable/Disable Pattern (Bits 0-7) PIR Enable/Disable Register; controlled by the ...

Page 29

Table 8. PIR Sensitivity Register (ePIR_Sensitivity) Bit 7 6 Field U U Default Control Address Sensitivity (Bits 0-7) PIR Sensitivity Setting; controlled by the application. • The PIR Sensitivity Register is used to adjust the sensitivity of the PIR engine ...

Page 30

Table 9. PIR Status/Control Register 0 (ePIR_SC0) Bit 7 6 Extended Detection Field R/W Control Address Extended Detection Level (Bits 7-6) Sets the sensitivity level of the extended detector; controlled by the application. • These 2 bits enhance the motion ...

Page 31

MD Suspend (Bit 4) Motion Detection Suspend; controlled by the application. • Temporarily suspends the PIR engine from running. This puts very low processing overhead state and can be used when the application requires significant CPU processing ...

Page 32

PIR Stable (Bit 0) Passive Infrared (PIR) sensor signal stabilized bit; controlled by the PIR engine. After periods of non-use the PIR sensor will take some time to stabilize before it can be used reliably. The amount of time is ...

Page 33

Frequency Response (Bits 6-3) Frequency Response of PIR engine; controlled by Application Range • This value determines the frequency response of the motion detection system. Higher values allow lower frequencies to be accep ted by the PIR ...

Page 34

Reserved (Bit 1) Dual Pyro Mode (Bit 0) Dual Pyroelectric Sensor Signaling Mode; controlled by the application. • This bit determines if the PIR engine should accept signals from one or two pyroelectric sensors. • When configured for single pyro ...

Page 35

Table 13. PIR Status/Control Register 3 (ePIR_SC3 Pin SSOP Bit 7 6 Reserved ANA6 Scan Request Field 0 R/W Reserved in Single Pyro Mode Control Address Table 14. PIR Status/Control Register 3 (ePIR_SC3 Pin SOIC Bit ...

Page 36

ANAx Scan Request Analog Channel 0, 1, 3-7 Scan Requested Bits Set by the application; cleared by the PIR engine. These bits allow the user application to request the Engine to perform an A/D conversion on the non- reserved analog ...

Page 37

Table 15. PIR ADC Result Value (ePIR_ADC_Result) Bit Field Control Address PIR ADC Result Value (Bits 0-15) ADC Scan Request Result Value Controlled by PIR engine The PIR ADC Result Value contains the result of the ...

Page 38

Advanced API Register Set The registers listed in Table 17 are available for advanced configuration of the PIR engine. They include customizations for lens and pyroelectric sensor configurations. These regis- ters, each described in this section, are not initialized by ...

Page 39

Table 18. PIR Advanced Status/Control Register 0 (ePIR_ASC0) Bit 7 6 Reserved Reserved Reserved Field 0 0 Control Address Reserved (Bits 7-5) Buffer Refresh (Bit 4) Uses a fast-fill algorithm to quickly refill the motion detection buffers; controlled by the ...

Page 40

MD Origin (Bit 2) Origin of last motion detection event; controlled by the PIR engine. This bit indicates how the PIR engine detected the last Motion Detected Event. When the engine sets the Motion Detected bit in PIRStatus0, it also ...

Page 41

Window Size (Bits 4-3) Controlled by the application. This register determines the size of the control limit window. A larger window size produces more stable control limits at the cost of additional CPU usage smaller window size is ...

Page 42

Table 21. PIR Sample Size Register (ePIR_Sample_Size) Bit 7 6 Field Control Address PIR Sample Size (Bits 0-7) Controlled by the application. This register controls the amount of averaging that the engine performs on the incoming PIR signal ADC samples. ...

Page 43

Table 23. PIR Debounce Batch Size Register (ePIR_Debounce_Batch) Bit 7 6 Field Control Address Debounce Batch Size (Bits 7-0) Controlled by the application. This register determines the number of consecutive out-of-window samples required to consider the sequence a valid debounce ...

Page 44

Table 25. PIR Noise Sensitivity Level (ePIR_Noise_Sense) Bit 7 6 Reserved Field 0 Control Address Reserved (Bit 7) Noise Sensitivity (Bits 6-0) Controlled by the application. This register determines how sensitive the noise detection part of the engine is to ...

Page 45

Bit Field Control Address PIR Signal (Bits 0-15) Controlled by PIR engine These registers contain the last PIR signal obtained by the engine. Each time the engine generates a new PIR signal sample it will place ...

Page 46

Packaging Figure 7 displays the 8-pin small-outline integrated circuit package (SOIC). Figure 7. 8-Pin Small Outline Integrated Circuit Package (SOIC) PS028510-0111 ZMOTION™ Detection and Control Family Product Specification 39 Packaging ...

Page 47

Figure 8 displays the 20-pin small-shrink outline package (SSOP). Figure 8. 20-Pin Small Shrink Outline Package (SSOP) PS028510-0111 ZMOTION™ Detection and Control Family Product Specification 40 Packaging ...

Page 48

... Construct your part number based on the specific combination of MCU, lenses and PIR sensors you wish to order. Each character in the Zilog part numbering schema corresponds to a designated part attri- bute. To aid in determining the appropriate part(s) to order, Table 29 breaks down a typical ...

Page 49

ZMOT Table 31. Positions 5–8: MCU and MCU Package Selector* MCU Part Number Description Z8FS040xSB20EG Occupancy, 8 pin SOIC Z8FS040xHH20EG Occupancy, 20 pin SSOP Z8FS040xHJ20EG Occupancy, 28 pin SSOP Note: *To purchase the ZMOTION MCU alone, select the appropriate ZMOTION ...

Page 50

... ZMOTION products. Ordering Example The figure helps determine the part for an example 8-pin SOIC ZMOTION product bundled with an 88° Fresnel Technologies Animal Alley Array Lens and a Nicera Premium Dual Element PIR Sensor; the resulting ZMOTION product number is ZMOT0BSB0A0BG. Pos #: ...

Page 51

... Related Documents Additional information can be found in the following documents, available from the Zilog website at www.zilog.com. Document Number Description AN0301 Power Management and Customer Sensing with Zilog’s ZMOTION Detection Module Application Note AN0307 ZMOTION Detection Module Application Walkthrough Application Note AN0309 ...

Page 52

Appendix A. Application Schematics The ZMOTION Detection and Control MCU is available in 8-pin, 20-pin and 28-pin parts and configurable with dual and quad pyro sensor and lens combinations. 8-Pin Z8FS040xSB20EG MCU Figure 10 shows an example circuit for part ...

Page 53

VDD (3 .3V) 10K Debug Header 1 VCC 2 RESET 3 GND 4 DBG 5 GND 6 To Second Pyro Electric NC Sensor in Dual Pyro Mode Figure 10. Required Circuit Connections for the Z8FS040xSB20EG(8-Pin) Motion Detection ...

Page 54

Reset signals as required for the Debug interface. All other signals may be used as required. The power supply design is left to the application requirements (3.3V ) Pyro El ectric Sensor 1uF ...

Page 55

Pyro Electr ic Sensor 1 VDD SIG 1uF 47 K GND Pyro Electr ic Sensor 2 VDD SIG 1uF 47K GND Figure 12. Required Circuit Connections for the Z8FS040xHH20EG (20-Pin) ...

Page 56

Reset signals as required for the Debug interface. All other signals may be used as required. The power supply design is left to the application requirements. VDD (3 .3V) Pyro Electric Sensor VD D SIG ...

Page 57

Dual Pyroelectric Sensors In Dual Pyro mode, the second pyroelectric sensor is connected to ANA3. The signal from VREF to ANA3 is not required. All other connections remain the same as Single Pyro Mode. See Figure 14 ...

Page 58

Appendix B. PIR Engine Initialization and Control The application software must execute an initialization procedure to enable the PIR engine. Once the PIR engine is enabled, it runs in the background from the ADC interrupt. Every ADC conversion generates an ...

Page 59

Initialize any application-specific I/O and peripherals. 6. Enable interrupts. 7. Ensure that the PIR Sensor Stable bit (ePIR_SC0:0) is set. 8. Continue with the application. The flow diagram in Figure 15 shows the general software operation for Normal Scan ...

Page 60

Initialize Oscillator & WDT Set up GPIO’s for application Initialize Flash Frequency Register Enable ADC in PWRCTL0 Initialize API Registers Recommended settings supplied in lens/pyro c onfiguration file Set eP IR_Enable Register to ePIR_ENABLE_PATTERN e PIR Initiali za tio ...

Page 61

The flow diagram in Figure 16 shows the general software operation for Low Scan Rate mode.   Initialize Oscillator & WDT Set up GPIO’s for application Initializ e Flash Frequency Register Enable ADC in PWRCTL0 Initialize API Registers Recommended settings ...

Page 62

... PIR project. ZDS II Project Settings Zilog Developer Studio (ZDS II) is used for software development. Since the compiled application code has no vision into the operation of the PIR engine important to ensure that the application working RAM area is not effected by engine operations. To ...

Page 63

Address range – interrupt If more than 1 level of interrupt nesting is required by the application, the – must be increased by Address range – • EData: 100h–10Fh Defined in ZDS II Project Settings under Linker Address Spaces – ...

Page 64

Appendix D. Lens Selection Guide Use the data in Table 35 to help select the lens most appropriate to your application. The configuration file listed contains the optimal API settings for that particular lens and should be included with your ...

Page 65

Table 35. ZMOTION Lens and Pyroelectric Sensor Selection Guide (Continued) Part Number Description CWM 0.5 GI Ceiling/Wall Mount Array o V1 Lens (180 ) Specification Circular lens with 24mm x 24mm square base 14.2mm focal length Board mount clip-in NCL-9(26) ...

Page 66

... Customer Support To share comments, get your technical questions answered, or report issues you may be experiencing with our products, please visit Zilog’s Technical Support page at  http://support.zilog.com. To learn more about this product, find additional documentation discover other fac- ets about Zilog product offerings, please visit the ...

Related keywords