From owner-tigers@new.xnet2.com Thu May  2 00:56:24 2002
Received: (from majordom@localhost)
	by new.xnet2.com (8.11.6/8.11.6) id g425uOA08478
	for tigers-outgoing; Thu, 2 May 2002 00:56:24 -0500
Received: from kgtechsales.com (kgtechsales.com [66.111.75.212])
	by new.xnet2.com (8.11.6/8.11.6) with ESMTP id g425uLX08473
	for <tigers@xnet2.com>; Thu, 2 May 2002 00:56:23 -0500
Received: from web14107.mail.yahoo.com (web14107.mail.yahoo.com [216.136.172.137])
	by kgtechsales.com (8.11.0/8.11.0) with SMTP id g425vr885808
	for <tigers@kgsystems.com>; Thu, 2 May 2002 01:57:53 -0400 (EDT)
	(envelope-from alimozoun@yahoo.com)
Message-ID: <20020502055751.8540.qmail@web14107.mail.yahoo.com>
Received: from [217.219.9.7] by web14107.mail.yahoo.com via HTTP; Wed, 01 May 2002 22:57:51 PDT
Date: Wed, 1 May 2002 22:57:51 -0700 (PDT)
From: Ali Mozoun <alimozoun@yahoo.com>
Subject: Re: 
To: tigers@kgsystems.com
In-Reply-To: <000001c1e620$b8e1eb00$9801a8c0@teamsp.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-tigers@xnet2.com
Precedence: bulk
Reply-To: tigers@kgsystems.com

 
>From    : Alireza Mozoun
         
Email     : alimozoun@yahoo.com                
          

Hi,
I am working on a project to take analog signals from 
transmitters using Expansion modules  EP12-16AD and
tiny tiger
and send them to a PC. I have bought a couple of 
EP11-8AD and EP12-16AD .
I am testing the expansion module EP11-8AD
and EP12-8AD but it does not work. 
I have used your book example ANA3_8XV.tig and
analog3.tig
It displays the channel 0  with the value 9.9982
thru the channel  7: 9.998
The maximum value 9.99  display does not
changes regardless of  existance of expansion module.
I am using tiny tiger and I have used the following
pins :

         Port  : 6    
         D0 thru D7              
         L61 - L67
         PIN 1 thru pin 8
 connected to 45b- 42a of expansion module 

         Port  :  7
         L70 for  A0
         L71 for  A1
         L72 for  A2

connected to  pin  1a - 1b - 2a 
 
         Port :   8
         L 80  pin 13  connected for  control pin   RD
 
         L 81  pin 14  connected to WR 
         L 83   pin 16  for  HBEN                  :
PIN 16
         L 85    for CE 
        
        Which should be the same as CE mentioned in
book?!
   



 
         

 
I am using the  device driver analog3 and
I have used  the following lines :

'--------------------------------------------------------------------
'Name: ANA3_8XV.TIG
'--------------------------------------------------------------------
TASK Main                               'begin task
MAIN
  BYTE EVER, K
  REAL V, W
  ARRAY Value(8) OF WORD                'array of type
WORD
DIR_PORT 8,0
'install LCD-driver (BASIC-Tiger)
 INSTALL DEVICE #1, "LCD1.TDD"
'install LCD-driver (TINY-Tiger)
'INSTALL DEVICE #1, "LCD1.TDD", 0, 0, 0, 0, 0, 0, 80h,
8
 INSTALL DEVICE #4, "ANALOG3.TDD",& 'install
ADC-driver


    6, &      'port for data bus   (P1) 
    8, &      'port for ctrl lines (P2)
    0, &      'pin number for -RD  (P3)
    1, &      'pin number for -WR  (P4)
    3, &      'pin number for HBEN (P5)
    7, &      'pin number for -CE  (P6) I assume this
is CS
    1, &     'speed reduction =  (no)
    0, &      'reserved parameter always 0
    0, &      'no. of address lines = default
    7, &      'port for address lines = default
    0 &       'bit position of address lines = default
  

FOR K= 0 TO 7                   '0 channels
      VALUE(K) = 0          'read value from ADC
next


PRINT #1,"EP11_001 - Test"
  PUT #4, #0, "00 00 00 00 00 00 00 00"% 'ch0...7: all
