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

The text of a manual · part 18 of 28

Troubleshooting Nuclear Instruments, pages 171 to 180

Pages 171 to 180 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 171

Chapter 9

-12-

A64, pins 4, 1, 13, 10; and A63, pins 1 and 4 - most significant bit) we can assume that the ADC is working properly. In order to observe the binary o u t p u t , the ADC board should be e x t r a c t e d and e x t e n d e d by using the extension c a r d . In the case of failure, followed step by step. 1.

the signal processing should be

Connect the oscilloscope probe to TP5 and clip the oscilloscope ground to TP9 to observe the input signal. Then repeat the observation moving the probe to the TP5. Note that the signal at TP5 follows the ascending side of the input pulse and remains c o n s t a n t after the peak has been reached. This is the i n d i c a t i o n t h a t the s t r e t c h e r works properly. If not, skip the next steps and go to 2. One or two microseconds l a t e r the discharge process starts. The slope of the linear a p p r o a c h to zero d e p e n d s on the conversion gain. A few hundred m i l i v o l t s below zero, conversion is s t o p p e d and the ramp r e t u r n s to zero. The analog part of the conversion was successful. Note the case when the input signal exceeds the u p p e r level d i s c r i m i n a t o r (A28) s e t t i n g . The c o n t r o l logic then sets DUMP to logic 1; Q24 and Q25 are b o t h c o n d u c t i n g and fast d i s c h a r g e follows. During the i n t e r v a l of the linear d e s c e n t , the zero pulses from the 100 MHz clock are c o u n t e d . The clock is running permanently. Its o p e r a t i o n can be observed by c o n n e c t i n g the oscilloscope to TP6 and using the c o r r e s p o n d i n g ground TP7 to get a representative picture without superimposed oscillations. In the pulse analyze m o d e , clock pulses are passing NOR gates in A89. They can be o b s e r v e d at pin 6 and pin 11 of the b e f o r e - m e n t i o n e d c i r c u i t . When all the c o u n t i n g c o n d i t i o n s have been m e t , the synchronizing unit is a c t i v a t e d . The SYNC/ signal is delivered at pin 7 , A83. Counting s t a r t s . The address counter consists of A79 t h r o u g h A82 and is c o n f i g u r e d as a 14-bit r i p p l e counter. The 14th bit is used for under and overflow d e t e c t i o n . During rampdown sequence, the ramp counter and ramp current are enabled and synchronized to the 100 MHz clock. The r e s u l t a n t d i g i t a l a d d r e s s in the address c o u n t e r r e p r e s e n t s the m a g n i t u d e of the ADC analog i n p u t . The c o u n t i n g can be followed from stage to stage if the i n p u t signal is high enough to a c t i v a t e the higher bits too and if the s e l e c t e d number of channels is s u f f i c i e n t . For i n s t a n c e , if the channel number was set to 512, then only the lower 9 b i t s will be active. Set the oscilloscope time base to smaller t i m e / d i v i s i o n values to display only a few periods of the observed signal. Then move the probe to pin 5, A82 and set t i m e / d i v i s i o n value to 1 or 2 microseconds per division. full length of the pulse train of the input pulse.

(184)

Now you can observe the w h i c h should follow the height

Page 172

-13-

Chapter 9

When counting is f i n i s h e d , the resulting number is transferred into s h i f t r e g i s t e r s A85, A86, A87 and A88. F i n a l l y , the d a t a are m o d i f i e d in four A - b i t adders A63, A 6 4 , A65 and A66. The binary n u m b e r w h i c h was loaded into shift registers A85, A86, A87 and A88 from the sliding scale counter is now s u b t r a c t e d . 2.

There is no signal at TP5. STRET OFF m i g h t be high. In this case the u n i d i r e c t i o n a l a m p l i f i e r c h a r g i n g Cll is d i s a b l e d . To v e r i f y this p o s s i b i l i t y , join pin 9, A86 for a moment to the ground. If an a d e q u a t e signal at TP5 appears, the fault is w i t h i n the ADC b o a r d , c o n t r o l logic part. If the g r o u n d i n g does not restore normal operation, the unidirectional a m p l i f i e r is b a d . Check all t r a n s i s t o r s .

