Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 20 of 28

Troubleshooting Nuclear Instruments, pages 191 to 200

Pages 191 to 200 of 273

The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Camac Output register Driver CAMAC

Page 191

Chapter 9 9. 12

-32-

MISCELLANEOUS BOARD

The miscellaneous board is responsible for various a c t i v i t i e s such as c o m m u n i c a t i o n with the keyboard and communication w i t h e x t e r n a l units t h r o u g h the serial interface RS-232 or TTY. H o w e v e r , the most important task is the m a t h e m a t i c a l operation during the pulse height analysis (PHA). As it has bean previously m e n t i o n e d , the ADC board presents the h e i g h t of the input pulse in the binary code. This binary number is the address of the memory cell (RAM, residing at the CPU board) in which the content should be incremented by 1. 9.12.1

Collect Part

This a d d i t i o n is p e r f o r m e d on the miscellaneous board within the p a r t schematically given in sheet 4 and 5. See Fig. 9.35 for the block diagram. Buffered lines BADO to BAD? (sheet 4) are seen as UDO to DD7 at A-side of the b i d i r e c t i o n a l b u f f e r A81 (74LS245). Data flow d i r e c t i o n is d e t e r m i n e d by signal at pin l, A81. When data is p r e s e n t - i n d i c a t e d by DATA-V2 (sheet 5) - it is l a t c h e d into A37 an 8-bit latch 74LS273. O u t p u t s of A37 are connected to A - i n p u t s of 8-bit summer A 2 5 , A38 (two 74LS283 connected serially). In the PHA (PHA line, pin 2, A 4 7 , high) m o d e , the a d d i t i o n of "1" is achieved by applying high s t a t e to the carry input (pin 7, A38) from f l i p - f l o p A7 while B-inputs are g r o u n d e d . The number of counts for each bytes. See A P P E N D I X for details.

channel are contained in three

SYSTEM BUS

JL X MUX A46,A50 ^ A48,A52 A33 A44

DDO-DD7

A81

LATCH A37

A2S A38

STATUSREG

1 D Q A35

A47,A49,A51

CONTROL

FF

LER

DMA REQ.

I/O

Fig.

(204)

DMA ACK.

1 ADDR

DMA CYCLE

ADC

MISC.

MISC.

sheet 4 sheet 4 sheet 5

9.35: Collect part of the Miscellaneous Board

Page 192

-33-

Chapter 9

In the first s t e p , "1" is added to BYTE 1. The result is put in the f l i p - f l o p A7 . The m o d i f i e d BYTE 1 is r e t u r n e d to the same memory cell through d e m u l t i p l e x e r s A50, A52 (sheet 4) and the bidirectional b u f f e r A81. N e x t , BYTE 2 is inserted and the procedure is repeated. Then

BYTE 3 is t r e a t e d .

However, only four LSB are a part of T h e r e f o r e , by a p p l y i n g BYTE 3 signal to the gate A12 and A24, the sumation is l i m i t e d to four LSB only. the n u m b e r r e p r e s e n t e d by BYTE 1, BYTE 2 and BYTE 3.

If during the processing of BYTE 1 or BYTE 2 carry p r o d u c e d , f u r t h e r sumation is meaningless and is s t o p p e d .

is not

When the DMA cycle is o v e r , HOLD command is removed and 8085 is r e t u r n e d to the normal o p e r a t i o n through line RST 5.5. All commands controlling the d a t a flow and the d e s c r i b e d a r i t h m e t i c are generated by the circuit containing A l O , A5, A6, A7, A8, A12, A24 and A65 (situated in sheet 5, left down). We have assumed up to now t h a t BYTE 1, BYTE 2 and BYTE 3 are a v a i l a b l e . However, for proper selection the a d e q u a t e address should be given to RAM.

The p o s i t i o n of BYTE 1, BYTE 2 and BYTE 3 w i t h i n the RAM is given in Fig. 9.36. For proper a d d r e s s i n g , the address line A15 should be 1 all the time when communicating with RAM (ROM is a d d r e s s e d by A15 = 0). A13 and A14 have to be set according to Table 9.5.

TABLE 9.5

A15

A14

A13

BYTE 1

1

0

0 d e t e r m i n e d by base a d d r e s s and range

BYTE 2

1

0

1 d e t e r m i n e d by base address and range

BYTE 3

