DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 5371|回复: 8
打印 上一主题 下一主题

ALL-03 Hardware I/O Configuration

[复制链接]
跳转到指定楼层
楼主
发表于 2014-7-11 18:28:48 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

                     ALL-03 Hardware I/O Configuration
                     *********************************


This document describes the I/O configuration of the ALL-03 device
programmer. This information would be of use in the development of
special purpose software for the ALL-03 (and possibly also for the
Expro-60/80).


1. I/O Control Concept:
----------------------


Some basic concepts need to be explained.  


The main control unit is on the adapter card (SAC-201).


There are two 8-bit I/O registers on the SAC-201 that are able to
control all I/O devices on the ALL-03 main module.


Register name    I/O address
------------------------------------
IDPORT           base address+0
DATAPORT         base address+2


The base address is the I/O address of the SAC-201 as defined by DIP
switches 1 and 2. These switches allow a choice of 16 possible base
addresses from 200h to 2f0h (default is 2e0).


Every device on the ALL-03 main module can be controlled by writing
its ID byte to the IDPORT and then reading from or writing to the
DATAPORT (the ID bytes of the various devices will be shown below).


                          TABLE 2
                          ********


Available control pins on test-socket:


1. VOPENID:        1, 5, 7, 9 to 32.


2. VHHENID:        9 to 32.


3. VCCENID:        40, 36, 34, 32, to 26, 9, 7, 5, 1.


4. VHHENCID:       32 to 28.


5. TTLID:          all 40 pins can be defined as inputs or outputs.


Note:  Devices that cannot use the previous pin definitions will
       require a special purpose external adapter.



Example: We wish to write the value 7fh to #1 D/A device (ID = e5h).


             Assembly Language
             -----------------


idport      equ      2e0h
dataport    equ      2e2h


            mov      ax,0e5h          ;id number setting
            mov      dx,idport
            out      dx,al
            jmp      $+2              ;device recovery time


            mov      ax,7fh           ;data writing
            mov      dx,dataport
            out      dx,al
            jmp      $+2              ;device recovery time


==============================================================
               C Language


#define       idport 0x02e0
#define       dataport 0x02e2


Outp (idport, 0xe5)        ;/* ID number setting */
Outp (dataport, 0x7f)      ;/* data writing */


==============================================================


2. ALL-03 Device ID Mapping and Definition:
------------------------------------------


The following describes each 8-bit device and its associated ID bytes:


  Power Source D/A Voltage Level Setting Device:
  ---------------------------------------------


  e5h :    #1 D/A named VOPID, full scale is 25.5 volt (400 ma),
           resolution is 0.1 volt, minimum voltage setting is 10.2
           volt


           Example: Writing 255 to device e5h will set the #1 D/A to
                    25.5 volt, writing 102 to e5h will set the D/A to
                    10.2 volt.


  e6h      #2 D/A named VHHID, full scale is 15.3 volt (400 ma)
           resolution is 0.06 volt, minimum voltage setting is 5.1
           volt


           Example: Writing 255 to device e6h will set the #2 D/A to
                    15.3 volt, writing 85 to e6h will set the D/A to
                    5.1 volt.


  e7h      #3 D/A named VCCID, full scale is 10.2 volt (1A)
           resolution is 0.04 volt, minimum voltage setting is 0 volt


           Example: Writing 255 to device e7h will set the #2 D/A to
                    10.2 volt, writing 0 to e7h will set the D/A to 0
                    volt.

The levels of each power source can be set by the above three D/A
devices. However, additional devices are required to apply these
voltages to the specified test-socket pins.


TTL Level I/O Device:
--------------------


  e0h           TTLID+0
  e1h           TTLID+1
  e2h           TTLID+2
  e3h           TTLID+3
  e4h           TTLID+4


Total 40 bits assigned to 40 pins on test-socket.
LSB of e0h is assigned to pin 1, and MSB of e4h is assigned to pin 40.
Each pin can be a TTL level input or output. Before inputting from the
desired pin, the user must output a high to that pin.


Example: After writing an ID byte (TTLID+i) to the IDPORT, one can
         then output 8 bits to the DATAPORT or input 8 bits from the
         DATAPORT.