The next p o s s i b i l i t y is the v o l t a g e following the ascent side of the p u l s e , but not dropping back, to zero. In this case, the discharging constant current source is not s w i t c h e d on, or the source is bad. RAMP ON s i g n a l (A29, pin 6) should be high during the d i s c h a r g e . If high state is r e v e a l e d , then the c u r r e n t source is bad. C o n c e n t r a t e your o b s e r v a t i o n s on t r a n s i s t o r s Q20, Q21, Q22, Q23, Q26, Q27, Q28 and c o m p a r a t o r A77 (LF411). If RAMP ON is low and d i s c h a r g i n g doesn't take p l a c e , the f a u l t is p r o b a b l y in the c o n t r o l logic as before. A good t e s t to check a p a r t of the d i s c h a r g i n g system is to use the f a s t discharger by injecting a bigger current through t r a n s i s t o r Q29 c o n t r o l l e d by t r a n s i s t o r Q24. If the DUMP signal, which is nornally low, can be m a d e high by joining the c o r r e s p o n d i n g g a t e o u t p u t to 5V. However, by s h o r t - c i r c u i t i n g the emitter and collector of transistor Q29, the same e f f e c t is achieved. The command to s t a r t c o n v e r s i o n , i.e. to inject the d i s c h a r g i n g c u r r e n t i n t o C l l , is given by the d i s c r i m i n a t o r A16 when the input signal has d e c r e a s e d to 90% of its a m p l i t u d e .

Two a d d i t i o n a l tricks used a c c u r a c y w i l l be d e s c r i b e d .

during the c o n v e r s i o n to i m p r o v e

When c o n s t a n t c u r r e n t g e n e r a t o r is c o n n e c t e d to discharge the storing c a p a c i t o r , t h e r e s u l t i n g ramp voltage m i g h t d e v i a t e from linearity b e c a u s e of the t r a n s i e n t phenomena. T h e r e f o r e , counting s t a r t s later. The lost time is c o m p e n s a t e d for by c o u n t i n g longer. C o u n t i n g is s t o p p e d by the zero crossing d i s c r i m i n a t o r w h i c h is actually set about 80 mV below the zero level. Instead of i n t r o d u c i n g the time delay T b e f o r e c o u n t i n g , we can count from the very b e g i n n i n g , but s e t t i n g the c o u n t e r to the a d e q u a t e n e g a t i v e v a l u e - N . Then a f t e r NX clock period = T, the counter will be at zero. The l o a d i n g , w h i c h is d i f f e r e n t for d i f f e r e n t conversion rates, is realized t h r o u g h the p a r a l l e l input of c o u n t e r s .

The second trick is the use of the so-called sliding scale. Because of the i n t e r f e r e n c e of the s u r r o u n d i n g d i g i t a l c i r c u i t s , the produced ramp v o l t a g e m i g h t be m o d u l a t e d . This would result in spectra d e f o r m a t i o n . The idea is to use in successive m e a s u r e m e n t s different p a r t s of the ramp voltage. T h e r e f o r e , the binary

(185)

Page 173

-14-

Chapter 9 c o u n t i n g system is additionally preloaded with 1, 2, 3 ..., up to 18. The r e s u l t i n g binary number would thus be too big by 1, 2, 3 .... To get the correct v a l u e , this number is s u b t r a c t e d in the adders A 6 3 , A64, A65 and A67. S u b t r a c t i o n is implemented by the a d d i t i o n of the two's c o m p l e m e n t . Lines QLO to Q L 1 2 , with the signals representing the result of the c o n v e r s i o n , have to be connected to the a d d r e s s - d a t a bus (BADO, BAU1, BAD2, BAU4, BAD6, BAD?, A8, A9, A10, A l l , A12). The c o n n e c t i o n is done t h r o u g h three-state b u f f e r s A33 and A44 are used between. 9.4

CPU BOARD

9.4.1

Processor Description

The heart of the CPU board is the INTEL 8085 microprocessor w i t h the pin assignment shown in Fig. 9.15. Because of the shared address and data pins, an a d d i t i o n a l latch must be a d d e d externally to create the normal 16-bit address and 8-bit d a t a bus from the m i c r o p r o c e s s o r ADU - AD7 and A8 - A15 lines.

TABLE 9.3: S t a t u s signals

STATUS SIGNALS SO SI IO-M/ 1 1 0 1 0 0 1 0 0 1 0 1 1 1 0 1 1, 1 1 0 0

