Electronic Components Datasheet Search
  English  ▼

X  

SN8P2743KB Datasheet(PDF) 113 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) 113 Page - SONiX Technology Company

Back Button SN8P2743KB Datasheet HTML 109Page - SONiX Technology Company SN8P2743KB Datasheet HTML 110Page - SONiX Technology Company SN8P2743KB Datasheet HTML 111Page - SONiX Technology Company SN8P2743KB Datasheet HTML 112Page - SONiX Technology Company SN8P2743KB Datasheet HTML 113Page - SONiX Technology Company SN8P2743KB Datasheet HTML 114Page - SONiX Technology Company SN8P2743KB Datasheet HTML 115Page - SONiX Technology Company SN8P2743KB Datasheet HTML 116Page - SONiX Technology Company SN8P2743KB Datasheet HTML 117Page - SONiX Technology Company Next Button
Zoom Inzoom in Zoom Outzoom out
 113 / 136 page
background image
SN8P2740 Series
ADC, OP-amp, Comparator 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 113
Version 2.0
13.5
ADC OPERATION EXAMLPE
ADC CONFIGURATION:
; Reset ADC.
CLR
ADM
; Clear TC0M register.
; Set ADC clock rate and ADC resolution.
MOV
A, #0nmn0000b
; nn: ADCKS[1:0] for ADC clock rate.
B0MOV
ADR, A
; m: ADLEN for ADC reolution.
; Set ADC high reference voltage source.
B0BCLR
FAVREFH
; Internal Vdd.
or
B0BSET
FAVREFH
; External reference voltage.
; Set ADC input channel configuration.
MOV
A, #value1
; Set P4CON for ADC input channel.
B0MOV
P4CON, A
MOV
A, #value2
; Set ADC input channel as input mode.
B0MOV
P4M, A
MOV
A, #value3
; Disable ADC input channel
‟s internal pull-up resistor.
B0MOV
P4UR, A
; Enable ADC.
B0BSET
FADCENB
; Execute ADC 100us warm-up time delay loop.
CALL
100usDLY
; 100us delay loop.
; Select ADC input channel.
MOV
A, #value
; Set ADCHS[2:0] for ADC input channel selection.
OR
ADM, A
; Enable ADC input channel.
B0BSET
FGCHS
; Enable ADC interrupt function.
B0BCLR
FADCIRQ
; Clear ADC interrupt flag.
B0BSET
FADCIEN
; Enable ADC interrupt function.
; Start to execute ADC converting.
B0BSET
FADS
Note:
1.
When ADENB is enabled, the system must be delay 100us to be the ADC warm-up time by
program, and then set ADS to do ADC converting. The 100us delay time is necessary after
ADENB setting (not ADS setting), or the ADC converting result would be error. Normally, the
ADENB is set one time when the system under normal run condition, and do the delay time
only one time.
2.
In power saving situation like power down mode and green mode, and not using ADC function,
to disable ADC by program is necessary to reduce power consumption.



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