| Electronic Components Datasheet Search |
|
ADC12138CIWM Datasheet(PDF) 36 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
ADC12138CIWM Datasheet(HTML) 36 Page - National Semiconductor (TI) |
|
36 / 41 page ![]() Application Hints (Continued) The assignment of the RS232 port is shown below B7 B6 B5 B4 B3 B2 B1 B0 COM1 Input Address 3FE X X X CTS X X X X Output Address 3FC X X X 0 X X RTS DTR A sample program, written in Microsoft QuickBasic, is shown on the next page. The program prompts for data mode select instruction to be sent to the A/D. This can be found from the Mode Programming table shown earlier. The data should be entered in “1”s and “0”s as shown in the table with DI0 first. Next the program prompts for the number of SCLKs required for the programmed mode select instruction. For instance, to send all “0”s to the A/D, selects CH0 as the +input, CH1 as the −input, 12-bit conversion, and 13-bit MSB first data out- put format (if the sign bit was not turned off by a previous in- struction). This would require 13 SCLK periods since the out- put data format is 13 bits. The part powers up with No Auto Cal, No Auto Zero, 10 CCLK Acquisition Time, 12-bit conver- sion, data out with sign, power up, 12- or 13-bit MSB First, and user mode. Auto Cal, Auto Zero, Power Up and Power Down instructions do not change these default settings. Since there is no CS signal to synchronize the serial inter- face the following power up sequence should be followed: 1. Run the program 2. Prior to responding to the prompt apply the power to the ADC12138 3. Respond to the program prompts It is recommended that the first instruction issued to the ADC12138 be Auto Cal (see Section 1.1). Code Listing: ’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 ADC12138 (see Mode Table on data sheet)<&rdquo>; DI$ INPUT <&ldquo>ADC12138 output word length (12,13,16 or 17)<&rdquo>; 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 DS012079-46 Note: VA +,V D +, and V REF + on the ADC12138 each have 0.01 µF and 0.1 µF chip caps, and 10 µF tantalum caps. All logic devices are bypassed with 0.1 µF caps. www.national.com 36 |
|
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 |
| 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 |