Jump to content

rsd3k

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

rsd3k's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. i'm trying to build a labview program for parallel port adc circuit. following is the procudeure i want use. Frame 1:- Data = inport(Read_Port); /* Read the digital data */ Data = Data AND 0xF0; /* Get Higher Nibble */ Data = Data EOR 0x80; Frame 2:- out_data = out_data OR Data_Parallel_Low; /* Get Lower Nibble */ outportb(Channel_Port,out_data); Frame 3:- temp = inport(Read_Port); read the parallel port for lower nibble temp = (temp & 0xF0 ); temp = temp ^ 0x80 ; temp = temp >> 4 ; Data = Data | temp; i'm thinking of saving the result in the 1st frame into a variable and use it in the 3rd frame . Just wondering is this the correct method.If so how can save the out put of the OR gate in to a variable pls find the attached VI thanks, Download File:post-6124-1160836794.vi
  2. G"day. I'm trying to build a mulitimeter which can conncet to a PC through the parallel port.(LPT 1) I have written a simple circuit using C .( 16 bit dos application which has difficulties in running in windows XP) I want to get a decent user interface which supports windows XP. I have very limited knowledge in LAb view. IF annyone could help me to convert my c porgram that would be great. pls find the attached 1. c program (source code + exe file) 2. circuit description.. thanks, ryan libpropPage_JRD_ClassPageTemplate.vi Download File:post-6124-1160664488.zip
  3. thanks alot for the max 168 based program.unfortunately max 168 chip ic isn't available in australia. i ordered it through the internet and it will take up to 3 weeks for shipment. i 'll let u know the out come once the circuit is build.
  4. g'day, i'm trying to build a monitor charateristics(voltage ,current,temperature) of a battery charger from a PC. I got limited knowledge in programing .I have bulid a analog to digital conversion circuit which can feed the 12bit digital signals in to a parallel port. I found a sample labview program and circuit necessary for my requirement from an article of EDN magazine. http://www.edn.com/article/CA220405.html?industryid=2817 pls find the attached newmulti_max187.Vi file but i get few errors (logical) when i run the program. Could any one help me out to fix this problem or suggest another method to build a new program to accquire analog signals and display the votage,current readings. ps.i don't have a DAQ card because we are not allowed to use it as i'm doin this for my university project. If i can give 12 bit digital signal to parallel port how can i make a software to read them and display the values. ----------following is the description of the software--- The circuit in Figure 1 represents a simple and cost-effective way to obtain eight-channel analog-signal acquisition through a PC's LPT port. IC1, a 12-bit, serial-output MAX187 ADC, operates from a single 5V supply and accepts analog inputs of 0 to 5V. IC2, an eight-channel MAX338 analog multiplexer, also operates from a single 5V supply. The circuit acquires eight analog inputs and displays eight independent digital readouts in a Microsoft Windows environment. The MAX338 connects one of eight inputs to a common output through the control of a 3-bit binary address. You derive the positive supply, V+, and the logic supply, VL, by using IC3, a simple, ICL7660-based voltage-doubler circuit. The ICL7660 is a negative-voltage converter. The bits D0 through D3 (pins 2 to 4 on the connector) provide the channel-selection function. The software allows for channel selection through the Data port (0x378) and collects the ADC's serial data through one of the bits in the LPT1 Status port (0x379). (The Status port uses Pin 15 on the connector, the LPT port's Error input.) Once the ADC completes the conversion, its Data Ready pin switches from high to low. The DRDY output of the ADC connects to the LPT's port Pin 10 on the connector (the Acknowledge input). The controlling software senses the DRDY signal through the Status port (0x379) on Pin 10 and sets the ADC's chip-select pin to low, through Pin 1 (Data Strobe output) in the Control port (0x37A). The routine then receives the MSB (most-significant bit) from the ADC. After receiving the MSB, the software generates the serial-clock output (SCLK) through Pin 14 (Auto Line Feed output) in the Control port (0x37A) and then receives the remaining 11 bits from the ADC. Upon reception of all 12 bits, the input goes high to enable the ADC to accommodate new data in its tristate output buffer. The sequence continues, and the digital panel meter displays the acquired data. One input of the LPT port (control port 0x37A, Pin 15) acquires the serial, 12-bit data. The controlling software shifts most of the bits left, according to the bit position, and some of the bits right (because the serial data is in the fourth bit of the data in the status port (0x379)). The software sets other bits to zero. Finally, a logical OR function of the 12 bytes/words delivers the 12-bit pattern of the acquired signal. For example, the 12th bit (MSB) appears as the first bit for transfer. This bit must be set as the 12th position of the word; hence, the data received through the fourth bit, D3, must shift left through seven positions to be assigned as an 11th bit, and so on. In this sequence of data structuring, once the fourth bit (LSB 4) of the 12-bit pattern appears, it needs no shifting, because it is an actual D3 bit. The third bit, D2, requires shifting in the right position by one, and the D1 and D0 bits need right-shifting by two and three, respectively. This method of shifting and finally performing a logical-OR operation delivers the exact 12-bit data pattern from the serial data received through one line of the parallel port. D0 through D3 bits in the Data port (0x378) enable the channel selection. For each channel selection, the cited sequence of acquiring the data and conditioning it provides eight independent digital readouts. In the program, a time delay of 125
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.