Está en la página 1de 7

NI KIT-51 ADD-0N CARDS

ADC-DAC add on card comprises of a 8 channel ADC AD0808 and a single channel DAC 0800.On board variable Analog input source. The specifications of the above mentioned are as follows ADC 0808: +5V power supply from NI KIT-51 (no external power supply). All signals of the ADC-board can be connected to the NI KIT-51. Easy interface to all microcontrollers. Operates with external reference of 2.5 Volt. Typical conversion time 100-200 uSecond based on ADC clock. No zero or full-scale adjust required. 8-channel ADC with multiplexed address logic. 0V to 2.5V input range with single 5V power supply. Outputs meet TTL voltage level specifications. On board 0 to 2.5 volt variable voltage source. DAC 0800: Fast settling output current: 100 ns Full scale error: 1 LSB Nonlinearity over temperature: 0.1% Full scale current drift: 10 ppm/C High output compliance: -10V to +18V Complementary current outputs Interface directly with TTL and CMOS
V E R S I O N : 1 . 0 0

ADC-DAC Add on Card


NI KIT-51 come with a provision for a range of add-on cards. These cards provide value added interfaces that are not available on board. ADC/DAC add-on card includes an 8-bit ADC and 8-bit DAC. It has ADC0808 an 8 bit analog to digital converter with on chip 8 channel multiplexer, conversion time of 100 200 uSecond and micro processor compatible control logic. The module has monolithic 8-bit high -speed currentoutput digital-to-analog converters DAC-0800 featuring typical settling times of 100 ns. The 8-bit A/D-converter uses successive approximation as the conversion technique. The converter features a high impedance chopper stabilized comparator, a 256R voltage divider with analog switch tree and a successive approximation register. The 8-channel multiplexer can directly access any of 8-singleended analog signals. The module eliminates the need for external zero and full-scale adjustments. Easy interfacing to NI KIT-51 is provided by the wired bus. The 8-bit D/A-converter current-output is converted to voltageoutput with the help of Op-Amp circuitry for easy interface .

I/O SPECIFICATIONS: ADC Reference (Vref) DAC Reference (Vref) Supply Voltage (VCC) Max. Analog voltage Output 0 to +2.5 V 0 to +2.5 V 5.0V 0 TO 2.5 Vpp uni-polar -2.5 TO +2.5 Vpp bi-polar Voltage at Control Inputs -0.3V to +15V (START, OE, CLOCK, ALE, ADD A, ADD B, ADD C) Reference Input Current 5 mA

National Infotech-Engineering Division National Group: F-9, Jolly Complex, Opp. Rangila Park, Ghod -Dod Road Surat-395001 Gujarat-India Phone: +91-261-2667876 ext 229, +91-261-2655236 (Direct) E-Mail: nitech@nationalgroupindia.orgWeb: http://www.nationalgroupindia.org

CARD OVERVIEW:
J1 JP1

ADC
DAC

JP6 LP6

JP3

JP2

AD-DA ADD-ON MODULE PORT CONFIGURATION


Connector JP1 (12x2 Header) 1 Vcc 2 Analog Input 1 3 Analog Input 2 4 Analog Input 3 5 Analog Input 4 6 Analog Input 5 7 Analog Input 6 8 Analog Input 7 9 Analog Input 8 10 Digital Output 11 GND 12 GND Connector JP3 (10 PIN Header) 1 Vcc 2 DAC WR 3 ADC ALE 4 ADC EOC 5 ADC RD 6 ADC SOC 7 ADC ADD B 8 ADC ADD A 9 ADC ADD C 10 GND Connector JP2 (10 PIN Header) 1 Vcc 2 D0 3 D1 4 D2 5 D3 6 D4 7 D5 8 D6 9 D7 10 GND

JUMPER SETTINGS :

JUMPER-J1:
IT IS USED TO CONNECT CHANNEL-1 OF ADC TO ON BOAD ANALOG INPUT OR TO CONNECT IT TO EXTERNAL ANALOG INPUT.
CONNECT ADC CHANNE TO EXTERNAL -1 ANALOG INPUT

CONNECT ADC ADDRESS LINE-C TO EXTERNAL CONTROL PORT

JUMPER-J2:
IT MAKE CHANNEL ADDRESS SELECTION FROM 4 CHANNEL TO 8 CHANNEL.THIS JUMPER USETO CONNET MULTIPLEXED ADDRESS LINE OF ADD_C PIN TO GROUD OR TO CONNECT IT TO MICROCONTROLLER.

CONNECT ADC ADDRESS LINE-C TO GROUND

NOTE: THIS VERSION OF MODULE WILL ONLY SUPPOR T TWO ANALOG INPUT CHANNEL S ADDRESSSING VIA ADC-ADD-A PIN CONTROL WHILE ADC-ADD-B AND ADC-ADD-C IS PERMANENTLY GROUDED. FULL ACCESS IS POSSIBLE VIA MINOR CHANGES. [CONNTECT TO VENDOR]