VOP Level Output Control Device:
-------------------------------


  e8h           VOPENID+0
  e9h           VOPENID+1
  eah           VOPENID+2
  ebh           VOPENID+3
  ech           VOPENID+4


Total 40 bits assigned to 40 pins on test-socket.
LSB of e8h is assigned to pin 1, and MSB of ech is assigned to pin 40.


Writing a high to a particular bit will apply the VOP source to the
relevant test-socket pin. Writing a low will disable the VOP source
output to that pin.


Example: After writing ID byte VOPENID+1 to the IDPORT, and then
         outputting 8 bit data to the DATAPORT, VOP will be applied to
         the relevant test-socket pins 9 through 16 via a 22 ohm
         current limiting resistor.


Note:    1. Test-socket pins 2,3,4,6,8 and pins 33 to 40 have no VOP
            control circuit, so VOP cannot be output to these pins
            even though the relevant bit may have been set to high.


         2. VOP must not be applied to any pin for more than one hour.


VHH Level Output Control Device:
-------------------------------


  f0h           VHHENID+0
  f1h           VHHENID+1
  f2h           VHHENID+2
  f3h           VHHENID+3
  f4h           VHHENID+4


Total 40 bits assigned to 40 pins on test-socket.
LSB of f0h is assigned to pin 1, and MSB of f4h is assigned to pin 40.


Writing a high to a particular bit will apply the VHH source to the
relevant test-socket pin. Writing a low will disable the VHH source
output to that pin.


Example: After writing ID byte VHHENID+1 to the IDPORT, and then
         outputting 8 bit data to the DATAPORT, VHH will be applied to
         the relevant test-socket pins 9 through 16 via a 22 ohm
         current limiting resistor.


Note:    1. Test-socket pins 1 to 8 and pins 33 to 40 have no VHH
            control circuit, so VHH cannot be output to these pins
            even though the relevant bit may have been set to high.


         2. VHH must not be applied to any pin for more than one hour.


VCC Level Output Control:
------------------------


  edh           VHHENID+0
  eeh           VHHENID+1


Total 16 bits assigned to 16 pins on test-socket.


  edh b0 :  pin 40            eeh  b0 :  pin 27
      bl :  pin 36                 bl :  pin 26
      b2 :  pin 34                 b2 :  pin  9
      b3 :  pin 32                 b3 :  pin  7
      b4 :  pin 31                 b4 :  pin  5
      b5 :  pin 30                 b5 :  pin  1
      b6 :  pin 29                 b6 :  not used
      b7 :  pin 28                 b7 :  not used


Writing a high to a particular bit will apply the VCC source to the
relevant test-socket pin. Writing a low will disable the VCC source
output to that pin.


Example: After writing ID byte VCCENID+0 to the IDPORT, and then
         outputting 8 bit data to the DATAPORT, VCC will be directly
         applied to the relevant test-socket pins 28 through 40.


VHH Level Output to Extra Pins Control Device:
---------------------------------------------


The difference between these extra pins and the previously listed VHH
pins is that these extra pins have no 22 ohm current limiting resistor
in series with the VHH source. This is to permit some PAL VCC pins to
be driven at high voltage (over 12 volts) and high current.


  f5h           VHHENCID+0
  f6h           VHHENCID+1


Total 16  bits assigned to 16 pins on test-socket.


  f5h b0 :  not used         f6h : not used now
      bl :  not used
      b2 :  not used
      b3 :  pin 32
      b4 :  pin 31
      b5 :  pin 30
      b6 :  pin 29
      b7 :  pin 28


Writing a high to a particular bit will apply the VHH source to the
relevant test-socket pin. Writing a low will disable the VHH source
output to that pin.


Example: After writing ID byte VCCENCID+0 to the IDPORT, and then
         outputting 8 bit data to the DATAPORT, VHH will be directly
         applied to the relevant test-socket pins 28 through 32.


"Other Pins" Control Device:
---------------------------


Some additional pins not previously specified will be listed here.


  efh           OTHERENID


