Compaq RS-232C инструкция обслуживания

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

Идти на страницу of

Хорошее руководство по эксплуатации

Законодательство обязывает продавца передать покупателю, вместе с товаром, руководство по эксплуатации Compaq RS-232C. Отсутствие инструкции либо неправильная информация, переданная потребителю, составляют основание для рекламации в связи с несоответствием устройства с договором. В законодательстве допускается предоставлении руководства в другой, чем бумажная форме, что, в последнее время, часто используется, предоставляя графическую или электронную форму инструкции Compaq RS-232C или обучающее видео для пользователей. Условием остается четкая и понятная форма.

Что такое руководство?

Слово происходит от латинского "instructio", тоесть привести в порядок. Следовательно в инструкции Compaq RS-232C можно найти описание этапов поведения. Цель инструкции заключается в облегчении запуска, использования оборудования либо выполнения определенной деятельности. Инструкция является набором информации о предмете/услуге, подсказкой.

К сожалению немного пользователей находит время для чтения инструкций Compaq RS-232C, и хорошая инструкция позволяет не только узнать ряд дополнительных функций приобретенного устройства, но и позволяет избежать возникновения большинства поломок.

Из чего должно состоять идеальное руководство по эксплуатации?

Прежде всего в инструкции Compaq RS-232C должна находится:
- информация относительно технических данных устройства Compaq RS-232C
- название производителя и год производства оборудования Compaq RS-232C
- правила обслуживания, настройки и ухода за оборудованием Compaq RS-232C
- знаки безопасности и сертификаты, подтверждающие соответствие стандартам

Почему мы не читаем инструкций?

Как правило из-за нехватки времени и уверенности в отдельных функциональностях приобретенных устройств. К сожалению само подсоединение и запуск Compaq RS-232C это слишком мало. Инструкция заключает ряд отдельных указаний, касающихся функциональности, принципов безопасности, способов ухода (даже то, какие средства стоит использовать), возможных поломок Compaq RS-232C и способов решения проблем, возникающих во время использования. И наконец то, в инструкции можно найти адресные данные сайта Compaq, в случае отсутствия эффективности предлагаемых решений. Сейчас очень большой популярностью пользуются инструкции в форме интересных анимаций или видео материалов, которое лучше, чем брошюра воспринимаются пользователем. Такой вид инструкции позволяет пользователю просмотреть весь фильм, не пропуская спецификацию и сложные технические описания Compaq RS-232C, как это часто бывает в случае бумажной версии.

Почему стоит читать инструкции?

Прежде всего здесь мы найдем ответы касательно конструкции, возможностей устройства Compaq RS-232C, использования отдельных аксессуаров и ряд информации, позволяющей вполне использовать все функции и упрощения.

После удачной покупки оборудования/устройства стоит посвятить несколько минут для ознакомления с каждой частью инструкции Compaq RS-232C. Сейчас их старательно готовят или переводят, чтобы они были не только понятными для пользователя, но и чтобы выполняли свою основную информационно-поддерживающую функцию.