JUMPER-JP6 & LP5:


THESE JUMPERS ARE USED TO ADJUST THE SWING OF DAC OUTP PUT FROM Vref to +Vref, 0 to +Vref or Vref to 0 VIA DIFFERENT JUMPER COMBINATIONS.

This jumper setting will give DAC output voltage swing from Vref to +Vref.

This jumper setting will give DAC output voltage swing from 0 to +Vref.

This jumper setting will give DAC output voltage swing from Vref to 0.

General connection Arrangements of AD-DA Card and NI KIT -51:

JP2 AD-DA ADD-ON MODULE

M1

P1

JP1 NI KIT-51

JP3

M2

P3

JP2

Precaution is to be taken while connecting with NI KIT-51:

Using Digital to Analog Converter:


On kit jumper J5 should be configure for Port-1 as Output Port. On kit-51 jumper J2 should be configure three pins of Port-3 as Output Pins.

Using Analog to Digital Converter:


On kit jumper J5 should be configure for Port-1 as Input Port. On kit-51 jumper J2 should be configure three pins of Port-3 as Output Pins.

ADC Control:
Definitions
o Defines

Introduction
The ADC is used to monitor the analog input voltage . The code for handling the ADC is contained in ADCDemo folder in CD containing User Manual and other peripheral demo code.

#define DATA_PORT sbit ADC_ALE sbit ADC_EOC sbit ADC_RD sbit ADC_SOC sbit ADC_ADD_A sbit ADC_ADD_B sbit ADC_ADD_C

= P 1; //DATA BUS = P3^1; //HARDWARE OUTPUT PIN CONNECTED TO uC. = P3^2; //HARDWARE INPUT PIN CONNECTED TO uC. = P3^3; //HARDWARE OUTPUT PIN CONNECTED TO uC. = P3^4; //HARDWARE OUTPUT PIN CONNECTED TO uC. = P3^5; //HARDWARE OUTPUT PIN CONNECTED TO uC. = P3^6; //HARDWARE OUTPUT PIN CONNECTED TO uC. = P3^7; //HARDWARE OUTPUT PIN CONNECTED TO uC.

Function Documentation
o ReadADCValue
Read the ADC sampled count. Prototype: unsigned char ReadADCValue (unsigned char) Description: This function is called to read Analog count corresponding t o Analog input. It handles the ADC input channel selection by passing channel number to the function. Returns: Equivalent 8-bit count of Analog input.

Programming Example (c-code):


char ReadADCValue (unsigned char ChannelNo) { Unsigned char ADCVal; ADC_RD = 0; //ADC READ MODE DISABLE ADC_ADD_A = (ChannelNo & 0x01); //SET ADDRESS SELECTION BIT ADC_ADD_B = (ChannelNo & 0x02); //SET ADDRESS SELECTION BIT ADC_ADD_C = (ChannelNo & 0x04); //SET ADDRESS SELECTION BIT ADC_ALE = 1; //GIVE ADDRESS LETCH PULSE TO SELECT INPUT CHANNEL _nop_(); _nop_(); ADC_SOC = 1; //GIVE START-O F-CONVERSION PULSE _nop_(); ADC_ALE = 0; _nop_(); _nop_(); ADC_SOC = 0; _nop_(); _nop_(); while (ADC_EOC == 1); P1 = 0xFF; ADC_RD = 1; _nop_(); ADCVal = DATA_PORT; _nop_(); ADC_RD = 0; return ADCVal; }

//CONFIGURE DATA PORT AS INPUT //READ ADC COMMAND

//DISABLE ADC READ //return read count from ADC

DAC Control:
Definitions
o Defines

Introduction
The D AC is used to generate desire analog output. The code for handling the D AC is contained in DACDemo folder in CD containing User Manual and other peripheral demo code.

#define DATA_PORT sbit DAC_WR

= P 1; //DATA BUS = P3^0; //HARDWARE OUTPUT PIN CONNECTED TO uC.

Function Documentation
o WriteDACValue
Generate the desire analog output. Prototype: void WriteD ACValue (unsigned char) Description: This function is called to generate Analog output (-2.5V to 2.5V). range of analog output can be generated by hardware jumper. Returns: Equivalent 8-bit count of Analog input.

Programming Example(c-code):
char WriteD ACValue (unsigned char count) { Unsigned char ADCVal; P1 = 0 x00; //Configure Port as output. DAC_WR = 1; //output enable _nop_(); _nop_(); _nop_(); DATA_PORT = count; //write data to data port DAC_WR = 0; //output disable }

AD-DA MODULE SCHEMATIC

También podría gustarte