Total 8 bits assigned to 9 pins on test-socket


  efh  b0 :   low will set pin 20 to ground
              high will set pin 11, 30 to ground
         
       bl :   hi will output VOP (source - 2.4) volt to pin 7.
              low will disable output.


       b2 :   hi will output VOP (source - 2.4) volt to pin 25.
              low will disable output.


       b3 :   high will output oscillator TTL level to pins 2 and 3.
              Each pin is the inverse of the other.
              low will disable output.


       b4 :   high will output oscillator TTL level to pins 18 and 19.
              Each pin is the inverse of the other.
              low will disable output.


       b5 :   high will select 4.432 mhz oscillator
              low will select 2.216 mhz oscillator


       b6 :   not used


       b7 :   not used


Note: 1. All devices are reset to a low output at PC power on.


      2. Voltage drops exist between the power sources and the test
         socket pins. These voltage drop factors need to be included
         in the D/A power source level settings.


         These voltage drops are:


          VCC drop : 0.6 v, (= 15 steps)
          VHH drop : 0.6 v, (= 10 steps)
          VOP drop : 0.6 v, (=  6 steps)


      Example: The following code sets the #1 D/A to 21 volt:


          outp (IDPORT, VOPID)
          outp (DATAPORT, 210+6)


      3. Before inputting TTL levels, or outputting VOP, VHH, VCC
         voltages, the user must output a high to the specified pin.
         Otherwise, the relevant TTL input, or the specified supply
         voltage will be pulled down to ground. This will result in
         damage to the affected supply.


      4. In the version(?) we supply the source listing for
         TESTPRO.EXE. TESTPRO source is a good sample file for the
         user who wishes to develop his own software to program new
         devices.
配合下面的简图看


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
沙发
发表于 2019-3-29 10:48:50 | 只看该作者
不错,谢谢分享
板凳
发表于 2019-4-5 21:45:40 | 只看该作者
看这个还的去学习英文???
地板
 楼主| 发表于 2019-4-6 09:18:14 | 只看该作者
zjs423315 发表于 2019-4-5 21:45
看这个还的去学习英文???

国内是不会有什么这些相关的资料的,要想学到东西,不光要学英文呢
6#
发表于 2021-10-6 12:39:37 | 只看该作者
ALL-03 硬件 I/O 配置
                     *************************************


本文档介绍了硬件 I/O 配置ALL-03 器件
编程器。该信息可
用于为 ALL-03(也可能用于
Expro-60/80)开发专用软件。


1. I/O 控制概念:
----------------------


需要解释一些基本概念。  


主控制单元位于适配卡 (SAC-201) 上。


SAC-201 上有两个 8 位 I/O 寄存器,可以
控制 ALL-03 主模块上的所有 I/O 设备。


寄存器名称 I/O 地址
------------------------------------
IDPORT 基地址+0
DATAPORT 基地址+2


基地址是 SAC-201 的 I/O 地址,由 DIP
开关 1 和 2定义。这些开关允许
从 200h 到 2f0h的 16 个可能的基地址中进行选择(默认为2e0)。


ALL-03 主模块上的每个设备都可以通过将
其 ID 字节写入IDPORT 然后读取或写入
DATAPORT 来控制(各种设备的 ID 字节将在下面显示)。


                          表 2
                          ********


测试插座上的可用控制引脚:


1. VOPENID:


1、5、7、9 至


32。2 . VHHENID:9 至32。3. VCCENID:40、36、34、 32、26、9、7、5、1。


4. VHHENCID:32 到 28。


5. TTLID:所有 40 个引脚都可以定义为输入或输出。


注意:不能使用先前引脚定义的设备将
       需要一个特殊用途的外部适配器。



示例:我们希望将值 7fh 写入 #1 D/A 设备(ID = e5h)。


             汇编语言
             -----------------


idport equ 2e0h dataport
equ 2e2h


            mov ax,0e5h ;id 号码设置
            mov dx,idport
            out dx,al
            jmp $+2 ;设备恢复时间


            mov ax,7fh ;数据写入
            mov dx, dataport
            out dx,al
            jmp $+2 ;设备恢复时间


====================================== ======================
               C 语言


#define idport 0x02e0
#define dataport 0x02e2


Outp (idport, 0xe5) ;/* ID 号设置 */
Outp ( dataport, 0x7f) ;/* 数据写入 */


======================================== ========================


2. ALL-03 设备 ID 映射和定义:
---------------- --------------------------