Содержание руководства

  • Страница 1

    COM- 2(PC)F RS-232C (2ch) Serial I/O Board User ’ s Guide[...]

  • Страница 2

    COM-2(PC)F i Copyright Copyright 1996 CONTEC Co., LTD. ALL RIGHTS RESERVED No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC Co., LTD. CONTEC Co., LTD. makes no commitment to update or keep current the information contained in this document. The information in this document is subj[...]

  • Страница 3

    COM-2(PC)F ii Product Configuration - COM - 2 (PC) F Board …1 - Sample Program Diskette (3.5inch/1.44MB) …1 - User's Guide ( T his B ooklet)…1 Unpacking: This board is specially packed in an anti-static bag to prevent damage in shipping. Check the contents to make sure that you have everything listed above. If you do not have all the ite[...]

  • Страница 4

    COM-2(PC)F iii Table of Contents Copyright ............................................................................ i Trademarks ........................................................................ i Product Configuration ..................................................... ii 1. Introduction ...............................................[...]

  • Страница 5

    COM-2(PC)F iv Mounting Method ............................................................ 28 Connecting the External Devices ................................... 31 Connecting the Cable ...................................................... 32 4. System Reference .................................................... 33 Specifications ...............[...]

  • Страница 6

    COM-2(PC)F v List of Figures Figure 3.1. Names of Board Components and Default Factory Settings ..................................................................... 23 Figure 3.2. I/O Address DIP Switch ............................................ 25 Figure 3.3. Interrupt Level Settings ............................................. 26 Figure 3.4. [...]

  • Страница 7

    COM-2(PC)F vi Figure 6.11. Flowchart of Sample Program 9 ................................ 53 Figure 6.12. Flowchart of Sample Program10 ............................... 54 Figure 6.13. Flowchart of Sample Program 11 .............................. 55 Figure 6.14. IVR Bit Function in Enhanced Mode ........................ 61 Figure 6.15. Difference in[...]

  • Страница 8

    COM-2(PC)F vii List of Tables Table 2.1. COM Port Support for V arious Programming Languages ................................................................. 21 Table 3.1. I/O Address Settings ................................................. 25 Table 3.2. Example Compatible Mode Settings ......................... 27 Table 4.1. Specifications ....[...]

  • Страница 9

    COM-2(PC)F viii[...]

  • Страница 10

    Introduction COM-2(PC)F 1 1. Introduction About the COM- 2(PC)F Board The COM- 2(PC)F is an IBM PC/ A T ISA-Bus add-on interface board for multi-channel RS-232C asynchronous communications. It features two serial communication ports and a programmable communication rate ranging from 50 to 115,200 bps for communication or modem control. Support Soft[...]

  • Страница 11

    Introduction COM-2(PC)F 2 Limited Three- Y ear Warranty CONTEC Interface boards are warranted by CONTEC Co., LTD to be free from defects in material and workmanship for up to three years from the date of purchase by the original purchaser. Repair will be free of charge only when this device is returned freight prepaid with a copy of the original in[...]

  • Страница 12

    Introduction COM-2(PC)F 3 About the Manual This manual consists of the following chapters : Chapter 1 Introduction Chapter 2 How to Use the Board Chapter 3 Hardware Setup Chapter 4 I/O Ports and Registers Chapter 5 System Reference Chapter 6 Troubleshooting Chapter 7 Index[...]

  • Страница 13

    Introduction COM-2(PC)F 4[...]

  • Страница 14

    How to Use the Board COM-2(PC)F 5 2. How to Use the Board Compatible Mode and Enhanced Mode The COM- 2(PC)F supports Compatible mode and Enhanced mode. In Compatible mode, the board channels operate as standard PC serial ports. In Enhanced mode, the board operates under CONTEC's proprietary control procedures. Give full consideration to the fe[...]

  • Страница 15

    How to Use the Board COM-2(PC)F 6 Operating under Windows Me/98 This section describes the procedure for using the board under Windows Me/98 and lists a number of points to note. Procedure When using the board under Windows Me/98, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F. In Windows Me/98, this is [...]

  • Страница 16

    How to Use the Board COM-2(PC)F 7 Compatible Mode Installation Procedure 1 1. Set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. Set an interrupt level that is not currently used by the computer. 2. Insert the COM- 2(PC)F in an expansion slot and turn [...]

  • Страница 17

    How to Use the Board COM-2(PC)F 8 Compatible Mode Installation Procedure 2 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot. 2. After Windows Me/98 starts, select [Control Panel] from [My Computer] and start the [Add New Hardware]. 3. Clic k [Next >] in response to [To begin installing your new hardware, clic[...]

  • Страница 18

    How to Use the Board COM-2(PC)F 9 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it. Check Resources Always check the PC resources (I/O address a[...]

  • Страница 19

    How to Use the Board COM-2(PC)F 10 Operating under Windows 95 This section describes the procedure for using the board under Windows 95 and lists a number of points to note. Procedure When using the board under Windows 95, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F. In Windows 95, this is called hard[...]

  • Страница 20

    How to Use the Board COM-2(PC)F 11 Compatible Mode Installation Procedure 1 1. Set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. Set an interrupt level that is not currently used by the computer. 2. Insert the COM- 2(PC)F in an expansion slot and turn[...]

  • Страница 21

    How to Use the Board COM-2(PC)F 12 Compatible Mode Installation Procedure 2 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot. 2. After Windows 95 starts, select [Control Panel] from [My Computer] and start the [Add New Hardware]. 3. Click [Next >] in response to [To begin installing your new hardware, click N[...]

  • Страница 22

    How to Use the Board COM-2(PC)F 13 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it. Check Resources Always check the PC resources (I/O address [...]

  • Страница 23

    How to Use the Board COM-2(PC)F 14 Operating under Windows 2000 This section describes the procedure for using the board under Windows 2000 and lists a number of points to note. Procedure When using the board under Windows 2000, the OS must be set to recognize the I/O address and interrupt level used by the COM- 2(PC)F. In Windows 2000, this is cal[...]

  • Страница 24

    How to Use the Board COM-2(PC)F 15 Compatible Mode Installation Procedure 1 It can ’ t be used with Compatible Mode when API- SIO(98/PC)NT of packing together is used for API-PAC(W32). 1. Set the operation mode (I/O address) and i nterrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. Set an int[...]

  • Страница 25

    How to Use the Board COM-2(PC)F 16 Compatible Mode Installation Procedure 2 It can ’ t be used with Compatible Mode when API- SIO(98/PC)NT of packing together is used for API-PAC(W32). 1. Turn on the power to the PC without inserting the COM- 2(PC)F in an expansion slot. 2. After Windows 2000 starts, select [Control Panel] from [My Computer] and [...]

  • Страница 26

    How to Use the Board COM-2(PC)F 17 Enhanced Mode Installation Procedure When it is used with Enhanced Mode, API- PAC(W32) of the option is necessar y . Refer to Help "HWINSTE.HLP" of the way of registering the hardware being attached to API- PAC(W32) for the way of installing it. Check Resources Always check the PC resources (I/O address [...]

  • Страница 27

    How to Use the Board COM-2(PC)F 18 Operating under Windows NT This section describes the procedure for using the board under Windows NT and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. When using[...]

  • Страница 28

    How to Use the Board COM-2(PC)F 19 Operating under Windows 3.1 This section describes the procedure for using the board under Windows 3.1 and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. When usi[...]

  • Страница 29

    How to Use the Board COM-2(PC)F 20 Operating under MS-DOS This section describes the procedure for using the board under MS-DOS and lists a number of points to note. Procedure First, set the operation mode (I/O address) and interrupt level for the COM- 2(PC)F. Set the COM- 2(PC)F switch and jumpers as described in Hardware Setup. When using the boa[...]

  • Страница 30

    How to Use the Board COM-2(PC)F 21 Note! When used in Compatible mode, COM3 and COM4 are not supported by some programming languages. Check the specifications of the language you are using. T able 2.1. lists the COM ports supported by a number of common programming languages. Table 2.1. COM Port Support for V arious Programming Languages Language C[...]

  • Страница 31

    How to Use the Board COM-2(PC)F 22[...]

  • Страница 32

    Hardware Setup COM-2(PC)F 23 3. Hardware Setup Names of Board Components Figure 3.1. shows the names of various board components. The switch and jumper settings shown in the figure are the default factory settings. Figure 3.1. Names of Board Components and Default Factory Settings[...]

  • Страница 33

    Hardware Setup COM-2(PC)F 24 I/O Address Setting The board is an I/O device controlled by I/O instructions from the PC. I/O devices include expansion boards and devices inside the PC. The various devices are identified by their I/O addresses. I/O addresses are represented as four digit hexadecimal values (e.g. 02A0H) and act as the ID number for ea[...]

  • Страница 34

    Hardware Setup COM-2(PC)F 25 Setting Procedure The I/O address is set using a DIP switch (SW1) on the board. S W 1 1 2 3 4 O F F M OD E 1 2 3 4 Figure 3.2. I/O Address DIP Switch Table 3.1. I/O Address Settings SW1 Interrupt Vector Bit 1 Bit 2 Register Address ON Enhanced 1A0~1A7 1BF OFF Enhanced 2A0~2A7 2BF ON COM3 3E8~3EF --- OFF COM1 3F8~3FF ---[...]

  • Страница 35

    Hardware Setup COM-2(PC)F 26 Interrupt Level Setting The signal from the LSI (NS16550 equivalent) on the board can be used as an interrupt request signal based on the JP1, JP2, and JP3 settings. Note! When using interrupts, set an interrupt level that is not used by any other device. Setting Procedure When not Using Interrupts Place a short connect[...]

  • Страница 36

    Hardware Setup COM-2(PC)F 27 Table 3.2. lists the I/O address and standard interrupt level settings for COM1 to COM4 (Compatible mode). Table 3.2. Example Compatible Mode Settings Port I/O Address COM1 3F8~3FF IRQ4 COM2 2F8~2FF IRQ3 COM3 3E8~3EF IRQ4 *1 *1 On the IBM PS/55Z and similar, COM4 2E8~2EF IRQ3 COM3 uses IRQ3. Interrupt Level Note! If usi[...]

  • Страница 37

    Hardware Setup COM-2(PC)F 28 Mounting Method There are many kinds of boards that can be mounted in a computer's extension slots, however the mounting method is identical for any slot. Before starting (1) Set the Power switch to OFF. (2) Unplug the power cable from the AC outlet. Mounting the board (1) Remove the screws from the rear of the com[...]

  • Страница 38

    Hardware Setup COM-2(PC)F 29 (3) Remove th e screw retaining the cover of the slot where the board is to be mounted, and remove the cover from the rear panel. Figure 3.6. Expansion Slot Cover Caution! T o prevent a discharge of static electricity from damaging the board, it is important to ground yourself. Hold the packaged board in one hand and to[...]

  • Страница 39

    Hardware Setup COM-2(PC)F 30 (7) Ancho r the board with the scre w . Use the screw set aside in step 3. Tighten so that the board is held in place. Figure 3.7. Anchoring the COM- 2(PC)F (8) Replace the computer cover. (9) Connect the power cord.[...]

  • Страница 40

    Hardware Setup COM-2(PC)F 31 Connecting the External Devices Connecting the COM- 2(PC)F board to external devices is via two 9-pin D-SUB connector (male) on the board. C N 1 C N 2 5 9 1 6 5 1 9 6 O n - b o a r d C o n n e c t o r : D E L C - J9 P A F - 20 L 9 ( M a l e ) [ m f d . b y J AE ] A pp li c a t i o n C o nn e c t o r : 17J E - 13090 - 02[...]

  • Страница 41

    Hardware Setup COM-2(PC)F 32 Connecting the Cable The RS-232C interface requires that you use a different type of cable depending on the type of device being connected. For example, modem connections and computer (PC) connections require different cables. Accordingl y , check the specifications of the external device to which you are connecting and[...]

  • Страница 42

    System Reference COM-2(PC)F 33 4. System Reference Specifications Table 4.1. Specifications Item Specification Number of Channels 2 Input Type RS-232C External connectors Two 9-pin D-SUB connector (Male) Transfer Method Asychronous serial transfer Baud Rate 50~115,200bps *1 5, 6, 7, 8 bits 1, 1.5, 2 stop bits *1 Parity heck Even, Odd, Non-parity *1[...]

  • Страница 43

    System Reference COM-2(PC)F 34 Circuitry Diagrams T X D , R T S , D T R R X D , C T S , D S R S N 7 5188 S N 751 89 15 p F Figure 4.1. Circuitry Diagrams Block Diagram The following is a block diagram of the COM- 2(PC)F interface board. A DD R E SS D EC OD ER D A T A B U FF ER D a t a B u s ( D 7 ~ D 0 ) I B M - P C / A T B U S C N T R O L B U FF E[...]

  • Страница 44

    Troubleshooting COM-2(PC)F 35 5. Troubleshooting If you are having trouble with your board or program, answer the following questions to see if you can find the problem. QUESTIONS: STEPS TO TAKE Is the pilot light on? The system must be turned on and the power supply must be working. Check the main power switch and the power suppl y. Did the system[...]

  • Страница 45

    Troubleshooting COM-2(PC)F 36 Does the sample program work? Check the following: - Signals are connected to the correct pins. - Pin connections on the I/O cables are secure. - Signals are present at the e xternal connectors. - Try using the COM- 2(PC)F board with other non-essential boards removed. Remove other boards one by one, checking the COM- [...]

  • Страница 46

    Troubleshooting COM-2(PC)F 37 3. DOS Version. 4. Name of the CONTEC board that you are using. 5. N ames of other boards in the computer. 6. I/O addresses for the CONTEC board and all other boards. 7. Interrupt levels for the CONTEC board and all other boards. 8. DMA channels for the CONTEC board and all other boards (if applicable). 9. The programm[...]

  • Страница 47

    Troubleshooting COM-2(PC)F 38 10. Different I/O addresses you have tried. 11. Are you using your own program or a CONTEC sample program. 12. List AUTOEXEC.B AT. 13. List CONFIG.SYS.[...]

  • Страница 48

    Appendix COM-2(PC)F 39 6. Appendix A. Sample Programs (for MS-DOS) This section covers the sample programs that are supplied on the floppy disk included with this board. COM- 2(PC)F Diskette CONTEC supplies a sample program diskette with each COM- 2(PC)F board. This diskette contains sample programs to help you get started. Use the DOS DIR command [...]

  • Страница 49

    Appendix COM-2(PC)F 40 Sample Programs The programs are written in GW-BASIC and Microsoft C. The sample programs transmit data entered from the keyboard and display received data on the screen. Table 6.1. lists the communications data format. The sample programs listed in Figure 6.1. are included on the floppy disk. Table 6.1. Data Format Parameter[...]

  • Страница 50

    Appendix COM-2(PC)F 41 Notes! - All the sample programs must be run on a PC operating under MS-DOS. - Sample programs 3, 4, 6, and 10 cannot be used on a PC that already has COM1 and COM2 ports. Similarly, sample programs 11 cannot be used on a PC that already has COM3 and COM4 ports. - As sample programs 8 and 9 use half-duplex mode, they can only[...]

  • Страница 51

    Appendix COM-2(PC)F 42 Switch and Jumper Settings Table 6.2. Switch and Jumper Settings of Sample Program 1, 2, and 5 I t e m I / O A dd r e ss ( S W 1 ) I n t e rr u p t L e v e l ( J P 1 , J P 2 , J P 3 ) 1 2 3 4 O F F S W 1 J P 1 J P 2 J P 3 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C [...]

  • Страница 52

    Appendix COM-2(PC)F 43 Table 6.4. Switch and Jumper Settings of Sample Program 7 I t e m I / O A dd r e ss ( S W 1 ) I n t e rr u p t L e v e l ( J P 1 , J P 2 , J P 3 ) 1 2 3 4 O F F S W 1 J P 1 J P 2 J P 3 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C 9 3 4 5 6 7 1 0 11 1 2 1 4 1 5 N C S e tt i n g s Table 6.5. Switch and [...]

  • Страница 53

    Appendix COM-2(PC)F 44 Cable Connection When running the sample programs 1 to 11 (except 8 and 9), use the interconnection cable as shown in Figure 6.2. for connection with the mating device in the Compatible mode. For use in the Enhanced mode, on the other hand, use the cross cable or the interconnection configuration diagram in Figure 6.2. P i n [...]

  • Страница 54

    Appendix COM-2(PC)F 45 Sample Program 1 This GW-BASIC sample program demonstrates the transmit-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the Asynchronous Communication Element (ACE) , then it transmits the data input from the keyboard to the external device through channel 1 (CN1). N o n e K e y I n K e y N o L i n e S [...]

  • Страница 55

    Appendix COM-2(PC)F 46 Sample Program 2 This GW-BASIC sample program demonstrates the receive-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the ACE , then it transmits the data input from the external device to CRT through CN1. S e t B a u d R a t e G e n e r a t o r 1 S e t M o d e m C o n t r o l O u t p u t R e a d L i n[...]

  • Страница 56

    Appendix COM-2(PC)F 47 Sample Program 3 This GW-BASIC sample program demonstrates the transmit-data capability of COM- 2(PC)F in Compatible mode. Using this [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command opens the RS-232C communication file (COM1). It then writes the data input from the keyboard to COM1 through CN1. N o n e K e y I n K [...]

  • Страница 57

    Appendix COM-2(PC)F 48 Sample Program 4 This GW-BASIC sample program demonstrates the receive-data capability of COM- 2(PC)F in Compatible mode. Using this [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command opens the RS-232C communication file (COM1). It then reads the data from COM1 and outputs to CRT through CN1. Y e s N o S e t C o mm un[...]

  • Страница 58

    Appendix COM-2(PC)F 49 Sample Program 5 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Enhanced mode. First, it initializes the ACE , it then receives the data input from the keyboard through CN1. Finally it outputs the data to C RT through CN2. Figure 6.7. Flowchart of Sample Program 5 1 1 S e t B [...]

  • Страница 59

    Appendix COM-2(PC)F 50 Sample Program 6 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Compatible mode. Using the [OPEN " COM1 : 9600, N, 8, 2, DS" AS #1] command and the [OPEN "COM2 : 9600, N, 8, 2, DS" AS #2] command opens two RS-232C communication files (COM1 and COM2). The pr[...]

  • Страница 60

    Appendix COM-2(PC)F 51 Sample Program 7 This GW-BASIC sample program demonstrates the receive/transmit-data capability of COM- 2(PC)F in Enhanced mode with interrupt input. It calls a machine language program to register and handle interrupt input. One channel's receive/transit- data routine is processed in the interrupt handler. The received [...]

  • Страница 61

    Appendix COM-2(PC)F 52 Sample Program 8 [Half-duplex data transmission (Enhanced mode)] The sample program 8 enables initialization on ACE, data transmission in the transmission mode, and waits for the receive data in the receive mode. 1 N o t e : W a i t T i m e = ( s e c ) D a t a L e n g t h B a u d R a t e N o Y e s 1 L i n e S t a t u s D 6 b [...]

  • Страница 62

    Appendix COM-2(PC)F 53 Sample Program 9 [Half-duplex data reception (Enhanced mode)] The sample program 9 enables initialization on ACE, receives 5-byte data; after transmission, the program enters the transmission mode for data transmission. N o Y e s 1 L i n e S t a t u s D 0 b i t = 1 S e t B a u d R a t e G e n e r a t o r 1 S e t I n t e rr u [...]

  • Страница 63

    Appendix COM-2(PC)F 54 Sample Program 10 [Data transmission and reception (COM1, COM2 mode)] Sample program 10 uses the bios_serialcom ( ) function for MS-C. It first receives the data transmitted from COM1, and then receives the data at COM1 transmitted from COM2. Received data is displayed on the C RT. 1 C O M 1 I n i t i a l i z a t i o n 1 C O [...]

  • Страница 64

    Appendix COM-2(PC)F 55 Sample Program 11 [Data transmission and reception (COM3, COM4 mode)] Sample program 11 uses the bios_serialcom ( ) function for MS-C. It first receives the data transmitted from COM3, and then receives the data at COM3 transmitted from COM4. Received data is displayed on the C RT. 1 C O M 3 I n i t i a li z a t i o n 1 C O M[...]

  • Страница 65

    Appendix COM-2(PC)F 56 B. Notes on Developing Driver Software Internal Registers COM- 2(PC)F uses the NS16550 (National Semiconductor) as the Asynchronous Communication Element (ACE). Within the address range of each channel, the offset addresses 0 through 7 furnish access to the internal registers of each of the two ACE's. Table 6.6. shows ho[...]

  • Страница 66

    Appendix COM-2(PC)F 57 Baud Rate Selection The COM- 2(PC)F board has one programmable baud rate generator for each of the two ACEs. The ACEs use a 1.8432MHz crystal oscillator as clock input. The baud rate generator takes the 1.8432MHz clock and divides it by a divisor from 1 to (2 16 - 1). The output frequency of the baud rate generator equals 16 [...]

  • Страница 67

    Appendix COM-2(PC)F 58 LSI Recovery Time Due to the ever higher CPU clock rates used in PCs, restrictions apply when controlling a peripheral LSI device by software. Table 6.8. lists the LSIs used on CONTEC boards which require special consideration when accessing. Take note of the following point when accessing these LSIs. In PCs using i386 or ear[...]

  • Страница 68

    Appendix COM-2(PC)F 59 Example program (for accessing an i8254 or equivalent) - Microsoft Macro Assembler OUT DX, AL ; Access to the i8254 IN AL, 2EFH ; Execute IN AL, 2EFH once to provide the recovery time - Microsoft C/C++ outp(port, byte); /* Access to the i8254 */ rt =inp(0x2ef); /* Execute rt=inp(0x2ef); once to provide the recovery time */[...]

  • Страница 69

    Appendix COM-2(PC)F 60 V arious Aspects of Interrupt Handling in Enhanced Mode and Compatible Mode Enhanced Mode When in Enhanced mode, two channels of the COM- 2(PC)F share the same interrupt request line. The interrupt levels can be set from IRQ3~IRQ7, IRQ9~IRQ12, IRQ14, and IRQ15 by setting JP1 before installing this board. Each channel's i[...]

  • Страница 70

    Appendix COM-2(PC)F 61 O u t p u t P o r t 2 B F / 1 B F D 7 N o t U s e d G l o ba l I n t e rr u p t 0 : D i s ab l e 1 : E n a b l e D 6 D 5 D 4 D 3 D 2 D 1 D 0 I n p u t P o r t 2 B F / 1 B F D 7 N o t U s e d C H 1 I n t e r r u p t 0 : O cc u rr e d 1 : N o t O c c u rr e d D 6 D 5 D 4 D 3 D 2 D 1 D 0 C H 2 I n t e r r u p t 0 : O cc u rr e d[...]

  • Страница 71

    Appendix COM-2(PC)F 62 C. The Details on NS16550 Table 6.9. NS16550's Register (Short from National Semiconductor's data book) < 1 / 2 > Register 0 DLAB = 0 0 DLAB = 0 1 DLAB = 0 2 2 3 Bit Receiver Transmitter Interrupt Interrupt FIFO Line No. Buffer Holding Enable Ident. Control Control Register Register Register Register Register [...]

  • Страница 72

    Appendix COM-2(PC)F 63 Table 6.9. NS16550's Register (Short from National Semiconductor's data book) < 2 / 2 > Register 4 5 6 7 0 DLAB = 1 1 DLAB =1 Bit MODEM Line MODEM Scratch Divisor Divisor No. Control Status Status Register Latch Latch Register Register Register (LS) (MS) MCR LSR MSR SCR DLL DLM 0 Data Data Delta Bit 0 Bit 0 Bi[...]

  • Страница 73

    Appendix COM-2(PC)F 64 D. Difference Between the COM- 2(PC)F and COM-2(PC)V The COM- 2(PC)F is an upgrade of the previous COM-2(PC)V board and is upwardly compatible. Therefore, the board can generally be used in the same way as the COM- 2(PC) V. However, as the bus specification has changed from the XT bus to the A T bus and the board sizes are di[...]

  • Страница 74

    Index COM-2(PC)F 65 7. Index B Baud Rate, 57 Block Diagram, 34 Board Setup, 25 C Circuitry Diagrams, 34 Compatible Mode, 5 Connectors, 31 E Enhanced Mode, 5 External Connection, 31 F Features, 1 I I/O Address, 24 Internal Registers, 56 Interrupt Level, 26 L Liabilit y , 2 LSI Recovery Time, 58 M Mounting Method, 28 MS-DOS, 20 N NS16550's Regis[...]

  • Страница 75

    Index COM- 2(PC)F 66 W W arrant y , 2 Windows 2000, 14 Windows 3.1, 19 Windows 95, 10 Windows Me/ 98, 6 Windows NT, 18[...]

  • Страница 76

    A-41-606 LZU2821 021025 [961015 ][...]

  • Страница 77

    A-46-368 Ver. 2001. 02. 06 CONTEC Group JAPAN : Headquarters CONTEC C o ., LTD. 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Tel : +81 (6) 6 477-5219 Fax : +81 (6) 6 477-1692 E-mail : intsales@osaka.contec.co. jp U.S.A. : CONTEC MICROELECTRONICS U.S.A. INC. 744 S outh Hillview Dr ive, Milpitas, CA 95035 U.S.A. Tel : +1 (408) 719-8200 F[...]