|
@ -101,8 +101,8 @@ P2_SKIP EQU 0FFh |
|
|
; Comparator setup |
|
|
; Comparator setup |
|
|
;**** **** **** **** **** |
|
|
;**** **** **** **** **** |
|
|
Initialize_Comparator MACRO |
|
|
Initialize_Comparator MACRO |
|
|
mov CMP_CN0, #80h ;; Comparator enabled, no hysteresis |
|
|
|
|
|
mov CMP_MD, #40h ;; Comparator response time 100ns, Output polarity inverted |
|
|
|
|
|
|
|
|
mov CMP_CN0, #80h ;; Comparator enabled, no hysteresis |
|
|
|
|
|
mov CMP_MD, #40h ;; Comparator response time 100ns, Output polarity inverted |
|
|
ENDM |
|
|
ENDM |
|
|
|
|
|
|
|
|
|
|
|
|
|
|