Documentos de Académico
Documentos de Profesional
Documentos de Cultura
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
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
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
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.
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]
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.
M1
P1
JP1 NI KIT-51
JP3
M2
P3
JP2
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.
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.
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 }