Type of Machine Cycle Op Code Fetch (OF) Memory Read (MR) Memory Write (MW) I/O Read (IOR) I/O Write (IOW) Interrupt Acknowledge (INA) Bus Idle xi C 1

40 vcc

X2 C 2

39 38 37

HOLD HLDA CL K (OUT) RESET IN READY IO/M

RESET OUT C 3

SOD C 4 SID C 9 TRAP C 6 RST75 C 7

36 35 34 33

RST6S C 8 RST55 C 32 INTR C 31 6A 6 30 INTA C Î Ï 29 ADo C 12 AC] £ 13 2l 27 A02 C 14 2« AO] C 15 25 »D« C 16 AD« C 17 AD« C 11 AD7 C 19 V» C 20

Fig.

(186)

9.15:

Si RD WR ALE $0 Ais

»14 A13 »12 24 3 An 23 ) Aio 22 1 A9 21 1 *»

8085 microprocessor

Page 174

-15ALE (Address Latch Enable) address to the e x t e r n a l latch.

8085

Chapter 9 is used to load the low byte needs a clock, therefore, an external clock signal of

6

MHz is a p p l i e d to XI while X2 is left floating. The CPU board has a 12 MHz (A43) oscillator d i v i d e d down to 6 MHz in 74LSD292 (A44). The b u f f e r e d 6 MHz is the clock input to the 8085. The 8085 also divides this clock by two and o u t p u t s it as CLK signal .

To execute an i n s t r u c t i o n , the 8085 d i v i d e s the operation into machine cycles. An instruction might take from one to five machine cycles. In each machine cycle there are three to six time states T (see Fig. 9.16). Each T-state consists of one clock period. The a c t i v i t y of 8085 w i t h i n each machine cycle is:

Tl T2 T3 T4, T5 T1

O u t p u t an address Switch A/Ü from a d d r e s s to data IN/OUT Hold data stable Internal operating time for 8085

T2

T3

T«

T3

T2

T1

T2

T3

CLK

STATUS

AI-AIS

---

AOO-AD7

ALE y~

AO-7

Oil« I

><*o>

M

OUT)

n.

RD

WR r M1

OPCOPE FETCH

Fig.

What signals.

9.16:

M2 MEMORY READ

M3 MEMORY WRITE

8085 t i m i n g is going on in the processor can be learned from

RESET IN sets the programme counter flags; it initializes the microprocessor.

to status zero and resets all

RESET OUT i n d i c a t e s that CPU is being r e s e t . serve as the system reset.

This signal can

(187)

Page 175

Chapter 9

-16-

RD, WR. The b e h a v i o u r is e v i d e n t from pulses are sent o u t .

Fig.

9.16.

The shown

HOLD i n p u t when d r i v e n h i g h _ t r i - s t a t e s the address and data lines as well as RD, WR and I0/M line. Internal processing can continue. HLDA is an o u t p u t i n d i c a t i n g t h a t the HOLD accepted.

command has been

TRAP i n t e r r u p t is edge and level sensitive and must remain at a high level until it is acknowledged. It is non-maskable (there is no s o f t w a r e way to avoid it when the signal is a p p l i e d to the i n p u t ) . When the i n t e r r u p t o c c u r s , the a d d r e s s is branched to 24H. RST 7.5, RST 6.5, RST 5.5. These three i n p u t s have the same timing as INTR e x c e p t they cause an internal restart to be a u t o m a t i c a l l y i n s e r t e d . The r e s u l t i n g addresses are 3CH, 34H and 23H r e s p e c t i v e l y .

INTR, i n t e r r u p t r e q u e s t , has a similar e f f e c t as TRAP and RST, with the r e t u r n a d d r e s s d e p e n d i n g on the i n s t r u c t i o n read by the CPU when i n t e r r u p t is a c k n o w l e d g e d .

NOTE ;

.5

We only discussed the f u n c t i o n of the pins used in the d e s c r i b e d a p p l i c a t i o n of 8085

G E N E R A L STRUCTURE OF THE CPU BOARD

Microprocessor 8085 has to be s u p p o r t e d w i t h some a d d i t ional u n i t s to form the c o m p l e t e c o m p u t e r system. H o w e v e r , b e c a u s e of the r e q u e s t for d i r e c t m e m o r y access, more than m i n i m u m a d d i t i o n a l for the block d i a g r a m of the c i r c u i t s were a d d e d . See Fig. 9.17 CPU b o a r d . The c o m p l e t e s c h e m a t i c s of the CPU board are c o v e r e d by 6 sheets: 1. 2. 3. 4. 5. 6.