1

1

0 d e t e r m i n e d by base address and range

A12

.............................AO

The above-mentioned address lines are controlled by flip-flops A13 through three-state buffer A65 (74LS367, sheet 5). During the DMA-cycle the CPU data bus is t r i - s t a t e d and e x t e r n a l users have d i r e c t access to the RAM. Check TP5 for A13 by using DCHA2 as the trigger. The end of the DMA cycle is indicated by DMEND signal from monostable A5 and triggered by the signal t h a t can be observed at TP4.

(205)

Page 193

Chapter 9

-34-

U n t i l now we have talked a b o u t the ADC-gain of 8291 channels. F r e q u e n t l y we use less c h a n n e l s to have the possibility for r e g i s t e r i n g several spectra. In such cases the s t a r t i n g address also d e p e n d s on the base a d d r e s s . For a v a i l a b l e base a d d r e s s e s and their c o d i n g , see Table 9.6. The c u r r e n t base a d d r e s s is kept w i t h i n the miscellaneous board. 0000

003F

Interrupts 64

0040

Progrim (Read Only) 16K 3FFF 4000

Program Bank 0 (Read Only) 16K 7FFF 8000

Data Byte 1 (LSB) 2K. 4K. or BK. 9FFF AOOO

Data Byte 2 2K. 4K, or BK BFFF COOO

Data Byte 3 (MSB) 2K, 4K, or 8K DFFF E 000

V a r i a b l e s and Parameter Stack

3.75K EF7F EFBO

Return Stack 126 FOOO

Reserved FFFF

Fig.

y.36: M e m o r y map

TABLE 9.7

TABLE 9.6

Base

R2

Rl

RO

Range

Ü

Ü 256 512 768 1024 2048 3072 4096 6144

0 0 0 0 l l

0 0

0

0 l

0

0 0

0

256 512 1024 2048 4096 8192

B4

B3

B2

Bl

BÜ

Ü Ü Ü

0

Ü

Ü

Ü

0

Ü Ü u l l

0

0 0 l

Ü

U

0 Ü

0 0 0 u l l

1

1

0 l l

Ü 0

Ü Ü

Ü l Ü Ü

Ü 0

0 l l l l

For a p r o p e r d i s p l a y , the m e m o r y a d d r e s s s h o u l d n o t r u n h i g h e r number than the s t a r t i n g address plus t h e n u m b e r o f c h a n n e l s . T h e

(206)

Page 194

-35-

Chapter 9 the of channels is also kept within the miscellaneous board under name range. See Table 9.7 for the c o d i n g . The range code is used by the l i m i t logic on s h e e t 4 (A44, A 5 5 , A56 and A57) to p r e v e n t the AUC from generating an address larger than the memory assigned to it . Where to f i n d , and how to use the base a d d r e s s and the range code? Miscellaneous board (sheet 4) contains its own status r e g i s t e r . You can find l a t c h e s A47, A49 and A5l (74LS273, 74LS174, 74LS273) p r o v i d i n g 22-bit d a t a storage. The last, 8-bit latch 74LS273 also c o n t r o l l e d by the miscellaneous board is m o v e d into the AUC board (sheet 4, A35). The lowest 5 bits are the base a d d r e s s while the t h r e e h i g h e s t b i t s r e p r e s e n t range code (RO, Rl, R2). In A 4 7 , A49 and A 5 1 , i n f o r m a t i o n is s t o r e d a b o u t the c u r r e n t o p e r a t i n g mode (PHA, MCS) and o t h e r system v a r i a b l e s . i n f o r m a t i o n can be sent to DDO to DD7 lines t h r o u g h the t h r e e - s t a t e multiplexers 74LS257 (A46, A47, A48, A50). Such c o n f i g u r a t i o n called I/O p o r t in the c o m p u t e r language.

This is

D a t a a r e w r i t t e n into o u t p u t l a t c h e s w i t h signals d e l i v e r e d a t o u t p u t s of A62 (two-to-four line d e c o d e r ) and a c t i v a t e d by the 8085 OUT c o m m a n d (pin 5, A63). Data from p o r t s are read when the 8085 IN signal is given (pin 9, A63). The port addresses are transmitted through lines BA8 , BA9 , B A 1 2 , B A 1 3 , B A 1 4 and BA15. O u t p u t lines P03 ( o u t p u t ) and PI3 ( i n p u t ) c o n t r o l the p o r t in ADC.

