Z8FS040BSB20EG Zilog, Z8FS040BSB20EG Datasheet - Page 22

IC MCU 4KB FLASH IRDA 8SOIC

Z8FS040BSB20EG

Manufacturer Part Number
Z8FS040BSB20EG
Description
IC MCU 4KB FLASH IRDA 8SOIC
Manufacturer
Zilog
Series
ZMOTION™r

Specifications of Z8FS040BSB20EG

Applications
Infrared Motion Detection
Core Processor
eZ8
Program Memory Type
FLASH (4 kB)
Controller Series
Z8 Encore! XP®
Interface
IrDA, UART/USART
Number Of I /o
5
Voltage - Supply
2.7 V ~ 3.6 V
Operating Temperature
-40°C ~ 105°C
Mounting Type
Surface Mount
Package / Case
8-SOIC (0.154", 3.90mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Ram Size
-
Other names
269-2512

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
Z8FS040BSB20EG
Manufacturer:
SAMSUNG
Quantity:
1 150
Zilog’s PIR Technology and API
General Operation
The ZMOTION
functionality of a motion detection engine (PIR engine). The PIR engine is located in the upper 4KB
area of the 8KB device leaving 4KB of code space to the user application. It operates in the
background and is controlled and monitored through an Application Programmer Interface (API). The
API is a series of reserved registers in memory.
There are two sections to the API – Standard API Registers and Advanced API Registers:
PIR Engine Timer Tick
Bit 7 of PIR Status/Control Register 1 provides a 1 second time base for the PIR engine to perform
house keeping operations. This bit must be set to 1, once per second by the user application. The bit
is checked and cleared during the EPIR_ADC_ISR routine.
PIR Engine Entry Points
There are two entry points to the PIR engine that are accessed through two predefined Macros. One
is an initialization macro that is used to start the engine and the other is executed upon every ADC
interrupt. Both macros save and initialize the Register Pointer, perform a call to the PIR engine entry
point and then restore the Register Pointer before returning control to the application. It is the
responsibility of the Application S/W to execute these Macro’s at the appropriate time.
EPIR_INIT Macro
This macro is executed to initialize the PIR engine after reset. It is normally only executed once and is
used in conjunction with the PIR Engine Enable register in the standard API section. The application
should initialize all API registers, write the PIR Enable Pattern to the PIR Engine Enable register, and
then execute this Macro. ADC conversions are started by this macro.
EPIR_INIT Macro:
CPU Cycles: 261
Peripherals Initialized:
ADC and GPIO depending on API selected options. ADC IRQ set for medium priority.
PS028506-1110
1.
2.
Standard API
applications. These include sensitivity control, motion detection/direction status and
operational modes.
Advanced API
allows it to be configured to support the pyroelectric sensor and lens being used in the
application.
PUSHX
LDX
CALL
POPX
TM
MCU Series is based on the Z8 Encore! XP
registers: It includes all of the status and control functions needs for most
RP
RP, #%E0
%1FFD
RP
registers: It provides additional control over the PIR engine operation and
PRELIMINARY
®
ZMOTION
Z8F082A MCU with the added
TM
Detection and Control Family
Product Specification
17

Related parts for Z8FS040BSB20EG