9.6

RAM o r g a n i z a t i o n ROM o r g a n i z a t i o n C u r s o r - m o t i o n c o n t r o l l i n g system 8085 processor w i t h bus lines and s t a t u s decoder D i r e c t m e m o r y access c o n t r o l l e r ; c e n t r a l clock unit Remote control interface

8085 C O M M U N I C A T I O N

To check the 8085 o p e r a t i o n s t a r t s w i t h 6 MHz clock i n s p e c t i o n . The i n d i r e c t test is done by o b s e r v a t i o n of the 1 MHz clock d e r i v e d from 6 MHz clock at test point TP8. Another indirect t e s t is to o b s e r v e CK signal of 3 MHz leaving the 8085 at TP10. H o w e v e r , for the d i r e c t c h e c k , your probe should be a t t a c h e d to pin 1 of 8085 (big c h i p , A45 position).

(188)

Page 176

Chapter 9

-17-

INTEL

The 8085 system bus is created by using A40 and A47 (8282, p r o d u c t i o n , similar to 74LS374, but d i f f e r e n t pin config- ura t i cm to latch the 16-bit addresses).

Latch is performed using the A signal derived from the ALE microprocessor o u t p u t (A signal can be observed at TP11). See Fig. 9.18 for the block diagram.

! BADO-BAD7

Il'RECR MOTION ZONTRCLLER

C AJ-A15

Fig.

9.17:

CPU board s t r u c t u r e

DI ABC tOOS 140

LOW A

MM 1 MM

•ADDRESSES

1

MS

Fig.

9.18:

»SPLAY KMID

ADC OMDS

8085 system bus and d a t a flow

(189)

Page 177

Chapter 9

-18-

B i d i r e c t i o n a l data flow is provided using the 3-state b i d i r e c t i o n a l drivers 74LS245 (A61 and A62). A61 o u t p u t is enabled by RDROM signal (observe TP17) and the d i r e c t i o n is selected by DI (available at pin l, A61). The A61 data flow d i r e c t i o n is s e l e c t e d by a signal which can be observed at TP15. Three-state operation is not used, i.e. pin 19 is grounded.

The s ignals:

status decoder

A39 p r o d u c e s the input/output control

WM, at TP9 RM, at TP13

OE, at TP12 and a few others. state

When working w i t h the slow input or o u t p u t d e v i c e s , a WAIT should be inserted into the normal instruction cycle. The

READY i n p u t is suitable for t h i s , controlled by A25 and A26.

After the direct memory access request, the normal microprocessor o p e r a t i o n should be r e s t o r e d . This is done using RST 7.5 and RST 5.5 input lines of 8085. The g e n e r a l power failure is i n d i c a t e d by a LOW on PWRF line. A f t e r the inversion in A60, the TRAP i n p u t (highest p r i o r i t y ) is activated. 9 .7

ROM OPERATION

ROM o r g a n i z a t i o n is given in Fig. 9.19. The ROM circuit is d i v i d e d into four banks of 16k x 8 b i t s for a total p r o g r a m m e memory of 64 k b y t e s . This is also the normal addressing space of 8085. B e c a u s e we also need RAM for data s t o r a g e , the p r o g r a m m e - c o n t rolled bank switch was i n t r o d u c e d . The signals BK1 and BK2 are stored in l a t c h A l l . Tri-state driver A48 is enabled if BK1 is low or address bit A14 is low. D r i v e r A29 is enabled if BK1 is high and if the address bit A14 is high. Signal BK2 is gated with address b i t s A 1 4 , A 1 3 , and A12 in a 74LS10 (location A 1 0 ) to d e t e r m i n e which ROM o u t p u t is passed through d r i v e r A48. The s e l e c t i o n of the separate ROM chips is realized t h r o u g h 3 to 8 line d e c o d e r s 74LS138 (A14 and A78).

(190)

Page 178

Chapter 9

-19-

Fig.

9.8

9.19:

ROM organization

RAM OPERATION

RAM consists of four static RAM c h i p s , 8k x 8-bit each. Because of the low power c o n s u m p t i o n , memory chips can be powered from the b u i l t - i n r e c h a r g e a b l e b a t t e r y for up to 30 days.