下面描述了每个 8 位器件及其相关的 ID 字节:


  电源 D/A 电压电平设置器件:
  ---------------------------------------------


  e5h:#1 D/A 名为 VOPID,满量程为 25.5 伏(400 毫安),
           分辨率为 0.1 伏,最小电压设置为 10.2
           伏


           示例:将 255 写入设备 e5h 会将 #1 D/A 设置为
                    25.5 伏,将 102 写入 e5h 会将 D/A 设置为
                    10.2 伏。


  e6h #2 D/A 名为 VHHID,满量程为 15.3 伏(400 毫安),
           分辨率为 0.06 伏,最小电压设置为 5.1
           伏


           示例:将 255 写入设备 e6h 会将 #2 D/A 设置为
                    15.3 伏,写入 85到 e6h 会将 D/A 设置为
                    5.1 伏。


  e7h #3 D/A 名为 VCCID,满量程为 10.2 伏 (1A)
           分辨率为 0.04 伏,最小电压设置为 0 伏


           示例:将 255 写入设备 e7h 会将 #2 D/A 设置为
                    10.2 伏,将 0 写入e7h 会将 D/A 设置为 0
                    伏。

每个电源的电平可以通过上述三个D/A
设备进行设置。但是,需要额外的设备将这些
电压施加到指定的测试插座引脚。


TTL 电平 I/O 设备:
--------------------


  e0h TTLID+0
  e1h TTLID+1
  e2h TTLID+2
  e3h TTLID+3
  e4h TTLID+4


总共 40 位分配给测试插座上的 40 个引脚。
e0h 的LSB 分配给引脚1,e4h 的MSB 分配给引脚40。
每个引脚都可以是TTL 电平输入或输出。在从
所需引脚输入之前,用户必须向该引脚输出高电平。


示例:将 ID 字节(TTLID+i)写入 IDPORT 后,可以
         向 DATAPORT 输出 8 位或从
         DATAPORT输入 8 位。


VOP 电平输出控制设备:
-------------------------------


  e8h VOPENID+0
  e9h VOPENID+1
  eah VOPENID+2
  ebh VOPENID+3
  ech VOPENID+4


总共 40 位分配给测试插座上的 40 个引脚。
e8h 的 LSB 分配给引脚 1,而 ech 的 MSB 分配给引脚 40。


向特定位写入高电平会将 VOP 源应用到
相关的测试插座引脚。写低将禁用 VOP 源
输出到该引脚。


举例:将ID字节VOPENID+1写入IDPORT后,再向
         DATAPORT输出8位数据后,VOP将
         通过22欧
         限流电阻施加到相关的测试座引脚9~16 。


注意: 1. 测试座的2、3、4、6、8、33~40脚没有VOP
            控制电路,所以
            即使相关位被置为高电平也不能输出VOP到这些管脚。


         2. VOP 不得应用于任何引脚超过一小时。


VHH 电平输出控制设备:
-------------------------------


  f0h VHHENID+0
  f1h VHHENID+1
  f2h VHHENID+2
  f3h VHHENID+3
  f4h VHHENID+4


总共 40 位分配给测试插座上的 40 个引脚。
f0h 的 LSB 分配给引脚 1,而 f4h 的 MSB 分配给引脚 40。


向特定位写入高电平会将 VHH 源应用到
相关的测试插座引脚。写入低电平将禁用该
引脚的 VHH 源输出。


示例:将 ID 字节 VHHENID+1 写入 IDPORT 后,然后
         将 8 位数据输出到 DATAPORT,VHH 将
         通过一个 22 欧姆的
         限流电阻应用于相关的测试插座引脚 9 到 16 。


注意: 1. Test-socket 引脚 1 到 8 和引脚 33 到 40 没有 VHH
            控制电路,因此
            即使相关位可能已设置为高,VHH 也无法输出到这些引脚。


         2. VHH 不得应用于任何引脚超过一小时。


VCC 电平输出控制:
------------------------


  edh VHHENID+0
  eeh VHHENID+1


总共 16 位分配给测试插座上的 16 个引脚。


  edh b0:引脚 40 eeh b0:引脚 27
      bl:引脚36 bl:引脚26
      b2:引脚34 b2:引脚9
      b3:引脚32 b3:引脚7
      b4:引脚31 b4:引脚5
      b5:引脚30 b5:引脚1
      b6:引脚29 b6:未使用
      b7:引脚 28 b7:未使用