0...5V
                                       'set factors
for 4 channels

  FOR EVER = 0 TO 0 STEP 0             'endless loop
    FOR K= 0 TO 7                   '0 channels
      GET #4, #K, 2, VALUE(K)          'read value
from ADC
                                        '
        PRINT #1, "<1>";                   'clear
screen

      USING "UD<1><1>   0.0.0.0.1"
      PRINT_USING #1, 0;":";            'channel no. +
value
      USING "NF<1><1> <3> 0 0 0 0 0 0 0 1.3 0 0 0 0 0
0 0"
      PRINT_USING #1, VALUE(0);               
'channel no. + value

    NEXT
                                   'next channel
    WAIT_DURATION 2000                  'wait 100 ms
  NEXT
END                                    'end task MAIN

I have used your circuit drawing  shown on page 312 of

installation and harware book . But, this circuit
drawing does 
not use the same pot as your other device driver ana3 
parameter  settings. 
The circuitry shown on page 312 chooses port 3 
for control signal and the device driver uses 
port 8 . Another thing is the control signal 
HBEN  . There is no information whatsoever
in the manuals or software on how to 
use this pin.  Another thing is that
the L73 is used for the HBEN but in the
device driver Analog3 the HBEN is used in
the same port as the control signals.  
As you may notice
I have assumed that the address line used are
port 7.
I have used the following lines :
Please, if possible 
send me the programming lines to install the 
the device driver as shown in the page 312 of your
book. 
Or let me know what I have done wrong and what is 
needed to be done? 
Or send me the programming lines without 
using the device driver.
If possible, please send me the cicuitry for 
the Example : ANA3_8XV.TIG   My assumption is that 
it is different from page 312.
Another question I have the RD,WR and CS are inverted
in your drawing . 
Do I need an inverter 
If yes what kind of inverter do I need?
Thank you for your earliest response

A. Moozun 


lup/
> ===> Purchase Tigers (USA):
http://www.kgtechsales.com


__________________________________________________

===> Contact mail-list administrator: webmaster@Kgsystems.com
===> Tiger info: http://www.industrialcontroller.com/wilke/
===> Unsubscribe or view archive: http://www.kgsystems.com/tigergroup/
===> Purchase Tigers (USA): http://www.kgtechsales.com

From owner-tigers@new.xnet2.com Tue May  7 15:48:00 2002
Received: (from majordom@localhost)
	by new.xnet2.com (8.11.6/8.11.6) id g47Km0819221
	for tigers-outgoing; Tue, 7 May 2002 15:48:00 -0500
Received: from kgtechsales.com (kgtechsales.com [66.111.75.212])
	by new.xnet2.com (8.11.6/8.11.6) with ESMTP id g47KlxC19216
	for <tigers@xnet2.com>; Tue, 7 May 2002 15:47:59 -0500
Received: from new.xnet2.com (adsl-065-081-107-162.sip.mem.bellsouth.net [65.81.107.162])
	by kgtechsales.com (8.11.0/8.11.0) with ESMTP id g47Koa876961
	for <tigers@kgsystems.com>; Tue, 7 May 2002 16:50:36 -0400 (EDT)
	(envelope-from tigermail@xnet2.com)
Received: from localhost (tigermail@localhost)
	by new.xnet2.com (8.11.6/8.11.6) with ESMTP id g47Klql19205
	for <tigers@kgsystems.com>; Tue, 7 May 2002 15:47:52 -0500
Date: Tue, 7 May 2002 15:47:52 -0500 (CDT)
From: Wilson Smith <tigermail@xnet2.com>
To: <tigers@kgsystems.com>
Subject: Test message -- please ignore
Message-ID: <Pine.LNX.4.33.0205071547300.18429-100000@new.xnet2.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-tigers@xnet2.com
Precedence: bulk
Reply-To: tigers@kgsystems.com

Please ignore. 

Thank you,

Wilson Smith




===> Contact mail-list administrator: webmaster@Kgsystems.com
===> Tiger info: http://www.industrialcontroller.com/wilke/
===> Unsubscribe or view archive: http://kgsystems.xnet2.com
===> Purchase Tigers (USA): http://www.kgtechsales.com

