English
Language : 

Z8FS040 Datasheet, PDF (53/56 Pages) Zilog, Inc. – ZMOTION Detection and Control Family Featuring Zilog’s PIR Technology
ZMOTIONTM Detection and Control Family
Product Specification
The following flow diagram shows the general S/W operation for Low Scan Rate mode.
RESET
Initialize Oscillator & WDT
Set up GPIO’s for application
ePIR
Initialization
Initialize Flash Frequency Register
Enable ADC in PWRCTL0
Initialize API Registers
Recommended settings supplied in
lens/pyro configuration file
PIR Scan Rate = 1
Set ePIR_Enable Register to
ePIR_ENABLE_PATTERN
Execute EPIR_INIT Macro
Set up Timer for 5 Millisecond Interrupt
Enable Global Interrupts
Application
Initialization
Wait for PIR Sensor Stable
ePIR_SC0:0=1
Main
Application
Loop
HALT
(Optional)
Monitor ePIR
API for Events
Enter ADC
Interrupt
Turn off ADC to
Conserve Power
Exit ADC
Interrupt
ADC
Interrupt
5 Millisecond
Timer Interrupt
Start next ADC
Sample
Execute
EPIR_ADC_ISR
Macro
5 Millisecond
ADC Scan
No
1 Second?
Yes
Set bit 7 of ePIR_SC1
(Engine Timer Tick)
One Second
Timer Tick
User
Application
Code
Return
Figure 16 - Software Flow Diagram – Low Scan Mode
PS028506-1110
PRELIMINARY
48