(207)

Page 195

Chapter 9

-36-

APPENDIX 1 To count up to 2^0 counts each channel has to be three bytes long. The four highest b i t s of the t h i r d b y t e , not used for channel c o n t e n t , p r o v i d e the information about the special t r e a t m e n t for this channel:

bit 21, if s e t , the c o r r e s p o n d i n g point is i n t e n s i f i e d ; bit 22, if s e t , the bar is d i s p l a y e d instead of the p o i n t ; bit 23, if s e t , indicates the channel w i t h the biggest content ; bit 24, if s e t , channel is w i t h i n the region of interest.

(208)

Page 196

Chapter 10 INTERFACES

Page 197

-110

INTERFACES

10.1

GENERAL

C h a p t e r 10

All information delivered in the following chapters assumes some basic knowledge of interfaces and of Personal Computers (PC). It is d e v o t e d entirely to problems you will be faced with when selecting interfaces or working with t h e m . The three major g r o u p s of interfaces which w i l l be covered are : (i)

Standard Interface Used for Data C o m m u n i c a t i o n the serial interface RS232 C/V24 the parallel interface Centronics (ii)

Standard Interface Used for Remote Control of Instruments

(iii)

the IEC 625 (IEEE-488, GPIB) interface

Non-Standard Interface for Remote Control of Peripherals I/O p o r t s Motor control

10.2

SELECTION OF INTERFACE

Whenever questions.

you have to select an interface, ask yourself a a.

What is available at my laboratory?

b.

Who is going to be the controller (master) of my system?

few

Is it a PC? Is it a special d e d i c a t e d device which only p r o v i d e s d a t a like a multichannel analyzer (MCA), s e a l e r / t i m e r , d i g i t a l m u l t i m e t e r (DVM)? c.

What am I going to connect (slave)?

-

Is it a data terminal?

communication device like a

Am I going to control sealer/timers, MCAs?

different printer instruments or a like DVMs ,

Do I have to control peripherals such as sample changers or motors ?

(211)

Page 198

Chapter 10

-2-

Are Interfaces already a v a i l a b l e in the master?

If "YES", can I use them for the job I am going to do?

-

If "NO", market?

what is available from the company or

Is an i n t e r f a c e already available am going to connect?

on the in the device (the slave) I

If interfaces are available in both the master and the slave, are they c o m p a t i b l e ?

ATTENTION;

10.3

Make your decisions very carefully; you will have less trouble later on.

SERIAL INTERFACE RS-232C/V24

The a p p l i c a t i o n of the RS-232 interface is widespread in mainframes, m i n i c o m p u t e r s , microcomputers, p r i n t e r s and all types of terminals. It is used for a SERIAL BINARY DATA INTERCHANGE between two devices. The basic principles of the standard are implemented in such devices; however, various options may occur from device to device. These variations become extremely significant when interfacing different combinations of computers, printers and terminals. A general rule may be established as follows.

NOTE ;

When connecting between devices, make sure that an o u t p u t signal goes to an input signal and vice versa.

First of all, terms which are used for this interface must explained : DTE -

DATA TERMINAL EQUIPMENT like c o m p u t e r s , terminals or printers

DCE -

DATA COMMUNICATION EQUIPMENT like modems be

As one can see from above, two different types of devices exist which can be connected together. The first case to connect a DTE to a DCE should not create any problem; you simply connect them straight through. This is because each o u t p u t pin on a DTE has a corresponding input pin on the DCE. Signal flow is shown from the DTE side.

(212)

Page 199

Chapter 10

-3Lead name (abbreviation)

PC-Pin (DTE)

Modem-Pin (DCE)

P r o t e c t i v e Ground (PG) ----------> 1 Transmitted Data (TD) -----------> 2 Received Data (RD) <-------------- 3 Request to Send (RTS) -----------> 4 Clear to Send (CIS) <---_--------- 5 Data Set Ready (DSR) <------------ 6 Signal Ground (SG) --------------> 7 Data Carrier Detect (DCD) <------- 8 Data Terminal Ready (DTR) -------> 20

1 2 3 4 5 6 7 8 20

The second case to connect two devices from the same t y p e , namely two DTK's t o g e t h e r , can bring you into trouble. Therefore, The kind of cable we have to use is let's do it step by s t e p , called a "NULL MODEM CABLE GROUND:

