English
Language : 

Z8FS040 Datasheet, PDF (23/56 Pages) Zilog, Inc. – ZMOTION Detection and Control Family Featuring Zilog’s PIR Technology
ZMOTIONTM Detection and Control Family
Product Specification
EPIR_ADC_ISR Macro
This macro is executed for each ADC conversion. The application handles the ADC interrupt and
executes this macro. All motion detection processing is performed by this macro.
EPIR_ADC_ISR Macro:
PUSHX
RP
LDX
RP, #%E0
CALL
%1000
POPX
RP
The CPU cycles used by this 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 provide enough
stack space for both the user application and the PIR engine.
The PIR engine requires maximum 6 bytes of stack.
PS028506-1110
PRELIMINARY
18