![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
control systems PC-COM4 22192-09197-000-000 j606 PC-COM4 page 1 introduction the PC-COM4 is an 8 or 16-bit isabus module providing up to four 16c550 type serial asynchronous communications channels: two of non-isolated rs232 and two channels that can be configured as either non-isolated rs232 or optically isolated rs422 or rs485. a depopulated version of the pc- com4 (PC-COM4-rs232) is available, which does not contain the rs422/485 circuitry. features ? 4 off 16c550 compatible uart channels. (referred to as channels a, b, c & d) ? 2 off opto-isolated rs422/485 ports, or full feature rs232 ports. (channels a & b) ? 2 off full feature rs232 ports. (channels c & d) ? baud rates up to 115.2kbaud supported. ? +5v only operation. ? configurable as standard pc at com1-4 or anywhere in i/o address range 000-3ffh ? each channel is link selectable irq of 3, 4, 5, 7, 9, 10, 11, 12 or 15. ? combined interrupt option for any channel combination to irq 3, 4, 5, 7, 9, 10, 11, 12, or 15. ? isabus 16 bit interface (but can be used in 8-bit slot if irq10,11, 12 and 15 are not required). ? board access led. ? isolation: channel a to channel b >100v dc channels a or b to channels c or d > 100v dc channels a or b to isabus ground > 100v dc channels a or b to chassis ground > 100v dc ? power requirements: 120ma (typ) at +5v dc ? temperature range: 0 c to +70 c operating. - 40 c to +125 c storage. ? mtbf 181, 152 hours (PC-COM4) 232, 837 hours (PC-COM4-rs232) (calculated using mil-hdbk-217f generic failure rates at ground benign) note: in order to prevent confusion between standard pc at nomenclature of com1-4, this manual will refer to the four communications channels on the PC-COM4 as channel a- d. where the manual refers to com1-4, this will mean the standard pc at communications ports. product components as shipped, the PC-COM4 is supplied with the following items: ? the PC-COM4 board. ? this manual ? a disk containing a c example program and the uart data-sheet in adobe acrobat (portable document) format. adobe acrobat reader can be downloaded free of charge from arcoms internet site at http://www.arcomcontrols.com
description the PC-COM4 uses a quad 16c550 type uar t device to provide the four communications channels. the 16c550 device is the standard type of uar t used on pc a t type machines and is supported by a wide range of third party software. t wo channels on the PC-COM4 (channels a and b) can either be configured as rs323 or rs422/485. when configured as rs422/485 these are independently electrically isolated from the isabus bus and can be configured for either rs422 type communications or rs485 type communications. when configured for rs232 these channels of fer all the signals found on a pc a t type 9-pin rs232 port. similarly , the other two channels (candd) are configured as rs232, supporting all the signals found on a pc a t type 9-pin rs232 port. a flexible addressing system allows the four channels to be mapped into the standard pc a t communications channel addresses for com1-4. alternatively , pairs of channels can be mapped into any i/o location from 000-3ffh. see later for more details of address mapping. each channel has its own interrupt line that can be linked to any of the following isabus interrupts irq3-5, 7, 9-12, 15. additionally , interrupts from any combination of channels may be ored together to produce a single interrupt to any of the above signals. the pc - com4 has a 16 bit isabus connector but utilises only interrupt lines irq10, 1 1, 12 and 15 on the 16-bit part of the isabus connector . this means that the board can also be used in an 8 bit isabus slot providing that these interrupt lines are not required. i/o map the PC-COM4 has a flexible addressing system that allows the channels a, b, c and d to be addressed at the fixed pc locations for com1, com2, com3 and com4, or allows them to be addressed using the user base address link lk36: 2192-09197-000-000 page 2 j606 PC-COM4 c o n t r o l s y s t e m s 3 f 8 - 3 f f h 3 e 8 - 3 e f h 2 e 8 - 2 e f h 2 f 8 - 2 f f h c o m 1 c o m 3 c o m 4 c o m 2 f i x e d p c a t a d d r e s s i n g c h a n n e l c c h a n n e l a c h a n n e l d c h a n n e l b 3 f 0 h 0 0 0 h c h a n n e l a c h a n n e l b c h a n n e l a a n d b 3 f 0 h 0 0 0 h c h a n n e l c c h a n n e l d l k 1 b a s e a d d r e s s c h a n n e l c a n d d v a r i a b l e b a s e a d d r e s s 3 e 0 h 0 0 0 h l k 1 b a s e a d d r e s s c h a n n e l a , b , c a n d d page 3 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s the option link lk34 defines the addressing mode for channels a and b, and channels c & d as follows: additionally , lk31 can be used to disable any channel from being addressed by removing the appropriate link a, b, c or d. each channel occupies 8 bytes of i/o space with the following registers defined: interrupts four links, lk28-30,33 define the interrupt mapping for each of channels a to d respectively . each channel can be connected to any of irq3, 4, 5, 7, 9, 10, 1 1, 12 or 15. note that irq10, 1 1, 12 and 15 are only available when the PC-COM4 is used in a 16 bit isabus slot. if any of links lk28-30,33 is fitted in the or position, then this channels interrupt is ored to link lk35 which can then be connected to any of the above irq lines. this permits all of the uar t s on the PC-COM4 to share a single interrupt line to conserve irq resources. l k 3 4 C o p t i o n l i n k c h a n n e l a d d r e s s m a p p i n g c d 1 c d 0 a b 1 a b 0 c h a n a c h a n b c h a n c c h a n d x x o m i t o m i t c o m 1 c o m 2 x x x x o m i t f i t c o m 2 c o m 3 x x x x f i t o m i t c o m 3 c o m 4 x x x x f i t + f i t + v a r i a b l e b a s e a d d r e s s x x o m i t o m i t x x x x c o m 1 c o m 2 o m i t f i t x x x x c o m 2 c o m 3 f i t + o m i t + x x x x c o m 3 c o m 4 f i t f i t x x x x v a r i a b l e b a s e a d d r e s s r e g i s t e r o f f s e t m n e m o n i c r e a d r e g i s t e r w r i t e r e g i s t e r g e n e r a l r e g i s t e r s e t ( d l a b [ i c r : 7 ] c l e a r ) 0 r h t / t h r r e c e i v e h o l d i n g r e g i s t e r t r a n s m i t h o l d i n g r e g i s t e r 1 i e r i n t e r r u p t e n a b l e r e g i s t e r 2 i s r / f c r i n t e r r u p t s t a t u s r e g i s t e r f i f o c o n t r o l r e g i s t e r 3 l c r l i n e c o n t r o l r e g i s t e r 4 m c r m o d e m c o n t r o l r e g i s t e r 5 l s r l i n e s t a t u s r e g i s t e r 6 m s r m o d e m s t a t u s r e g i s t e r 7 s c r s c r a t c h p a d r e g i s t e r b a u d r a t e r e g i s t e r s e t ( d l a b [ i c r : 7 ] s e t ) 0 d l l l s b o f d i v i s o r l a t c h 1 d l m m s b o f d i v i s o r l a t c h 2192-09197-000-000 page 4 j606 PC-COM4 c o n t r o l s y s t e m s lk1-9, 32 channel b configuration links these links are used to configure channel b for either rs232 operation (all links in position a) or rs422/485 operation (all links in position b). the default configuration is for rs422/485 (all b). lk10-18, 27 channel a configuration links these links are used to configure channel a for either rs232 operation (all links in position a) or rs422/485 operation (all links in position b). the default configuration is for rs422/485 (all a) c h a n n e l p c / a t c o m i / o a d d r e s s i r q n u m b e r c o m m s t y p e t e r m i n a t o r a n / a 1 8 0 h 1 1 r s 4 8 5 p u l l e d i n a c t i v e b n / a 1 8 8 h 1 0 r s 4 8 5 p u l l e d i n a c t i v e c c o m 3 3 e 8 h 4 r s 2 3 2 n / a d c o m 4 2 e 8 h 3 r s 2 3 2 n / a default shipment configuration links link position diagram user configuration diagram page 5 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s lk19-22 differential pair t ermination links each dif ferential pair on channels a and b can be terminated in six ways according to the following table: note: optical isolation has been omitted from the above diagrams to aid clarity .. (default link positions are marked +.) the following links relate to the following dif ferential pairs: lk23, 24 channel b mode links (default positions marked with +). l i n k c o n f i g u r a t i o n c i r c u i t c o n f i g u r a t i o n d e s c r i p t i o n u n t e r m i n a t e d l i n e d r i v e r c o n n e c t s d i r e c t l y t o t h e d i f f e r e n t i a l p a i r . t e r m i n a t e d d i f f e r e n t i a l p a i r i s t e r m i n a t e d w i t h 1 2 4 r r e s i s t a n c e b e t w e e n s i g n a l l i n e s . p u l l e d i n a c t i v e + d i f f e r e n t i a l p a i r i s p u l l e d a p a r t t o m i m i c n o c h a r a c t e r b e i n g t r a n s m i t t e d f r o m t h e u a r t . p u l l e d i n a c t i v e a n d t e r m i n a t e d d i f f e r e n t i a l p a i r i s t e r m i n a t e d w i t h 1 2 4 r a n d i s p u l l e d a p a r t t o m i m i c t o c h a r a c t e r b e i n g t r a n s m i t t e d . p u l l e d a c t i v e d i f f e r e n t i a l p a i r i s p u l l e d a p a r t t o m i m i c a u a r t s e n d i n g a b r e a k c o n d i t i o n . p u l l e d a c t i v e a n d t e r m i n a t e d d i f f e r e n t i a l p a i r i s t e r m i n a t e d w i t h 1 2 4 r a n d i s p u l l e d a p a r t t o m i m i c a b r e a k c o n d i t i o n . b c d a b c d a b c d a b c d a b c d a b c d a uart pin b a 124r 4k7 4k7 uart pin b a 4k7 4k7 uart pin b a 124r 4k7 4k7 uart pin b a 4k7 4k7 uart pin b a 124r uart pin b a l i n k c h a n n e l r s 4 2 2 p a i r r s 4 8 5 p a i r s i g n a l n a m e s l k 1 9 b t r a n s m i t b i - d i r e c t i o n a l b - t x b a , b - t x b b l k 2 0 b r e c e i v e n / a b - r x a , b - r x b l k 2 1 a t r a n s m i t b i - d i r e c t i o n a l a - t x b a , a - t x b b l k 2 2 a r e c e i v e n / a a - r x a , a - r x b l k 2 3 l k 2 4 m o d e c o m m e n t a a r s 4 2 2 p o i n t - p o i n t t r a n s m i t o n b - t x b , r e c e i v e o n b - r x b a r s 4 2 2 m u l t i - d r o p t r a n s m i t o n b - t x b , r e c e i v e o n b - r x b + b + r s 4 8 5 t r a n s m i t a n d r e c e i v e o n b - t x b 2192-09197-000-000 page 6 j606 PC-COM4 c o n t r o l s y s t e m s lk25, 26 channel a mode links (default positions marked with +). lk28-30,33 channel interrupt links lk28-30,33 are the interrupt select links for channels d to a respectively . the possible irq lines available are irq3, 4, 5, 7, 9, 10, 1 1, 12 and 15. note that it is only possible to use irq lines 10, 1 1, 12 and 15 when the PC-COM4 is inserted in a 16 bit isabus slot. (default links are: lk29 position 4, lk28 position 3, lk33 position 1 1, lk30 position 10.) see section on interrupts above. if any link is in position or, then that channels irq is ored with all the other channels with links in the same position and passed to the shared interrupt link lk35. (see later for description.) lk31 channel enable link lk31 is used to enable each of the channels. fit a link to enable the addressing of a channel, omit it to disable. (default is all enabled.) lk34 option link for more information see the i/o map section above. (default positions marked with +). lk35 shared interrupt link lk35 is the shared interrupt link. any channel whose irq link is selected at position o or r will be ored together and passed to this link. this link can then be set for any of the positions 3, 4, 5, 7, 9, 10, 1 1, 12 or 15 or disabled . the default position is disabled . lk36 address link l lk k3 36 6 is the address decode link. the desired user base address is set on this link. note that if two channels are configured to use the user address then this defines the base address of a 16 byte access window in the i/o space and can be set on any 16 byte boundary from 000h to 3f0h; if four channels are configured to use the user address link a4 is ignored: lk36 defines a 32 byte window on any 32 byte boundary from 000h to 3e0h. (default lk36 setting is for base address of 180h.) see i/o map section above. l k 2 5 l k 2 6 m o d e c o m m e n t a a r s 4 2 2 p o i n t - p o i n t t r a n s m i t o n b - t x b , r e c e i v e o n b - r x b a r s 4 2 2 m u l t i - d r o p t r a n s m i t o n b - t x b , r e c e i v e o n b - r x b + b + r s 4 8 5 t r a n s m i t a n d r e c e i v e o n b - t x b l k 3 4 C o p t i o n l i n k c h a n n e l a d d r e s s m a p p i n g c d 1 c d 0 a b 1 a b 0 c h a n a c h a n b c h a n c c h a n d x x o m i t o m i t c o m 1 c o m 2 x x x x o m i t f i t c o m 2 c o m 3 x x x x f i t o m i t c o m 3 c o m 4 x x x x f i t + f i t + v a r i a b l e b a s e a d d r e s s x x o m i t o m i t x x x x c o m 1 c o m 2 o m i t f i t x x x x c o m 2 c o m 3 f i t + o m i t + x x x x c o m 3 c o m 4 f i t f i t x x x x v a r i a b l e b a s e a d d r e s s using the differential communications channels - a and b in order to use channels a and b on the PC-COM4 they must be configured appropriately: address and interrupt selection the i/o address of channels a and b must first be configured, together with the interrupt line for each channel. y ou will need to refer to the documentation on your cpu card to establish spare i/o and interrupt channels to use. then refer to the i/o map, interrupts and links section of this manual to configure the appropriate links. communications mode the PC-COM4 supports both rs422 and rs485 type dif ferential communications modes. in the rs422 mode of operation, this can function as either point to point or multidrop. the dif ferences between each of the configurations is illustrated below: page 7 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s r s 4 2 2 p o i n t - p o i n t r s 4 2 2 m u l t i - d r o p r s 4 8 5 n u m b e r o f w i r e s 5 t r a n s m i t t e r s e n a b l e d a l w a y s r e c e i v e r s e n a b l e d a l w a y s d u p l e x m o d e f u l l l k 2 3 ( l k 2 4 ) p o s i t i o n a l k 2 5 ( l k 2 6 ) p o s i t i o n a l k 1 - 9 , 2 7 ( l k 1 0 - 1 8 , 2 8 ) p o s i t i o n b n u m b e r o f w i r e s 5 t r a n s m i t t e r s e n a b l e d a c t i v e r t s r e c e i v e r s e n a b l e d a l w a y s d u p l e x m o d e f u l l l k 2 3 ( l k 2 4 ) p o s i t i o n b l k 2 5 ( l k 2 6 ) p o s i t i o n a l k 1 - 9 , 2 7 ( l k 1 0 - 1 8 , 2 8 ) p o s i t i o n b n u m b e r o f w i r e s 3 t r a n s m i t t e r s e n a b l e d a c t i v e r t s r e c e i v e r s e n a b l e d i n a c t i v e r t s d u p l e x m o d e h a l f l k 2 3 ( l k 2 4 ) p o s i t i o n b l k 2 5 ( l k 2 6 ) p o s i t i o n b l k 1 - 9 , 2 7 ( l k 1 0 - 1 8 , 2 8 ) p o s i t i o n b note: lk25 and 26 are the mode links for channel a, lk23 and 24 (in brackets) are for channel b. if you are designing your own systems implementation from scratch, you will be able to select the appropriate type of communications standard for your system: rs422 point-point is a good way of connecting two pieces of equipment together as the dif ferential communications system gives good noise immunity and the full duplex gives high speed. rs422 multi-drop is suitable for systems where one piece of equipment is controlling a number of other pieces of equipment in a master/slave type relationship. the full duplex nature of the system provides for high speed communication. be aware that the software must ensure that no two transmitters are driving on to the bus at once. the line drivers have protection circuitry in them to prevent damage occurring, but communications data will be lost. rs485 is also a multi-drop configuration and is ideal for peer-peer networking or for systems where cabling cost is large so there is advantages to be gained with a three wire system. not again that the software must ensure that only one transmitter is driving the communications pair at once. configure links lk23-26 for the appropriate dif ferential communications mode for channels a and b. line t erminations dif ferential communications pairs should be terminated to prevent reflections from either end of the communications cables. each pair should be terminated at each end of the wire run with a resistance that matches the impedance of the cable. the PC-COM4 is capable of terminating each of the dif ferential pairs on channels a and b using links lk19-22. t wo types of termination network can be configured: line matching terminators and pull apart resistors. line matching t erminators 124 ohm resistors can be linked across each communications pair (see links section). this will be a fair match with twisted pair wiring. these should be configured on boards at either end of the wiring run only . pull apart resistors the PC-COM4 is also able to pull each line of a communications pair to either +5v or 0v through a 4k7 resistor . this facility is primarily intended for use in rs422 multi-drop or rs485 systems to ensure that the communications pair floats to a known state when no transmitters are active. normally , a communications pair would be pulled apart in the inactive state. this mimics the condition where no character is being transmitted from the uar t . it is however possible for the pc- com4 to pull the communications pair in either direction. care should be taken when using the pull-apart resistors in systems with multiple pieces of equipment on the same pair as each fitted pull apart network will load the line driver devices. reduce the number of fitted resistor networks to prevent this causing problems. if there are no pull-apart resistor networks fitted anywhere on a multi-drop communications pair , it will be necessary for software to wait in excess of one character transmission time after asserting the r ts signal before loading the first character into the uar t transmit buffer . this gives the receiving equipment time to clear any error character caused by a rogue start bit when the line driver was enabled at the transmitter . 2192-09197-000-000 page 8 j606 PC-COM4 c o n t r o l s y s t e m s page 9 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s software considerations rs422 point-point does not require any special consideration within the software other than that hardware handshaking is obviously not possible. if flow control is required, it must be implemented by software such as the use of the xon/xoff protocol. rs422 multi-drop and rs485 configurations need careful control of the r ts signal from the uar t which is used to enable the transmitter on the dif ferential pair . r ts needs to be asserted prior to the beginning of the first start bit of the first transmitted character transmitted from the uar t and needs to be disabled after the last stop bit of the last character has actually been transmitted from the uar t . the opto-isolation on the PC-COM4 has a fixed delay from r ts becoming active on the uar t to the line driver switching on of approximately 2 microseconds. a delay must be added before loading the first character into the uar t transmit buf fer to ensure that the driver is on. after a character has been transmitted on the uar t , it is possible to monitor the temt (t ransmitter empty) bit of the line status register . only after this has become asserted is it valid to negate the r ts signal. reception of a t ransmit buf fer empty interrupt is not a valid condition for negating r ts. the output shift register of the uar t is still active until the temt bit is set. using channels a and b in rs232 mode channels a and b can be used as normal rs232 ports by appropriately configuring links lk1- 9,32 for channel b and lk10-18,27 for channel a. using the rs232 channels - c & d the rs232 channels on the PC-COM4 are of a standard implementation providing for all of the standard signals available on a nine way rs232 interface. address and interrupt selection the i/o address of channels c and d must first be configured, together with the interrupt line for each channel. y ou will need to refer to the documentation on your cpu card to establish spare i/o and interrupt channels to use. then refer to the i/o map, interrupts and links section of this manual to configure the appropriate links. 2192-09197-000-000 page 10 j606 PC-COM4 c o n t r o l s y s t e m s connector pl1 pin assignments cab PC-COM4 pl3 has been wired so that it can easily split into standard 9 way male d-sub connectors with standard pin-outs for communications channels. supplied with the PC-COM4 is a suitable example cable. tha cab PC-COM4 is wired as follows cable connectors a and b can be of either pinout depending on links lk1-18. cable connectors c and d are always rs232 pinout. c h a n n e l d e s c r i p t i o n p i n p i n d e s c r i p t i o n d a t a c a r r i e r d e t e c t ( d - d c d ) 1 3 4 ( d - d s r ) d a t a s e t r e a d y r e c e i v e d d a t a ( d - r x d ) 1 8 2 ( d - r t s ) r e a d y t o s e n d d t r a n s m i t t e d d a t a ( d - t x d ) 3 5 1 9 ( d - c t s ) c l e a r t o s e n d d a t a t e r m i n a l r e a d y ( d - d t r ) 3 3 6 ( d - r i ) r i n g i n d i c a t o r r s 2 3 2 s i g n a l g r o u n d ( g n d ) 2 0 4 ( c h a s s i s ) s c r e e n o r s h i e l d d a t a c a r r i e r d e t e c t ( c - d c d ) 3 7 2 1 ( c - d s r ) d a t a s e t r e a d y r e c e i v e d d a t a ( c - r x d ) 5 3 8 ( c - r t s ) r e a d y t o s e n d c t r a n s m i t t e d d a t a ( c - t x d ) 2 2 6 ( c - c t s ) c l e a r t o s e n d d a t a t e r m i n a l r e a d y ( c - d t r ) 3 9 2 3 ( c - r i ) r i n g i n d i c a t o r r s 2 3 2 s i g n a l g r o u n d ( g n d ) 7 4 0 ( c h a s s i s ) s c r e e n o r s h i e l d r e s e r v e d 2 4 8 r e s e r v e d r e s e r v e d 4 1 2 5 r e s e r v e d r e s e r v e d 9 4 2 r e s e r v e d r e s e r v e d 2 6 1 0 r e s e r v e d r e s e r v e d 4 3 2 7 r e s e r v e d b - d c d i s o l a t e d c h a n n e l b + 5 v 1 1 4 4 n o c o n n e c t b - d s r b - r x d i s o l a t e d c h a n b g r o u n d ( g n d ) 2 8 1 2 i s o l a t e d c h a n b g r o u n d ( g n d ) b - r t s b b - t x d r s 4 2 2 t x / r s 4 8 5 b ( b - t x b b ) 4 5 2 9 r s 4 2 2 t x / r s 4 8 5 a ( b - t x b a ) b - c t s b - d t r r s 4 2 2 r x l i n e b ( b - r x b ) 1 3 4 6 r s 4 2 2 r x l i n e a ( b - r x a ) b - r i b - r i i s o l c h a n b r e s g n d ( r g n d ) 3 0 1 4 ( c h a s s i s ) s c r e e n o r s h i e l d a - d c d i s o l a t e d c h a n n e l a + 5 v 4 7 3 1 n o c o n n e c t a - d s r a - r x d i s o l a t e d c h a n a g r o u n d ( g n d ) 1 5 4 8 i s o l a t e d c h a a g r o u n d ( g n d ) a - r t s a a - t x d r s 4 2 2 t x / r s 4 8 5 b ( a - t x b b ) 3 2 1 6 r s 4 2 2 t x / r s 4 8 5 a ( a - t x b a ) a - c t s a - d t r r s 4 2 2 r x l i n e b ( a - r x b ) 4 9 3 3 r s 4 2 2 r x l i n e a ( a - r x a ) a - r i a - r i i s o l c h a n a r e s g n d ( r g n d ) 1 7 5 0 ( c h a s s i s ) s c r e e n o r s h i e l d 1 2 3 4 5 1 2 3 4 5 pc/a t rs232 port pinout arcom sert-485 pinout page 11 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s installation for ce compliance t o maintain compliance with the requirements of the emc directive (89/336/eec), this product must be correctly installed. the pc system in which the board is housed must be ce compliant as declared by the manufacturer . the external i/o cable should be the arcom cab PC-COM4, or a fully screened cable to the same pattern. 1. remove the cover of the pc observing any additional instructions of the pc manufacturer . 2. locate the board in a spare pci local bus slot and press gently but firmly into place. 3. ensure that the metal bracket attached to the board is fully seated. 4. fit the bracket clamping screw and firmly tighten this on the bracket. note:- good contact of the bracket to the chassis is essential. 5. replace the cover of the pc observing any additional instructions of the pc manufacturer . cable cable length 1 metre or less : ribbon cable satisfactory . cable 1 metre to 3 meters : commercial screened cable. > 3 meters of noisy environment : use fully screened cable with metal backshells e.g. arcom cab50ce the following standards have been applied to this product: bs en50081-1 : 1992 generic emissions standard, residential, commercial, light industry bs en50082-1 : 1992 generic immunity standard, residential, commercial, light industry bsen55022 : 1995 ite emissions, class b, limits and methods. 2192-09197-000-000 page 12 j606 PC-COM4 c o n t r o l s y s t e m s appendix a. notes on using the 16c550 uart enabling the interrupt outputs if you intend to write your own low level uar t handler , it is necessary to remember that in order for the uar t channel on the PC-COM4 to generate interrupts to the host cpu, you must enable the irq output from the uar t by setting bit 3 in the modem control register (mrc). standard driver software (including that supplied on the library disk with the PC-COM4) will do this as part of the port initialisation, so no action will be necessary if you are using arcom s software or that of a 3rd. party vendor . the receiver fifo t rigger point and t imeout the 16c550 has sixteen byte fifo s for both it s transmit buf fer and receive buf fer . this can enhance the performance of the serial ports and reduce the interrupt rate main processor . however , it is necessary to set up the receive trigger point optically for your application. w ith the fifo enabled, any receive character is added to the 16 byte receive fifo. this has four programmable trigger points as shown in the following diagram: once the fifo has received suf ficient characters to reach the fifo trigger point, an interrupt is generated that is serviced in order to remove all the characters from the fifo. if the stream stops adding characters to the fifo before the trigger point is reached. for example the trigger may set at eight when only six characters has been received. in this situation the uar t will generate an irq after specific timeout period from the end of the last character received. the timeout period, expressed in the number of characters can be calculated using the following equation: t= (4 x n char ) + 12 (n parity + n char + n stop +1) where: n char is the number of programmed bits per character (5, 6, 7 or 8) n parity is the number of programmed parity bits (1 unless no parity) n stop is the number of stop bits (1 ,1 or 2) the actual time for timeout is simply defined as : t= (4 x n char ) + 12 f braud where f braud is the baud rate. r x 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 t 1 4 i r q t 8 t 4 t 1 page 13 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s for example, communications at 9600 baud, 8 data bits, no parity and 1 stop bit would have the following timeout period: t= (4 x 8) + 12 44 = 4.4 chars t= (4 x 8) + 12 = 4.58 ms 0 + 8 + 1 + 1 10 9600 this timeout can significantly impact on the performance of the serial communications within an application. if your serial communications is single character orientated, it is better to set the fifo trigger point lower and handle more frequent receive interrupts. if your application transfers large blocks of data it is probably better to set the fifo trigger point higher . remember that the fifo trigger point does not define the size of the fifo; characters are still received after the trigger has been activated until all sixteen positions in the fifo have been 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 uar t 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. y ou 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 uar t 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 . t o set your own format refer to page 5-49 of the uar t 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) - t ransmits 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. y ou 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 c o n t r o l s y s t e m s c o n t r o l s y s t e m s void interrupt isr_serrq (void) - the interrupt service routine. this one checks the interrupt flag register of each port, clears the interrupt and sets the global interrupt flag. in this simple program, where only port is receiving at a time (and where the default settings provide a dif ferent interrupt for each port) it is suf ficient only to know that an interrupt has occurred. in situations where it is unclear which port generated the interrupt, this irs will need to be modified. page 5-46 of the uar t data sheet shows how to use the interrupt enable register to set the conditions for interrupt : for example, setting the board to generate an interrupt whenever a character has been received, or when the receive fifo has filled to a certain level, or a character has been successfully transmitted. void far *install (void interrupt (*faddr) ( ), int vect_num ) - installs the given isr onto the given interrupt vector void deinstall (void interrupt (*oldisr) ( ), int vect_num) - re-installs the old isr. page 15 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s appendix c. circuit diagrams 2192-09197-000-000 page 16 j606 PC-COM4 c o n t r o l s y s t e m s a a b b c c d d e e 4 4 3 3 2 2 1 1 1 1 xx/mar/98 created j60 6 1 3 pc-co m4 titl e: drawin g : ver issue date: sheet of iss e.c.o check approved $archive:: /hw/j 606/sch/j606.dsn $ $revision:: 10 $ $date:: 17/03/98 9:56 $ $author:: dgs $ ?1 998 arcom control systems, cambridge, england. bsd1 bsd2 bsd3 bsd4 bsd5 bsd6 bsd7 intc intb bsd0 bsd7 bsd6 bsd5 bsd4 bsd3 bsd2 bsd1 bsd0 bsd[0..7] bsd0 bsd1 bsd2 bsd3 bsd4 bsd5 bsd6 bsd7 /csa /csa /csb /csb /csc /csc /csd /csd /optcd1 /optcd0 /optab1 /optab0 lka4 lka5 lka8 lka9 lka6 /end /end /enc /enc /enb /enb /ena /ena /read busclk /sel /reset ispsdo ispsdi /read /sel /sel /sel lka7 inta sa9 sa6 sa1 sa9 sd0 sa0 sd[0..7] sa7 sd0 sd5 sa1 sd3 /ior sd6 sd4 reset sa3 sd7 reset sd5 sa[0..9] sa[0..9] sd6 sa4 sd1 sd7 sa2 sd2 sa7 sa3 sa2 sd1 sa0 sd3 sa8 sa4 /iow sa5 sd4 reset /iow sd2 /ior /ior sa8 sa5 /ior aen sa6 /iow /iow irq4 irq4 irq3 irq12 irq[3..15] irq11 irq7 irq11 irq7 irq9 irq12 irq4 irq3 irq3 irq3 irq7 irq5 irq15 irq12 irq10 irq15 irq3 intd irq7 irq5 irq9 irq3 irq10 irq10 irq10 irq5 irq10 irq11 irq15 irq15 irq4 irq4 irq12 irq12 irq11 irq9 irq5 irq5 irq11 irq7 irq9 irq5 irq15 irq11 irq9 irq15 irq7 irq4 irq12 irq9 irq10 txc /rtsc /dtrc txd /rtsd /dtrd rxc /ctsc /dsrc /dcdc /ric rxd /ctsd /dsrd /dcdd /rid ispmode /ispen ispsdi ispsdo ispsdo ispmode ispsdi /ispen ispsclk rtsb txb /rtsb /dtrb /ctsb /dsrb /rib /dcdb rxb-4 85 rxb-2 32 rtsa /dsra /ctsa /ria /dtra /rtsa tx a /dcda rxa-48 5 rxa-23 2 ispsclk gnd +5 +5 +5 gnd gnd +5 gnd +5 gnd +5 gnd +5 gnd +5 gnd gnd gnd gnd gnd +5 gnd gnd gnd gnd gnd +5 gnd lk34 lk36 lk31 ic10b 74hct00 4 5 6 ic10c 74hct00 9 10 8 ic10a 74hct00 1 2 3 ic3 74hct245 a1 2 a2 3 a3 4 a4 5 a5 6 a6 7 a7 8 a8 9 g 19 ab/ba 1 b1 18 b2 17 b3 16 b4 15 b5 14 b6 13 b7 12 b8 11 c31 100nf c60 100nf c69 100nf c63 100nf c32 100nf c22 100nf c65 100nf c64 100nf c33 100nf c66 22pf c67 22pf c62 4n7f c68 10uf c7 10uf xl 1 1m84 32 1 2 ic13 ilsplsi2032 80mhz io0 15 io1 16 io2 17 io3 18 io4 19 io5 20 io6 21 io7 22 y0 11 y1/res 35 y2/sclk 33 in0/sdi 14 in1/sdo 24 io8 25 io9 26 io10 27 io11 28 io12 29 io13 30 io14 31 io15 32 io16 37 io17 38 io18 39 io19 40 io20 41 io21 42 io22 43 io23 44 io24 3 io25 4 io26 5 io27 6 io28 7 io29 8 io30 9 io31 10 ispen 13 mode 36 geo0 2 ic20a 74hct32 1 2 3 ic20c 74hct32 9 10 8 r52 10k r51 10k r50 10k r49 10k r48 10k r47 10k r46 10k r45 10k r66 10k r63 10k r61 10k r60 10k r72 10k r71 10k r70 10k r69 10k r68 10k r67 10k r59 10k r56 10k r55 10k r57 10k r43 10k r44 10k r62 10k r58 10k r54 10k r33 1k0 r32 1k0 r20 470k r1 470r r64 omit ic20d 74hct32 12 13 11 ic19b 74hct14 3 4 ic19a 74hct14 1 2 ic19c 74hct14 5 6 ic19d 74hct14 9 8 ic19e 74hct14 11 10 ic19f 74hct14 13 12 a b lk32 a b lk27 pl2 isp gnd 1 sdo 2 ispen 3 mode 4 sdi 5 sclk 6 nc 7 nc 8 +5 9 gnd 10 r34 10k d1 red ic10d 74hct00 12 13 11 r65 0r0 r21 33r pl3 isabus 16 bit iochchk a1 sd7 a2 sd6 a3 sd5 a4 sd4 a5 sd3 a6 sd2 a7 sd1 a8 sd0 a9 iochrdy a10 aen a11 sa19 a12 sa18 a13 sa17 a14 sa16 a15 sa15 a16 sa14 a17 sa13 a18 sa12 a19 sa11 a20 sa10 a21 sa9 a22 sa8 a23 sa7 a24 sa6 a25 sa5 a26 sa4 a27 sa3 a28 sa2 a29 sa1 a30 sa0 a31 gnd b1 resetdrv b2 +5v b3 irq9 b4 -5v b5 drq2 b6 -12v b7 endxfr b8 +12v b9 gnd b10 smemw b11 smemr b12 iow b13 ior b14 dack3 b15 drq3 b16 dack1 b17 drq1 b18 refresh b19 sysclk b20 irq7 b21 irq6 b22 irq5 b23 irq4 b24 irq3 b25 dack2 b26 tc b27 bale b28 +5v b29 osc b30 gnd b31 sbhe c1 la23 c2 la22 c3 la21 c4 la20 c5 la19 c6 la18 c7 la17 c8 mem r c9 memw c10 sd8 c11 sd9 c12 sd10 c13 sd11 c14 sd12 c15 sd13 c16 sd14 c17 sd15 c18 memcs16 d1 iocs16 d2 irq10 d3 irq11 d4 irq12 d5 irq15 d6 irq14 d7 dack0 d8 drq0 d9 dack5 d10 drq5 d11 dack6 d12 drq6 d13 dack7 d14 drq7 d15 +5v d16 master d17 gnd d18 lk29 lk30 ic20b 74hct32 4 5 6 lk35 lk33 ic18 16c554 d0 66 d1 67 d2 68 d3 1 d4 2 d5 3 d6 4 d7 5 a0 34 a1 33 a2 32 ior 52 i0w 18 csa 16 csb 20 csc 50 csd 54 reset 37 inta 15 intb 21 intc 49 intd 55 rxrdy 38 txrdy 39 sel16/68 31 vcc(1x/4x ) 30 intsel 65 x1(ckin) 35 x2 36 txa 17 dtra 12 rtsa 14 rxa 7 dsra 10 ctsa 11 cda 9 ria 8 txb 19 dtrb 24 rtsb 22 rxb 29 dsrb 26 ctsb 25 cdb 27 rib 28 txc 51 dtrc 46 rtsc 48 rxc 41 dsrc 44 ctsc 45 cdc 43 ric 42 txd 53 dtrd 58 rtsd 56 rxd 63 dsrd 60 ctsd 59 cdd 61 rid 62 vcc 13 vcc 47 vcc 64 gnd 6 gnd 23 gnd 40 gnd 57 r53 10k lk28 page 17 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s a a b b c c d d e e 4 4 3 3 2 2 1 1 1 1 xx/mar/98 created j60 6 2 3 pc-co m4 titl e: drawin g : ver issue date: sheet of iss e.c.o check approved $archive:: /hw/j 606/sch/j606.dsn $ $revision:: 10 $ $date:: 17/03/98 9:56 $ $author:: dgs $ ?1 998 arcom control systems, cambridge, england. tx a rtsa rxa-48 5 a-rx b a-rxa a-t xbb a-tx ba txb rtsb rxb-4 85 b-r xb b-rx a b- txbb b-t xba f+5 +5i-a 0vi-a f+5 +5i-b 0vi-b f+5 +5i-a 0vi-a +5i-b 0vi-b +5i-a +5i-b 0vi-a 0vi-b +5 gnd chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis chassis fgnd fgnd fgnd ic9 ltc485 txi 4 rxo 1 + 6 - 7 de 3 re 2 vcc 8 gnd 5 ic16 pc400 1 2 4 3 5 ic17 pc400 1 2 4 3 5 a b lk26 a b lk25 ic12 pc400 1 2 4 3 5 ic8 ltc485 txi 4 rxo 1 + 6 - 7 de 3 re 2 vcc 8 gnd 5 ic7 ltc485 txi 4 rxo 1 + 6 - 7 de 3 re 2 vcc 8 gnd 5 ic15 pc400 1 2 4 3 5 ic14 pc400 1 2 4 3 5 a b lk24 a b lk23 ic11 pc400 1 2 4 3 5 ic6 ltc485 txi 4 rxo 1 + 6 - 7 de 3 re 2 vcc 8 gnd 5 lc2 10nf lc1 10nf reg1 nmd050505s 5vin 1 0vin 2 5vout1 3 0vout1 4 5vout2 5 0vout2 6 c30 100nf c29 100nf c45 100nf c44 100nf c49 100nf c28 100nf c27 100nf c42 100nf c43 100nf c48 100nf c47 220pf c46 220pf c41 220pf c40 220pf c51 220pf c50 220pf c53 220pf c52 220pf c55 220pf c54 220pf c57 220pf c56 220pf c19 4n7f c20 4n7f c17 4n7f c18 4n7f c38 4n7f c39 4n7f c35 4n7f c34 4n7f c59 4n7f c58 4n7f c61 10uf c37 10uf c36 10uf lk21 lk22 lk19 lk20 r24 470r r25 470r r39 470r r40 470r r41 470r r42 470r r22 470r r23 470r r37 470r r38 470r r35 470r r36 470r r28 4k7 r29 4k7 r31 4k7 r17 4k7 r16 4k7 r18 4k7 r19 4k7 r27 4k7 r26 4k7 r30 4k7 r13 4k7 r12 4k7 r14 4k7 r15 4k7 r7 62r r8 62r r9 62r r10 62r r2 62r r3 62r r4 62r r5 62r 2192-09197-000-000 page 18 j606 PC-COM4 c o n t r o l s y s t e m s a a b b c c d d e e 4 4 3 3 2 2 1 1 1 1 xx/mar/98 created j606 3 3 pc-co m4 titl e: drawin g : ver issue date: sheet of iss e.c.o check approved $archive:: /hw/j 606/sch/j606.dsn $ $revision:: 10 $ $date:: 17/03/98 9:56 $ $author:: dgs $ ?1 998 arcom control systems, cambridge, england. txd /rtsd /dtrd txc /rtsc /dtrc rxc /ctsc /dsrc /dcdc /ric rxd /ctsd /dsrd /dcdd /rid a- txbb a-rx b /d-txd d-dtr d-rts d-dcd /d-rxd d-dsr d-cts c-rts c-dtr /c-txd /c-rxd c-cts c-dsr c-dcd c-ri /d-rxd d-cts d-dsr d-dcd d-ri /d-txd d-rts d-dtr b-r xb b-txbb c-dsr d-ri b- txba b-rx a c-cts c-rts a-t xba c-ri a-rxa txb /rtsb /dtrb tx a /rtsa /dtra rxa-23 2 /ctsa /dsra /dcda /ria rxb-2 32 /ctsb /dsrb /dcdb /rib a-rts a-dtr /a-txd /a-rxd a-cts a-dsr a-dcd a-ri /b-rxd b-cts b-dsr b-dcd b-ri /b-txd b-rts b-dtr /c-rxd c-dtr c-dcd /c-txd b-rts b-dsr b-cts b-ri a-ri a-rts a-cts a-dsr /b-txd b-dtr b-dcd /b-rxd a-dtr /a-txd /a-rxd a-dcd fgnd fgnd f+5 f+5 chassis fgnd 0vi-b +5i-b 0vi-b 0vi-a fgnd fgnd f+5 f+5 0vi-a +5i-a 0vi-a 0vi-b +5 fgnd gnd ic2 max 211e t1i 7 t2i 6 t3i 20 t4i 21 r1o 8 r2o 5 r3o 26 r4o 22 r5o 19 t1o 2 t2o 3 t3o 1 t4o 28 r1i 9 r2i 4 r3i 27 r4i 23 r5i 18 en 24 shdn 25 gnd 10 c1+ 12 c1- 14 c2+ 15 c2- 16 v+ 13 v- 17 vcc 11 ic1 max 211e t1i 7 t2i 6 t3i 20 t4i 21 r1o 8 r2o 5 r3o 26 r4o 22 r5o 19 t1o 2 t2o 3 t3o 1 t4o 28 r1i 9 r2i 4 r3i 27 r4i 23 r5i 18 en 24 shdn 25 gnd 10 c1+ 12 c1- 14 c2+ 15 c2- 16 v+ 13 v- 17 vcc 11 c10 100nf c3 100nf c9 100nf c6 100nf c5 100nf c2 100nf c4 100nf c1 100nf c8 100nf c11 100nf r6 100r ic5 max 211e t1i 7 t2i 6 t3i 20 t4i 21 r1o 8 r2o 5 r3o 26 r4o 22 r5o 19 t1o 2 t2o 3 t3o 1 t4o 28 r1i 9 r2i 4 r3i 27 r4i 23 r5i 18 en 24 shdn 25 gnd 10 c1+ 12 c1- 14 c2+ 15 c2- 16 v+ 13 v- 17 vcc 11 ic4 max 211e t1i 7 t2i 6 t3i 20 t4i 21 r1o 8 r2o 5 r3o 26 r4o 22 r5o 19 t1o 2 t2o 3 t3o 1 t4o 28 r1i 9 r2i 4 r3i 27 r4i 23 r5i 18 en 24 shdn 25 gnd 10 c1+ 12 c1- 14 c2+ 15 c2- 16 v+ 13 v- 17 vcc 11 c26 100nf c16 100nf c21 100nf c23 100nf c12 100nf c13 100nf c14 100nf c15 100nf c25 100nf c24 100nf pl1 d-type 50 rc49 17 rc45 32 rc43 15 rc39 30 rc37 13 rc33 28 rc31 11 rc27 26 rc25 9 rc21 24 rc19 7 rc15 22 rc13 5 rc9 20 rc7 3 rc3 18 rc1 1 rc2 34 rc8 36 rc14 38 rc20 40 rc26 42 rc32 44 rc38 46 rc44 48 rc50 50 rc4 2 rc6 19 rc5 35 rc10 4 rc12 21 rc11 37 rc16 6 rc18 23 rc17 39 rc22 8 rc24 25 rc23 41 rc28 10 rc30 27 rc29 43 rc34 12 rc36 29 rc35 45 rc40 14 rc42 31 rc41 47 rc46 16 rc48 33 rc47 49 b a lk18 b a lk16 b a lk14 b a lk12 b a lk10 b a lk9 b a lk7 b a lk5 b a lk3 b a lk1 b a lk15 b a lk17 b a lk13 b a lk11 b a lk8 b a lk6 b a lk4 b a lk2 r11 100r tp 6 tp 5 tp 1 tp 4 tp 3 tp 2 page 19 2192-09197-000-000 j606 PC-COM4 c o n t r o l s y s t e m s 2192-09197-000-000 page 20 j606 PC-COM4 c o n t r o l s y s t e m s product information f ull information about other ar com products is available via the f f a a x x - - o o n n - - d d e e m m a a n n d d s s y y s s t t e e m m , (t elephone numbers ar e listed belo w), or b y contacting our w w e e b b s s i i t t e e in the u k at: w w w w w w . . a a r r c c o o m m . . c c o o . . u u k k or in the u s at: w w w w w w . . a a r r c c o o m m c c o o n n t t r r o o l l s s . . c c o o m m u u s s e e f f u u l l c c o o n n t t a a c c t t i i n n f f o o r r m m a a t t i i o o n n c c u u s s t t o o m m e e r r s s u u p p p p o o r r t t s s a a l l e e s s o o r r f f o o r r t t h h e e u u s s : : e e - - m m a a i i l l t el: +44 (0)1223 412 428 t el: +44 (0)1223 411 200 icpsales@ar comcontrols.com f ax: +44 (0)1223 403 409 f ax: +44 (0)1223 410 457 e-mail: support@ar com.co .uk e-mail sales@ar com.co .uk u u n n i i t t e e d d k k i i n n g g d d o o m m arcom control systems ltd clifton road cambridge cb1 7ea, uk tel: 01223 411 200 fax: 01223 410 457 fod: 01223 240 600 u u n n i i t t e e d d s s t t a a t t e e s s arcom control systems inc 13510 south oak street kansas city mo 64145 usa tel: 816 941 7025 fax: 816 941 0343 fod: 800 747 1097 f f r r a a n n c c e e arcom control systems centre d?affaires scaldy 23 rue colbert 7885 saint quentin cedex, france tel: 0800 90 84 06 fax: 0800 90 84 12 fod: 0800 90 23 80 g g e e r r m m a a n n y y kostenlose infoline: tel: 0130 824 511 fax: 0130 824 512 fod: 0130 860 449 b b e e l l g g i i u u m m groen nummer: tel: 0800 7 3192 fax: 0800 7 3191 i i t t a a l l y y numero verde: tel: 1677 90841 fax: 1677 80841 fod: 1678 73600 n n e e t t h h e e r r l l a a n n d d s s gratis 0800 nummer: tel: 0800 0221136 fax: 0800 0221148 whilst arcom?s sales team is always available to assist you in making your decision, the final choice of boards or systems is s olely and wholly the responsibility of the buyer. arcom?s entire liability in respect of the boards or systems is as set out in arcom ?s standard terms and conditions of sale. if you intend to write your own low level software, you can start with the source code on the disk which is supplied. this is e xample code only to illustrate use on arcom?s products. it has not been commercially tested. no warranty is made in respect of this co de and arcom shall incur no liability whatsoever or howsoever arising from any use made of the code. arcom control systems ltd operate a company-wide quality management system which has been certified by the british standards institution (bsi) as compliant with iso9001:1994 ? 1999 arcom control systems ltd arcom control systems is a subsidiary of fairey group plc. all trademarks recognised. issue a v1 iss 1 981 1 10 manual first released in this format comments pcb manual |
Price & Availability of PC-COM4
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |