ZEN2011P Zenic, ZEN2011P Datasheet - Page 7

no-image

ZEN2011P

Manufacturer Part Number
ZEN2011P
Description
Programmable Universal Counter
Manufacturer
Zenic
Datasheet
www.DataSheet4U.com
5,Command register
Th is is a r egist er wh ich st or es t h e "com m a n d wor ds"
t o con t r ol t h e
Th e com m a n d wor ds a r e en t er ed t h r ou gh a da t a bu s
a n d a r e st or ed in t o t h e com m a n d r egist er .
in st r u ct ion set of Mode 0 a n d Mode 1.
Mode 0 oper a t ion s. H owever , a ll in st r u ct ion set s a r e
execu t a ble a t Mode 1 oper a t ion s.
5-1. System mode set command
It is n ecessa r y t o select eit h er of m ode.
(1) Mode 0 ( defa u lt
As for E XTA (pin N o.1), com pa r a t or ou t pu t E QA is
ou t pu t . Mor eover , E XTB (pin No.19) becom es a n
in pu t m ode a n d is set in u n iver sa l in pu t U .
(2) Mode 1
E XTB (pin N o.19) becom es a n ou t pu t m ode a n d ca n
set ou t pu t da t a wit h E XTA (pin N o.1) depen din g on
t h e com m a n d of Mode 1.
5-2. Mode 0 : Functions and formats of
BS0,BS1(Byt e select )
Sin ce t h e t h r ee r egist er s(pr eloa d,r efer en ce, a n d la t ch )
a n d u p/down cou n t er h a ve 24 bit len gt h , Th e BS0
a n d BS1 divide t h e 24 bit in t o h igh byt e, m iddle byt e,
a n d low byt e, ea ch of
t h e byt e t o be a ccessed.
RS0,RS1(Regist er select )
Th e RS0 a n d RS1 specify a r egist er t o be a ccessed
a m on g t h e t h r ee r egist er s(pr eloa d, r efer en ce a n d
la t ch ) a n d
Th e
Th e in st r u ct ion set of Mode 1 ca n n ot be execu t ed a t
It is t h e com m a n d wor d t o select syst em m ode.
D7 D6 D5 D4 D3 D2 D1 D0 H ex
Format of the command register(system mode)
1
1
0
0
com m a n d
0
0
up/down counter.
1
1
ZEN2011P
0
0
wor ds
0
0
)
0
0
.
wh ich h a s 8 bit , a n d specify
h a ve t wo kin ds
0
1
the command register
90
91
Mode 0 select
Mode 1 select
Oper a t ion
of t h e
- 7 -
Th is specifica t ion does n ot n eed t o be en t er ed for
e v e r y
a u t om a t ica lly m oves.
LT(La t ch )
Th is com m a n d is u sed t o st or e t h e cou n t ed da t a of
t h e u p/down cou n t er in t o t h e r ea din g r egist er .
ZE 0,ZE 1(Z ph a se con t r ol)
Th e Z ph a se in pu t sign a ls a r e u sed a s a clea r sign a l
for t h e u p/down cou n t er . ZE 0 a n d ZE 1 set t h e
effect ive n u m ber of clea r pu lses.
LD(Loa d)
Th is com m a n d is u sed t o t r a n sm it t h e da t a wh ich a r e
st or ed in t h e pr eloa d r egist er t o t h e u p/down cou n t er .
N ot e 1) In t h e Loa d a n d La t ch oper a t ion s, do n ot
N ot e 2) To execu t e a LT com m a n d or a LD com m a n d ,
field format of command register(mode 0)
D7
LD ZE 1 ZE 0
it is n ecessa r y t o fix t h e ext er n a l pin s, LT
execu t e LD a n d LT sim u lt a n eou sly eit h er by
soft wa r e com m a n ds or by ext er n a l pin s.
a n d LD, a t a "H " level.
D6
b y t e ,
D5
b e ca u s e
D4
LT RS1 RS0 BS1 BS0
D3
t h e
D2
s p e ci fi e d
D1
ZEN2011P
ZENIC Inc.
D0
p os i t i on

Related parts for ZEN2011P