English
Language : 

E909-05 Datasheet, PDF (24/67 Pages) ELMOS Semiconductor AG – The HALIOS® multi purpose optical sensor is based on an optical bridge which provides a contactless detec-tion of gestures (e.g. movement of a finger).
HALIOS® MULTI-PURPOSE OPTICAL SENSOR WITH HIGH LIGHT IMMUNITY
E909.05
PRELIMINARY INFORMATION AUG 02, 2011
6.3.3 Status Register (SR)
The status register (SR/R2), used as a source or destination register, can be used in the register mode only
addressed with word instructions. The remaining combinations of addressing modes are used to support the
constant generator.
Register Status Register (SR/R2)
Bit
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reset value
0000000000000000
Internal access R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
External access R R R R R R R R R R R R R R R R
Bit Description
Bit 8 : V
Bit 5 : CLK OFF
Bit 4 : CPU OFF
BIT3 : GIE
Bit2 : N
Bit1 : Z
BIT0 : C
Table 6.3.3.1: Status Register
V: Overflow bit
This bit is set when the result of an arithmetic operation overflows the signed-variable range.
CLKOFF: Stop flag
CPU clock gated
CPUOFF: Standby flag
CPU halted
GIE: Global Interrupt Enable
N: Negative bit
This bit is set when the result of a byte or word operation is negative and cleared when the result is not negat-
ive. Word operation: N is set to the value of bit 15 of the result Byte operation: N is set to the value of bit 7 of
the result
Z: Zero bit
This bit is set when the result of a byte or word operation is 0 and cleared when the result is not 0.
C: Carry bit
This bit is set when the result of a byte or word operation
produced a carry and cleared when no carry occurred.
6.3.4 Constant Generation Registers CG1 and CG2
Six commonly-used constants are generated with the constant generator registers R2 and R3, without requir-
ing an additional 16-bit word of program code. The constants are selected with the source-register address-
ing modes (As), as described in the table below:
Register
R2
R2
R2
As
00
01
10
Value
-----
(0)
00004h
Remarks
Register Mode
Absolute Address Mode
+4, bit processing
This document contains information on a pre-production product. ELMOS Semiconductor AG reserves the right to change specifications and information herein without notice.
ELMOS Semiconductor AG
Data Sheet 24 / 67
QM-No.: 25DS0014E.00