| 전자부품 데이터시트 검색엔진 |
|
ADC12H030 데이터시트(PDF) 37 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
ADC12H030 데이터시트(HTML) 37 Page - National Semiconductor (TI) |
|
37 / 41 page ![]() Application Hints (Continued) Power Down instructions do not change these default set- tings. The following power up sequence should be followed: 1. Run the program 2. Prior to responding to the prompt apply the power to the ADC12038 3. Respond to the program prompts It is recommended that the first instruction issued to the ADC12038 be Auto Cal (see Section 1.1). ’variables DOL=Data Out word length, DI=Data string for A/D DI input, ⇒ ’ DO=A/D result string ’SET CS# HIGH OUT &H3FC, (&H2 OR INP (&H3FC)) ’set RTS HIGH ⇒ OUT &H3FC, (&HFE AND INP(&H3FC)) ’set DTR LOW ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’set RTS LOW ⇒ OUT &H3FC, (&HEF AND INP(&H3FC)) ’set B4 low ⇒ 10 LINE INPUT <&ldquo>DI data for ADC12038 (see Mode Table on data sheet)”; DI$ ⇒ INPUT <&ldquo>ADC12038 output word length (8,9,12,13,16 or 17)”; DOL ⇒ 20 ’SET CS# HIGH OUT &H3FC, (&H2 OR INP (&H3FC)) ’set RTS HIGH ⇒ OUT &H3FC, (&HFE AND INP(&H3FC)) ’set DTR LOW ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’set RTS LOW ⇒ ’SET CS# LOW OUT &H3FC, (&H2 OR INP (&H3FC)) ’set RTS HIGH ⇒ OUT &H3FC, (&H1 OR INP(&H3FC)) ’set DTR HIGH ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’set RTS LOW ⇒ DO$= <&ldquo> ” ’reset DO variable ⇒ ⇒ OUT &H3FC, (&H1 OR INP(&H3FC)) ’SET DTR HIGH ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’SCLK low ⇒ FOR N=1 TO 8 Temp$=MID$(DI$,N,1) IF Temp$=<&ldquo>0” THEN OUT &H3FC,(&H1 OR INP(&H3FC)) ELSE OUT &H3FC, (&HFE AND INP(&H3FC)) END IF ’out DI ⇒ OUT &H3FC, (&H2 OR INP(&H3FC)) ’SCLK high ⇒ IF (INP(&H3FE) AND 16)=16 THEN DO$=DO$+<&ldquo>0” ELSE DO$=DO$+<&ldquo>1” END IF ’input DO ⇒ ⇒ OUT &H3FC, (&H1 OR INP(&H3FC)) ’SET DTR HIGH ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’SCLK low ⇒ NEXT N IF DOL>8 THEN FOR N=9 TO DOL OUT &H3FC, (&H1 OR INP(&H3FC)) ’SET DTR HIGH ⇒ OUT &H3FC, (&HFD AND INP(&H3FC)) ’SCLK low ⇒ OUT &H3FC, (&H2 OR INP(&H3FC)) ’SCLK high ⇒ IF (INP(&H3FE) AND &H10)=&H10 THEN DO$=DO$+<&ldquo>0” ELSE DO$=DO$+<&ldquo>1” END IF NEXT N END IF OUT &H3FC, (&HFA AND INP(&H3FC)) ’SCLK low and DI high ⇒ FOR N=1 TO 500 NEXT N PRINT DO$ INPUT <&ldquo>Enter <&ldquo>C” to convert else <&ldquo>RETURN” to alter DI data”; s$ ⇒ IF s$=<&ldquo>C” OR s$=<&ldquo>c” THEN GOTO 20 ELSE GOTO 10 END IF END www.national.com 37 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |