Comparator Programming - ZiLOG Z8 User Manual

Hide thumbs Also See for Z8:
Table of Contents

Advertisement

Z8 Microcontrollers
I/O Ports
P34 OUT
P31
+
-
REF (P33)
P37 OUT
P32
+
-
REF (P33)
PCON

5.8.2 Comparator Programming

Example of enabling analog comparator mode.
LD P3M, #XXXX XX1XB
Note: X = Any Binary Number
5-26
0 P34, P37 Standard Output
D0
1 P34, P37 Comparator Output
Figure 5-33. Port 3 Configuration
Example of enabling analog comparator output.
LD RP, #%0FH
LD R0, #XXXX
XXX1B
ZiLOG
P34
PIN
P37
PIN
;Sets register pointer to
;working register group 0
;and Expanded Register
;File Bank F.
;Enables comparator
;outputs using PCON
;Register programming.
UM001601-0803

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z8 and is the answer not in the manual?

Table of Contents