向特定位写入高电平会将 VCC 源应用到
相关的测试插座引脚。写入低电平将禁用该
引脚的 VCC 源输出。


示例:将 ID 字节 VCCENID+0 写入 IDPORT 后,再
         输出 8 位数据到 DATAPORT,VCC 将直接
         应用于相关的测试插座引脚 28 到 40。


VHH 电平输出到额外引脚控制设备:
----------------------------- ----------------


这些额外的引脚与前面列出的 VHH
引脚之间的区别在于,这些额外的引脚没有
与 VHH 源串联的22 欧姆限流电阻。这是为了允许
在高电压(超过 12 伏)和高电流下驱动某些 PAL VCC 引脚。


  f5h VHHENCID+0
  f6h VHHENCID+1


总共 16 位分配给测试插座上的 16 个引脚。


  f5h b0:未使用 f6h:现在未使用
      bl:未使用
      b2:未使用
      b3:引脚 32
      b4:引脚 31
      b5:引脚 30
      b6:引脚 29
      b7:引脚 28


向特定位写入高电平会将 VHH 源应用到
相关的测试插座引脚。写入低电平将禁用该
引脚的 VHH 源输出。


示例:将 ID 字节 VCCENCID+0 写入 IDPORT,然后将
         8 位数据输出到 DATAPORT,VHH 将直接
         应用于相关的测试插座引脚 28 至 32。


“其他引脚”控制设备:
---- -----------------------


一些先前未指定的其他引脚将在此处列出。


  efh OTHERENID


总共 8 位分配给测试插座上的 9 个引脚


  efh b0 :低会将引脚 20 设置为接地
              高会将引脚
         
       11、30设置为接地bl:高将输出 VOP(源 - 2.4)伏到引脚 7。
              低将禁用输出。


       b2:高将输出 VOP(源 - 2.4)伏到引脚 25。
              低将禁用输出。


       b3 : 高电平将输出振荡器 TTL 电平到管脚 2 和 3。
              每个管脚互为反相。
              低将禁用输出。


       b4 : 高电平将输出振荡器 TTL 电平到管脚 18 和 19。
              每个管脚互为反相。
              低将禁用输出。


       b5 : 高将选择 4.432 mhz 振荡器
              低将选择 2.216 mhz 振荡器


       b6 : 未使用


       b7 : 未使用


注意: 1. 所有设备在 PC 开机时复位为低输出。


      2. 电源与测试
         插座引脚之间存在压降。这些压降系数需要包含
         在 D/A 电源电平设置中。


         这些电压


          降为:VCC 降:0.6 v,(= 15 步)
          VHH 降:0.6 v,(= 10 步)
          VOP 降:0.6 v,(= 6 步)


      示例:以下代码设置#1 D/A到 21 伏:


          outp (IDPORT, VOPID)
          outp (DATAPORT, 210+6)


      3. 输入 TTL 电平之前,或输出 VOP、VHH、VCC
         电压,用户必须向指定引脚输出高电平。
         否则,相关的 TTL 输入或指定的电源
         电压将被下拉至地。这将导致
         受影响的电源损坏。


      4. 在版本(?) 中,我们提供了
         TESTPRO.EXE的源代码列表。
         对于希望开发自己的软件来对新
         设备进行编程的用户,TESTPRO 源是一个很好的示例文件。
配合下面的简图看
8#
发表于 2021-12-1 08:20:48 | 只看该作者
谢谢分享,谢谢分享,谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|文字版|手机版|DIY编程器网 ( 桂ICP备14005565号-1 )

GMT+8, 2024-4-19 11:24 , 耗时 0.100465 秒, 22 个查询请求 , Gzip 开启.

各位嘉宾言论仅代表个人观点,非属DIY编程器网立场。

桂公网安备 45031202000115号

DIY编程器群(超员):41210778 DIY编程器

DIY编程器群1(满员):3044634 DIY编程器1

diy编程器群2:551025008 diy编程器群2

QQ:28000622;Email:libyoufer@sina.com

本站由桂林市临桂区技兴电子商务经营部独家赞助。旨在技术交流,请自觉遵守国家法律法规,一旦发现将做封号删号处理。

快速回复 返回顶部 返回列表