English
Language : 

Z8FS021 Datasheet, PDF (30/68 Pages) Zilog, Inc. – Select from an assortment of lenses and pyroelectric sensors to best fit your application
ZMOTION® Intrusion Detection
Product Specification
22
CPU Cycles: 261
Peripherals initialized: ADC and GPIO, depending on API-selected options. The ADC
IRQ is set for medium priority.
EPIR_ADC_ISR Macro. This macro is executed for each ADC conversion. The applica-
tion handles the ADC interrupt and executes this macro. All motion detection processing
is performed by this macro.
EPIR_ADC_ISR Macro:
PUSHX
LDX
CALL
POPX
RP
RP, #%E0
%1000
RP
The CPU cycles used by the EPIR_ADC_ISR macro vary depending on Engine state and
configuration.
PIR Engine CPU Stack Usage
The PIR Engine shares the processor stack with the user application. There are no special
requirements on the placement of the stack in memory, but it is essential that the user pro-
vide enough stack space for both the user application and the PIR Engine.
The PIR Engine requires a maximum 6 bytes of stack.
PS028806-0315
PIR Engine and API