EasyManua.ls Logo

ZiLOG Z8

ZiLOG Z8
220 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Z8 Microcontrollers
I/O Ports ZiLOG
5-26 UM001601-0803
5.8.2 Comparator Programming
Example of enabling analog comparator mode.
Note: X = Any Binary Number
Example of enabling analog comparator output.
Figure 5-33. Port 3 Configuration
PIN
P37
0 P34, P37 Standard Output
1 P34, P37 Comparator Output
D0
P37 OUT
PCON
P32
REF (P33)
+
-
PIN
P34
P34 OUT
P31
REF (P33)
+
-
LD P3M, #XXXX XX1XB
LD RP, #%0FH ;Sets register pointer to
;working register group 0
;and Expanded Register
;File Bank F.
LD R0, #XXXX
XXX1B
;Enables comparator
;outputs using PCON
;Register programming.

Table of Contents

Other manuals for ZiLOG Z8

Related product manuals