Electronic Components Datasheet Search
  English  ▼

X  

SN8P2743KB Datasheet(PDF) 73 Page - SONiX Technology Company

Part # SN8P2743KB
Description  ADC, OP-amp, Comparator 8-Bit Micro-Controller
PDF  136 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SONIX [SONiX Technology Company]
Direct Link  http://www.sonix.com.tw
Logo SONIX - SONiX Technology Company

SN8P2743KB Datasheet(HTML) 73 Page - SONiX Technology Company

Back Button SN8P2743KB Datasheet HTML 69Page - SONiX Technology Company SN8P2743KB Datasheet HTML 70Page - SONiX Technology Company SN8P2743KB Datasheet HTML 71Page - SONiX Technology Company SN8P2743KB Datasheet HTML 72Page - SONiX Technology Company SN8P2743KB Datasheet HTML 73Page - SONiX Technology Company SN8P2743KB Datasheet HTML 74Page - SONiX Technology Company SN8P2743KB Datasheet HTML 75Page - SONiX Technology Company SN8P2743KB Datasheet HTML 76Page - SONiX Technology Company SN8P2743KB Datasheet HTML 77Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 73 / 136 page
background image
SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 73
Version 2.0
Example: Set P4.1 to be general purpose input mode. P4CON.1 must be set as
“0”.
; Check GCHS and CHS[2:0] status.
B0BCLR
FGCHS
;If CHS[2:0] point to P4.1 (CHS[2:0] = 001B), set GCHS=0
;If CHS[2:0]
don’t point to P4.1 (CHS[2:0] ≠ 001B), don’t
care GCHS status.
; Clear P4CON.
B0BCLR
P4CON.1
; Enable P4.1 digital function.
; Enable P4.1 input mode.
B0BCLR
P4M.1
; Set P4.1 as input mode.
Example: Set P4.1 to be general purpose output. P4CON.1 must be set as
“0”.
; Check GCHS and CHS[2:0] status.
B0BCLR
FGCHS
;If CHS[2:0] point to P4.1 (CHS[2:0] = 001B), set GCHS=0.
;If CHS[2:0]
don’t point to P4.1 (CHS[2:0] ≠ 001B), don’t
care GCHS status.
; Clear P4CON.
B0BCLR
P4CON.1
; Enable P4.1 digital function.
; Set P4.1 output buffer to avoid glitch.
B0BSET
P4.1
; Set P4.1 buffer as
“1”.
; or
B0BCLR
P4.1
; Set P4.1 buffer as
“0”.
; Enable P4.1 output mode.
B0BSET
P4M.1
; Set P4.1 as input mode.
P4.0 is shared with general purpose I/O, ADC input (AIN0) and ADC external high reference voltage input. AVREFH
flag of ADM register is external ADC high reference voltage input control bit. If AVREFH is enabled, P4.0 general
purpose I/O and ADC analog input (AIN0) functions are disabled. P4.0 pin is connected to ADC high reference voltage
directly.
Note: For P4.0 general purpose I/O and AIN0 functions, AVREFH must be set as
“0”.
Example: Set P4.0 to be general purpose input mode. AVREFH and P4CON.0 bits must be set as
“0”.
; Check AVREFH status.
B0BTS0
FAVREFH
; Check AVREFH = 0.
B0BCLR
FAVREFH
; AVREFH = 1, clear it to disable external ADC high
reference input.
; AVREFH = 0, execute next routine.
; Check GCHS and CHS[2:0] status.
B0BCLR
FGCHS
;If CHS[2:0] point to P4.0 (CHS[2:0] = 000B), set GCHS=0
;If CHS[2:0]
don’t point to P4.0 (CHS[2:0] ≠ 000B), don’t
care GCHS status.
; Clear P4CON.
B0BCLR
P4CON.0
; Enable P4.0 digital function.
; Enable P4.0 input mode.
B0BCLR
P4M.0
; Set P4.0 as input mode.



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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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