Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

SX28AC/SS Datenblatt(PDF) 27 Page - Parallax Inc

Teilenummer SX28AC/SS
Bauteilbeschribung  Configurable Communications Controllers with EE/Flash Program Memory, In-System Programming Capability and On-Chip Debug
PDF  51 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  PARALLAX [Parallax Inc]
Direct Link  https://www.parallax.com/
Logo PARALLAX - Parallax Inc

SX28AC/SS Datenblatt(HTML) 27 Page - Parallax Inc

Back Button SX28AC/SS Datasheet HTML 23Page - Parallax Inc SX28AC/SS Datasheet HTML 24Page - Parallax Inc SX28AC/SS Datasheet HTML 25Page - Parallax Inc SX28AC/SS Datasheet HTML 26Page - Parallax Inc SX28AC/SS Datasheet HTML 27Page - Parallax Inc SX28AC/SS Datasheet HTML 28Page - Parallax Inc SX28AC/SS Datasheet HTML 29Page - Parallax Inc SX28AC/SS Datasheet HTML 30Page - Parallax Inc SX28AC/SS Datasheet HTML 31Page - Parallax Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 51 page
background image
Parallax SX20AC/SX28AC
www.parallax.com
© Parallax Inc.
Page 27 of 51
Rev 1.6 11/20/2006
11.0 COMPARATOR
The device contains an on-chip differential comparator.
Ports RB0-RB2 support the comparator. Ports RB1 and
RB2 are the comparator negative and positive inputs,
respectively, while Port RB0 serves as the comparator
output pin. To use these pins in conjunction with the
comparator, the user program must configure Ports RB1
and RB2 as inputs and Port RB0 as an output. The
CMP_B register is used to enable the comparator, to read
the output of the comparator internally, and to enable the
output of the comparator to the comparator output pin.
The comparator enable bits are set to “1” upon reset, thus
disabling the comparator. To avoid drawing additional
current during the power down mode, the comparator
should be disabled before entering the power down mode.
Here is an example of how to setup the comparator and
read the CMP_B register.
mov
M,#$08
;set MODE register to access
;CMP_B
mov
W,#$00
;clear W
mov
!RB,W
;enable comparator and its
;output
;delay after enabling
;comparator for response
mov
M,#$08
;set MODE register to access
;CMP_B
mov
W,#$00
;clear W
mov
!RB,W
;enable comparator and its
;output and also read CMP_B
;(exchange W and CMB_B)
and
W,#$01
;set/clear Z bit based on
;comparator result
snb
$03.2
;test Z bit in STATUS reg
;(0 => RB2<RB1)
jmp
rb2_hi
;jump only if RB2>RB1
The final “mov” instruction in this example performs an
exchange of data between the working register (W) and
the CMP_B register. This exchange occurs only with Port
B accesses. Otherwise, the “mov” instruction does not
perform an exchange, but only moves data from the
source to the destination.
Figure 11-1 shows the comparator block diagram.
CMP_B - Comparator Enable/Status Register
Comparator result: 1 for RB2>RB1 or 0
for RB2<RB1. Comparator must be
enabled (CMP_EN = 0) to read the
result. The result can be read whether or
not the CMP_OE bit is cleared.
When cleared to 0, it enables the
comparator output to the RB0 pin.
When cleared to 0, it enables the
comparator.
Figure 11-1:
Comparator
Block Diagram
EN
_
CMP
OE
_
CMP
Reserved
CMP_RES
Bit 7
Bit 6
Bits 5-1
Bit 0
RES
CMP _
OE
CMP _
EN
CMP _



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com