công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN420 bảng dữ liệu(PDF) 12 Page - STMicroelectronics

tên linh kiện AN420
Giải thích chi tiết về linh kiện  Occasionally the analog signal provided by external sensors require
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN420 bảng dữ liệu(HTML) 12 Page - STMicroelectronics

Back Button AN420 Datasheet HTML 8Page - STMicroelectronics AN420 Datasheet HTML 9Page - STMicroelectronics AN420 Datasheet HTML 10Page - STMicroelectronics AN420 Datasheet HTML 11Page - STMicroelectronics AN420 Datasheet HTML 12Page - STMicroelectronics AN420 Datasheet HTML 13Page - STMicroelectronics AN420 Datasheet HTML 14Page - STMicroelectronics AN420 Datasheet HTML 15Page - STMicroelectronics AN420 Datasheet HTML 16Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 12 / 16 page
background image
Application example
AN420
12/15
Doc ID 2078 Rev 2
Hres .def 0bdh,0ffh,0ffh
;MS 2 bits of conversion result, and
;conversion flag
conv_f .equ 7;the MSB of Hres is the high resolution
;end of conversion flag
c1 .equ 6
;conversion step flags
c2 .equ 5
c3 .equ 4
c4 .equ 3
;using Hres
Lres .def 0beh,0ffh,0ffh
;LSB of conversion result
;************************** N O T E ***********************************************
;register W is used to save the accumulator contents
;in standard interrupt routines
;********************************************************************************
.org 880h
;one module only. Do not use this
;assembly directive if you organize
;your software in linkable modules
init ldi drb,1
ldi orb,1 ;PB0 is analog input
ldi ddrc,070h ;PC4..6 are open drain outputs
ldi orc,070h ;PC4..6 are push-pull outputs now
ldi drcs,0 ;assume PC7 is input with pull-up,
;no interrupt
ldi ior,10h ;enable interrupts
ldi Hres,0
reti ;initialize interrupt machine
conv
;this is an endless loop converting
;PB0 input with 10-bit resolution
;the first time here after reset,
;VN1=VN2=VN3=0
set conv_f,Hres
set c1,Hres
set 5,adcr ;start high resolution conversion
jrs conv_f,Hres,$
nop ;here the high resolution result is
;available in Hres-Lres
jp conv
adcint
ld w,a ;save accumulator
ld a,adr ;in accumulator conversion result
jrs c1,Hres,c1conv



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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