Home

Multi-I/O User`s Manual

image

Contents

1. IoutO 2 Iout2 2 GND 3 GND 3 J18 OUT2 Out5 1 O ut5 2 3 Out6 Out7 2 Iout4 2 3 GND 3 Jil UARTI J20 UART2 1 CTS 1 2 RxD 2 3 3 4 RTS 4 5 GND 5 Out7 Out8 O ut8 J2 and J4 BUS1 and BUS2 Data 1 2 CLK Reset 3 4 CS IN OUT Vcc 5 6 GND IRQ5 7 8 IRQ6 Vcc 9 10 GND JK micros ystems http www jkmicro com Davis CA USA 530 297 6073 User Manual Multi O Expansion Board x Connectors Interface connectors use Molex KK style headers and housings J5 J6 J14 J15 require 3 pin Molex housings p n 22 01 3037 J7 J8 J16 J17 require 4 pin Molex housings p n 22 01 3047 J11 J20 require 5 pin Molex housings p n 22 01 3057 J9 J18 require 8 pin Molex housings p n 22 01 3087 The above housings accept crimp terminals for 18 30 gauge wire Molex p n 08 50 0114 Software DRIVER OBJ contains functions callable from C or QuickBASIC This library allows easy access to the various functions of the Multi I O board The C and BASIC functions have common names and act identically The assembly source code DRIVER ASM and C header file DRIVER H are also included The object file may be regenerated using TASM All values passed and returned from the library functions are 16 bits wide Many functions do not use all 16 bits but the complete word is required When the comp
2. User Manual Multi O Expansion Board x The Multi I O expansion board gives users the ability to add analog inputs and outputs UART capability for GPS or modem and isolated high current outputs to the Flashlite 386Ex Available in several configurations each Multi IO board can add up to 8 channels of 12 bit A D 4 channels of 12 bit D A 8 output drivers and 2 UARTs If more I O is required several boards can be added to the system using 10 pin IDC style ribbon cables A library of C and QuickBasic functions is supplied to eliminate the hassle of programming devices on a serial bus Features Analog to Digital UARTs 12 bit resolution TTL outputs RS 232 tolerant inputs 4 096V reference 1mV count 115K max speed Single ended or differential modes Configurable interrupt IRQ5 or IRQ6 8 byte FIFO Digital to Analog Drivers 12 Bit 1 Amp transistors Voltage output 0 4 095 V 60V max Vce Current output 0 20 mA 2500 V optical isolation System requirements Flashlite386Ex SBC Interface Cable Stacking standoffs Configuration Five jumpers allow configuration of each Multi I O board Depending on the features of the board some of the jumpers may not be required Jumpers configure the direction of signals on J2 and J4 BUS1 and BUS2 allow selection of the hardware interrupt associated with the UARTs and connection of the UART1 transmit data line to either J11 or J13 J3 controls the direction of signals on the BUS1 and BUS2 connecto
3. g edge of the clock signal To reset the boards assert the reset line Boards must be reset in order to change the selected channel To select a device a start bit and a 3 bit address are clocked to the board There are 6 selectable devices on each half of the board AD write AD read UART DAI write DA2 write and DRIVER write The second half of the board is selected using CS6 and additional boards are selected using CS7 CS6 and CS7 are only specified on the first left half of the board Data is clocked MSB first when selecting a board a LILI LS 1 1011 1 1 0 0 Command Select DA2 After a device has been selected information is written to or read from the device as per the device specification The Driver circuit consists of a shift register and a latch Data is clocked in MSB first and latched on the falling edge of chip select UART signals are 0 and 5 volts These signals may not work with a true RS 232 device depending on the sensitiv ity of its receiver The UART inputs Rx and CTS are diode protected and current limited so that RS 232 level voltages will not damage the device When using the Digital to Analog converters in voltage output mode it may be necessary to install a resistor approximately 10k ohm between pins 2 and 3 of the output This will reduce noise on the voltage output http www jkmicro com JK microsystems Davis CA USA 530 297 6073
4. lete word is not used data fills the low order bits and the high order bits are unused and ignored In the following descriptions C function syntax is shown first and BASIC syntax where different is shown in brackets int GetVersion void GetVersion data Returns the version number of the driver library Least significant digit is minor revision Most significant digits are major revision void PutA2DChannel address Sets the channel to get data from on the next call to GetA2DChannel address refers to a device or channel Address values are sequential starting at 0 for each type of device int GetA2D void GetA2D data Returns the conversion results from previously selected A D void PutD2AChannel address Selects a D A channel address refers to a device or channel Address values are sequential starting at 0 for each type of device void PutD2A data Writes output value to the selected D A channel data is a value read from an A D or written to a D A Only the low 12 bits are used void PutDriverChannel address Selects driver address refers to a device or channel Address values are sequential starting at 0 for each type of device Each driver bit is addressed individually void PutDriver state Turns the selected driver ON or OFF state is the value written to a driver 0O OFF non zero ON Basic UART functions These functions send and receive characters with 8 data bits
5. rns 1 if the transmit buffer is empty Enhanced UART functions These functions allow complete control of the UART and its configuration registers All functions rely on PutUARTChannel to select the desired UART See the MAX3100 data sheet for information on these registers Use of these functions may change the behavior of the basic UART functions To reset the a UART for use with the basic functions write a hex E000 to the Write Configuration register then set the baud rate using PutUARTBaud void PutUUARTWC word Writes a new value to the UART Write Configuration register and driver shadow register word is a 16 bit value as described in Table 1 of the MAX3100 data sheet void PutUARTWD word Writes a value to the UART Write Data register word is a 16 bit value as described in Table 3 of the MAX3100 data sheet http www jkmicro com JK microsystems Davis CA USA 530 297 6073 User Manual Multi O Expansion Boatd w int GtUARTRC void GettUARTRC data Reads a 16 bit value from the UART Read Configuration register int GtUARTRD void GetUARTRD data Reads a 16 bit value from the UART Read Data register Hardware Notes The Multi I O board operates on a serial bus implemented using 4 processor I O lines for clock data reset and chip select signals Two interrupt lines are available for use with the UARTs The data signal is bidirectional reset and CS are active low and data must be valid on the fallin
6. rs Shunts should be installed between pins 1 3 and 2 4 or 3 5 and 4 6 If only one IO board is installed and that board plugs directly into the Flashlite these jumpers are not important When adding additional IO boards to the system or connecting the IO board with a cable to the Flashlite BUS1 will transmit to a second board if J3 has 3 5 and 4 6 shorted BUS2 will transmit data when J3 has 1 3 and 2 4 shorted Signals will be received on the remaining BUS connector Use J10 and J19 to select between IRQ5 and IRQ6 for the UARTs Short pins 1 2 for IRQ5 or 3 5 for IRQ6 The serial port can be used without interrupt connections When UART signals are expected on J11 J12 1 2 should be shorted Short J12 2 3 when connecting to J13 Installation Mount the IO board to the back of the Flashlite 386Ex securing it to the 3 8 standoffs with 6 32 screws or male standoffs Be sure to orient the IO board so that the 10 pin bus connectors Jxx and Jxx are opposite Jxx on the Flashlite Connect the IO board to the Flashlite using interface cable p n xx xxxx See the cable drawing for wiring information http www jkmicro com JK microsystems Davis CA USA 530 297 6073 User Manual 386Ex Multi I O J12 BUS1 or BUS2 J4 or J2 1 1 2 2 3 3 4 4 a oe 6 6 7 7 8 8 NC 9 NC 10 J7 ADI J8 AD2 Multi VO Expansion Board wx J16 AD3 J1i7 AD4 Vref 1 Vref
7. stop bit and no parity bits If other data formats are required see the enhanced UART functions The UART baud rate must be set during initialization there is no power on default UART interrupt functions are not currently supported by the driver library http www jkmicro com JK microsystems Davis CA USA 530 297 6073 User Manual Multi O Expansion Boat w void PutUARTChannel address Selects a UART channel address refers to a device or channel Address values are sequential starting at 0 for each type of device void PutUARTBaud baud Sets the baud rate on the selected UART channel This must be called before attempting to use a UART there is no default power on baud rate baud is a value from the table below that sets the UART baud rate 600 600 baud void PutUARTChar character Waits until UART transmitter is ready and sends a character to the selected UART channel character is the value to be transmitted by a UART The value should be in the low order bits This is a blocking function int GettUARTChar void GetUARTChar data Waits until the selected UART has received a character and returns data from the receive buffer This is a blocking function int GtUARTRxStatus void GtUARTRxStatus data Checks the receiver status on the selected UART Returns 1 if a character is waiting int GttUARTTxStatus void GettUARTTxStatus data Checks the transmitter status on the selected UART Retu

Download Pdf Manuals

image

Related Search

Related Contents

PI Gynofit_Milchs-Gel_internat_170x650_CE1253_09.10.indd  分野 書名 著者 出版社  ASUS H81-PLUS (90MB0GJ0-M0EAY0)  Philips HD camcorder CAM110RD  Air Die Grinders - CH  • No dejar los envases cerca de los alimentos ni bebidas    Manual Avanzado  LC-27 (ES)_CD  Manuel_Scanner_MF9300.fr  

Copyright © All rights reserved.
Failed to retrieve file