The data exchange goes through t h r e e - s t a t e bidirectional t r a n s c e i v e r 74LS244 (A65, A72). The d a t a from the upper four lines b e t w e e n transceiver and RAM can be stored in latch 74LS373 (A75) in order to avoid false data registration in some phases of the programme.

27.

Read or write access to RAM is determined by WT signal, pin The same signal is used to control A65.

Addressing is achieved t h r o u g h 14 address lines. Lines AO to A9 are d i r e c t l y connected to RAM chips. They come from latches 8282, sheet 4. Signals PÜ, PI, P2 and P3 indirectly involved in the addressing are generated by the programmable chip A26, sheet 5. It a c c e p t s the address lines from AlO to A15 from circuit A47 and p r o v i d e s o u t p u t s w i t h respect to the memory organization. Three of the generated lines PÜ, P2 and P3 are used remaining three address lines.

PI line t o g e t h e r with the latched applied to A62, 3 to 8 lines decoder. of A62 are used to enable RAM chips.

as the

A12 and A15 address line is Output pins 4, 5. 6 and 7

(191)

Page 179

Chapter 9

' -20-

The b a t t e r y charger (sheet 5) connects the rechargeable NiCd b a t t e r y to the 5 V source when power is applied. If 5 V is p r e s e n t , the c u r r e n t to the base of Q4 keeps it conducting. The resulting c u r r e n t sinking from the Q5 emitter into the Q4 collector through R61 also makes Q5 c o n d u c t i n g . 9 .9

DIRECT MEMORY ACCESS

Direct memory access (DMA) is used to allow high speed data exchange b e t w e e n RAM and an external device. The operation of the system under the DMA conditions is shown in Fig. 9.20. The c o n t r o l l e r (see sheet 5 for schematics) p r o v i d e s three o p e r a t i n g modes: R e a d , W r i t e and Read-Mod ify-Write (R-M-W). < o lu

D

E

INI Encoder and Bufftr

12MH»

• RAM Controli Timing Generator • BuNer Control»

Fig. 9.20:

DMA realization

The c o n t r o l l e r can a c c e p t three d i r e c t memory access requests DCHR2, coming either from the Display Board or from Collecting I n t e r f a c e / M i s c e l l a n e o u s Boards. The third one, DCH3 , m i g h t be used by the boards inserted into the o p t i o n board slot. DCHR1,

In c o m b i n a t i o n w i t h the clock s i g n a l s , the DMA request is c o n f i r m e d t h r o u g h the DCHA1 line (TP2) and t h r o u g h the DCHA2 line (TP3). These signals are sent back to the DMA r e q u e s t i n g units. S i m u l t a n e o u s l y , the microprocessor address and data lines are t r i - s t a t e d t h r o u g h t h e hold c o m m a n d HDRII. When 8085 acknowledges the HOLD c o m m a n d , it generates the HDAI signal. This signal s t a r t s the operation of the timing generator. In the t i m i n g g e n e r a t o r (A34 and A3), followed by some logic (A2, A7, A18), d i f f e r e n t DMA cycles are composed. See Fig. 9.21 and Fig. 9.22 for the generated signals.

(192)

Page 180

Chapter 9

-21-

"LT DCHftt

Fig.

9.21:

[

DMA Read T i m i n g

I - - I OCH« j"~l

M..

-*'

,L - -83nsec

| i i

'

'

1

!

Control SnHI

1

! 1

4 7

6CT«A

3 i l

! J

1 i I i

_J i

1 r i

1

!

1__ }

KÄi

*

|

î

~|

I

• > j_____

ROMA M

| i i

1 !

CI

TP3

-»,' 1M ni ]« - - Addr«w LllclWd Her*

I 1

ÔÂTÂV l

I

: i

&

1 l

1 - - - - - - - - 1, - 'i - 1 i, • ' i n*g

!

i

|

TF8 i _j

' - - - - - - - - '

1

TFlU 1

!

1 i

WTOT/ 1

WT

DAT* • Uf

1

;

y^vV __, - - - - - -\>^ i

1

Data Out Valid, - ^IMM 1

Fig.

9.22:

\\\x

^___, I, ^^^^

>.__. - - ^ x

""

J

1 - - - - - 1

TP25

\\\X > - -" IU In VOM

' 1MM

DMA Read-Mod i f y - W r i t e Timing

(193)