3
2 - b i t C a p t u r e 3 R e g i s t e r
( T x C R 3 )
3 2 - b i t C a p t u r e 2 R e g i s t e r
( T x C R 2 )
3 2 - b i t C a p t u r e 1 R e g i s t e r
( T x C R 1 )
C o u n t e r S t o p o n M a t c h
w h e n M R n S i s S E T
3 2 - b i t C a p t u r e 0 R e g i s t e r
( T x C R 0 )
3
2 - b i t C o m p a r a t o r 3
=
M a t c h 3
1 6 - b i t M a t c h R e g i s t e r 3
( T M R 1 6 B x M R 3 )
=
o
p r a c . A . S t ê p i e ñ
s y s t e m A H B c l o c k
3 2 - b i t C o m p a r a t o r 2
1 6 - b i t M a t c h R e g i s t e r 2
( T M R 1 6 B x M R 2 )
=
M a t c h 2
=
3 2 - b i t C o m p a r a t o r 1
1 6 - b i t M a t c h R e g i s t e r 1
( T M R 1 6 B x M R 1 )
=
M a t c h 1
=
1 6 - b i t M a t c h R e g i s t e r 0
( T M R 1 6 B x M R 0 )
M a t c h 0
=
=
1 6 - b i t C o m p a r a t o r 0
E M C 2
( T M R 1 6 B x E M R )
E M C 3
( T M R 1 6 B x E M R )
C E n
0
1
R e s e t
1 6 - b i t P r e s c a l e R e g i s t e r
( T M R 1 6 B x P R )
1 6 - b i t C o m p a r a t o r
=
1 6 - b i t P r e s c a l e C o u n t e r
( T M R 1 6 B x P C )
C T 1 6 B x _ C A P 0
p i n
C o u n t
I n p u t
S e l e c t
C o u n t e r / T i m e r
M o d e
0 0
0 1
1 0
1 1
( T M R 1 6 B x C T C R )
M R 0 I
0
1
M R 1 I
0
1
M R 2 I
0
1
M R 3 I
0
1
C o u n t e r R e s e t o n M a t c h
w h e n M R n R i s S E T
M R 1 R
M R 0 S
0
1
M R 1 S
0
1
M R 2 R
0
M R 2 S
0
M R 3 R
0
0
1
1
1
0
1
0
1
1
S t o p
R e s e t
1 6 - b i t T i m e r / C o u n t e r x
( T M R 1 6 B x T C )
M R 0 R
M R 3 S
E x t e r n a l M a t c h C o n t r o l R e g i s t e r ( T M R 1 6 B x E M R )
E M 0
0
2
3
5
6
8
9
1 1
R e s e r v e d
1 2
3 1
n o t w r i t e o n e s
E M 1
E M 2
E M 3
E M C 0
4
1
E M C 1
7
E M C 2
1 0
E M C 3
M a t c h C o n t r o l
R e g i s t e r ( T M R 1 6 B x M C R )
M R 0
0
2
I
M R 0
R
M R 0
S
M R 1
3
5
I
M R 1
R
M R 1
S
M R 2
6
8
I
M R 2
R
M R 2
S
M R 3
9
1 1
I
M R 3
R
M R 3
S
R e s e r v e d
1 2
3 1
n o t w r i t e o n e s
w h e n
M R n
m a t c h
o n
M R n I :
T i m e r x
i n t e r r u p t
o n
M R n R : r e s e t
T i m e r x
o n
M R n S : s t o p
T i m e r x
{
H I G H o n c o r r e s p o n d i n g b i t
T i m e r C o n t r o l R e g i s t e r ( T M R 1 6 B x T C R )
C R s t C E n
0
2
3 1
C
o u n t e r
E
n a b l e
R e s e r v e d n o t w r i t e o n e s
C
o u n t e r & P r e s c a l e
R
e s e t
1
T i m e r O U T P U T P i n s
E M C 1
( T M R 1 6 B x E M R )
E M C 0
( T M R 1 6 B x E M R )
E M 0
0 0
0 1
1 0
1
0
N o t h i n g
C l e a r
S e t
T o g g l e
1 1
I n t e r r u p t R e g i s t e r ( T M R 1 6 B x I R )
C R 0
0
3
4
3 1
H I G H o n c o r r e s p o n d i n g b i t
r e s e t s t h e i n t e r r u p t
g e n e r a t e s t h e i n t e r r u p t
{
w h e n
M R n
m a t c h
M R 0
M R 1
M R 2
M R 3
5
R e s e r v e d
p i n C T 1 6 B x _ M A T 0
p i n C T 1 6 B x _ M A T 1
P I O 0 _ 9 / M O S I 0 /
/ C T 1 6 B 0 _ M A T 1
P I O 0 _ 8 / M I S O 0 /
/ C T 1 6 B 0 _ M A T 0
p i n C T 1 6 B 0 _ M A T 2
S W
C L K / P I O 0 _ 1 0 / S C K 0
/
/ C T 1 6 B 0 _ M A T 2
M R 3
M R 2
M R 1
M R 0
N V I C
M R n i s S e t
o n M a t c h
w h e n M R n I
i s S E T
C R 0 ( T x I R )
C R 1 ( T x I R )
C R 2 ( T x I R )
C R 3 ( T x I R )
C o u n t C o n t r o l R e g i s t e r
0
3
4
3 1
1
C o u n t
I n p u t
S e l e c t
R e s e r v e d
n o t w r i t e o n e s
2
0 1
C o u n t e r
M o d e
1 0
1 1
T C i s
i n c r e m e n t e d
o n
e d g e s o n
t h e C A P
i n p u t
r i s i n g
f a l l i n g
b o t h
0 0 T i m e r M o d e ( e v e r y r i s i n g P C L K e d g e )
p i n
i n p u t
C o u n t e r /
/ T i m e r
M o d e
C T 1 6 B x _ C A P 1
R e s e r v e d
R e s e r v e d
C T 1 6 B x _ C A P 0
0 1
1 0
1 1
0 0
( T M R 1 6 B x C T C R )
S e l e c t p i n f u n c t i o n s
i n I O C O N _ P I O k _ n
r e g i s t e r s
U M 1 0 3 9 8 .
L P C 1 1 1 x / L P C 1 1 C x x U s e r M a n u a l .
N X P , R e v . 1 2 . 3 - 1 0 J u n e 2 0 1 4
P I O 1 _ 1 0 / A D 6 /
/ C T 1 6 B 1 _ M A T 1
P I O 1 _ 9
/
C T 1 6 B 1 _ M A T 0
L P C 1 1 1 4
1 6 - b i t T i m e r / C o u n t e r x
( x = 0 o r 1 )
M a t c h M o d e R e g i s t e r s
0
1
P W
M E N 2
P W
M 0
P W
M 1
P W
M 2
S i n g l e - e d g e
P W
M
0
1
0
1
P W
M E N 1
P W
M E N 0
E n a b l e c l o c k s
t o p e r i p h e r a l b l o c k s
( S Y S A H B C L K C T R L )