connect them straight through

Function

PCl-Pin (DTE)

PC2-Pin (DTE)

Funct ion

PG

1 <•

•>

1

PG (Protective Ground)

SG

7

•>

7

SG (Signal Ground)

DATA LEADS

Function

<•

Pin 2 is used for transmitted data and pin 3 for received data. Data are t r a n s m i t t e d over pin 2 from one machine and received on pin 3 at the other. To allow for proper data transmission and reception at b o t h machines, cross pin 2 on one end with pin 3 on the other end. PCl-Pin (DTE)

PC2-Pin (DTE)

Func t ion

PG

1 <___________> l

PG (Protective Ground)

SG

7 <•___

7

SG (Signal Ground)

TD

2

_____ 2

TD (Transmit Data)

RD

3 *~ "

^~~^ 3

RD (Receive Data)

"~-.--

______>>

Data terminal e q u i p m e n t (DTE)-provided signals are all that are present in a null-modem cable. This limitation forces us to provide DCE signals w i t h available DTE signals. S p e c i f i c a l l y , the DTE signals (RTS and DTR) must L« used to p r o v i d e or e m u l a t e the DCE-provided signals (DSR, r.TS and DCD). Data Terminal Ready (DTR) pin 20 is ordinarily p r o v i d e d by the DTE to indicate t h a t power is on at the terminal. For an indication that the line is e s t a b l i s h e d , the DCE normally gives a signal on pin 6 Data Set Ready (DSR). As long as DSR is on, one can assume t h a t DCE is a v a i l a b l e for d a t a transmission. If pin 6 is not p r e s e n t , the line or connection is not available. To emulate DSR (pin 6) at b o t h e n d s , we s t r a p the DTR signal (pin 20) at one device across to pin 6 on the other device. The same strapping is done in the other

(213)

Page 200

Chapter 10

-4- direction. By strapping pin 20 across to pin 6, whenever DTR is high (the machine power is on), the other end will get indication t h a t the transmission line is available. If power is o f f , the o t h e r end will not have ÜSR, indicating that the c o m m u n i c a t i o n p a t h is not established. Function

PCl-Pin (DTE)

PG

1 <•

SG

7 <•

TD

2

PC2-Pin ( D T E )

Function PG (Protective Ground)

•> 7

SG (Signal Ground)

2

TD (Transmit Data)

RD

RD (Receive Data)

DSR

6

DTR

20

DSR (Data Set Ready)

20

DTR (Data Terminal Ready)

The other element of the control function on the interface is path control. Request To Send (RTS) pin 4 is normally generated by the DTE. For data transmission to be a l l o w e d , Clear To Send (CTS) pin 5 must be received by the same DTE. So we loop the RTS signal back to the o r i g i n a t i n g DTE by wiring it back to pin 5 (CTS). Whenever the DTE - for example PCI - raises RTS, it immediately receives a CTS signal i n d i c a t i n g that data transmission is now possible. As for the need of the receiving device to have an i n d i c a t i o n that data will be arriving, we must provide for Data Carrier D e t e c t (DCD) pin 8 to be derived from the same source, RTS. Thus we also connect RTS (pin 4) at the originating DTE (PCI) to the Carrier D e t e c t lead (pin 8) from receiving d e v i c e . By making these cross connections, not only will a CTS signal be given, but when RTS is raised, the other end will also receive its DCD signal, indicating that data transmission is possible. Repeat these c o n n e c t i o n s at both DTE's to allow two-way transmission. Func t ion

PCl-Pin

(DTE)

PC2-Pin

PG

! < - - - -- - - - - - > 1

SG

7

<

TD

2

(DTE)

Funct ion PG (Protective Ground)

.__, - > 7

SG (Signal Ground)

__

__-

2

TD (Transmit Data)

RD

3 <f~""

"""•^

3

RD (Receive Data)

DSR

6

^_

--7

6

DSR (Data Set Ready)

DTR

20

"" ~"

^~"^"-

20

DTR (Data Terminal Ready)

RTS

4, i

4

RTS (Request To Send)

CTS

5 « - *-^ <--""

5

CTS (Clear To Send)

DCD

8 ^"

8

DCD (Data Carrier D e t e c t )

(214), - ^