參數(shù)資料
型號(hào): PC-COM4
英文描述: PC(ISA)BUS I/O CARD
中文描述: 電腦(ISA)總線的I / O卡
文件頁數(shù): 14/20頁
文件大小: 492K
代理商: PC-COM4
Appendix B. Utility Disk
The utility disk supplied contains the excutable
com4util
. This program is intended to help
you check that the PC-COM4 board is functioning correctly following installation; instructions
are given in
readme.txt.
The data sheet for the UART is in the subdirectory data, in
st16554.pdf.
The source
code com4util.c
and project files are also supplied in this directory. It is
intended that some of the functions in the code will be of use in writing your own programs for
the PC-COM4. If you have Borland C++V4.52, create a directory on your hard drive called
pc_com4
and copy the entire contents of the disk into it. You will be able to run the
com4util.ide
Intergrated Development Environment straight away. If you have another C
compiler, the source code may require translation by that compiler prior to recompilation, in
particular when using Microsoft C.
The header files
stddefs.h
and pcints.h are in the subdirectory
inc. pcints
contains the
interrupt definitions and will be particularly useful.
Function Descriptions
The following functions are defined in
com4util. c:
Void Init_Channel (int port, int rate)
- Initialises a channel given its base address and baud rate. The baud rate argument must be
in the format given on page 5-42 of the UART data sheet. Use the first column (1.8432 Mhz).
The function sets the serial format to 8 data bits, two stop bits and no parity. To set your own
format refer to page 5-49 of the UART data sheet.
void AssertRTS (int port)
- For use with channels A or B when set to RS422/485 mode. Call this function prior to
tranamitting on this channel.
Void DeAssertRTS (int port)
- For use with channels A or B when set to RS422/485 mode. Call this function when finished
transmitting on this channel.
Word serout (int port, char character)
- Transmits the byte argument down the port. The port must have been initialised first using
Init_Channel (). The most significant byte of the returned word contains the status bits
indicating any errors that occurred.
WORD serin (int port)
- Reads a charater in from the given port. The read-in character is returned in the LSB of the
word and status bits are returned in the MS. You may choose to call serin in a loop, e.g if
polling, but it will usually be better to call it when a receive interrupt has been generated, as in
this example program.
2192-09197-000-000
Page 14
J606 PC-COM4
CONTROL SYSTEMS
相關(guān)PDF資料
PDF描述
PC1231XNSZ PHOTOCOUPLER
PC123 European Safety Standard Approved Type Long Creepage Distance Photocoupler
PC123A DEVICE SPECIFICATION FOR PHOTOCOUPLER
PC123F European Safety Standard Approved Type Long Creepage Distance Photocoupler
PC1316 Dual Channel Audio Power Amplifier Dual Power Amplifier 2W 12V 10%
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PCC-OST-E 制造商:Newport Electronics Inc 功能描述:CONNECTOR, For Use With:Standard Circuit Board, Accessory Type:Circuit Board Sta 制造商:Newport Electronics Inc 功能描述:CONNECTOR, For Use With:Standard Circuit Board, Accessory Type:Circuit Board Standard Connector, Connector Mounting:PCB, Connector Type:Thermocouple, No. of Contacts:2, Series:PCC, Thermocouple Type:E , RoHS Compliant: NA
PCC-OST-K 制造商:Newport Electronics Inc 功能描述:CONNECTOR, For Use With:Standard Circuit Board, Accessory Type:Circuit Board Sta 制造商:Newport Electronics Inc 功能描述:CONNECTOR, For Use With:Standard Circuit Board, Accessory Type:Circuit Board Standard Connector, Connector Mounting:PCB, Connector Type:Thermocouple, No. of Contacts:2, Series:PCC, Thermocouple Type:K , RoHS Compliant: NA
PCC-OST-T 制造商:Newport Electronics Inc 功能描述:CONNECTOR, For Use With:Standard Circuit Board, Accessory Type:Circuit Board Standard Connector, Connector Mounting:PCB, Connector Type:Thermocouple, No. of Contacts:2, Series:PCC, Thermocouple Type:T , RoHS Compliant: NA
PCCOV19001BK1 功能描述:機(jī)架和機(jī)柜配件 WIRE MANAGER COVER 1U RoHS:否 制造商:Bivar 產(chǎn)品:Rack Accessories 面板空間: 顏色:Black
PCCOV19003BK1 功能描述:機(jī)架和機(jī)柜配件 WIRE MANAGER COVER 2U RoHS:否 制造商:Bivar 產(chǎn)品:Rack Accessories 面板空間: 顏色:Black