전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

DM300019 데이터시트(PDF) 32 Page - Microchip Technology

부품명 DM300019
상세설명  Starter Development Board Userís Guide
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  MICROCHIP [Microchip Technology]
홈페이지  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DM300019 데이터시트(HTML) 32 Page - Microchip Technology

Back Button DM300019 Datasheet HTML 28Page - Microchip Technology DM300019 Datasheet HTML 29Page - Microchip Technology DM300019 Datasheet HTML 30Page - Microchip Technology DM300019 Datasheet HTML 31Page - Microchip Technology DM300019 Datasheet HTML 32Page - Microchip Technology DM300019 Datasheet HTML 33Page - Microchip Technology DM300019 Datasheet HTML 34Page - Microchip Technology DM300019 Datasheet HTML 35Page - Microchip Technology DM300019 Datasheet HTML 36Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 50 page
background image
dsPICDEM™ 80-Pin Starter Development Board User’s Guide
DS51584B-page 28
© 2006 Microchip Technology Inc.
3.4.2
Analog-to-Digital Conversion
This program consists of two subroutines which (1) perform the A/D conversion and (2)
transmit the converted value over an RS-232 serial connection (see Figure 3-2). The
A/D conversion routine samples the analog output of Potentiometer RB2. The transmit
routine converts the 12-bit binary value from ADC12 to a three-digit HEX code,
converts the HEX code to an ASCII character and loads the ASCII value into the
transmission buffer of UART1. UART1 transmits each ASCII character with a CR and
LF to delimit each sample as a separate line on the receiving terminal.
FIGURE 3-2:
ANALOG-TO-DIGITAL CONVERSION FLOW DIAGRAM
INIT ADC12
INIT UART
Start A/D
Conversion
Convert HEX
Digit 3 to ASCII
ADC Complete?
Buffer Full?
Load Digit 3 into
Transmit Buffer
START
Delay 10 msec
Convert 12-bit Binary
to 3-digit HEX
Convert HEX
Digit 2 to ASCII
Buffer Full?
Load Digit 2 into
Transmit Buffer
Convert HEX
Digit 1 to ASCII
Buffer Full?
Load Digit 1 into
Transmit Buffer
Generate ASCII
CR
Buffer Full?
Load CR into
Transmit Buffer
Generate ASCII
LF
Buffer Full?
Load Transmit
Buffer
Yes
No
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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