Subversion Repositories MB01 Project

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 - 1
||	FILE:	#0153.PLD
2
||	PROJ:	20120600
3
||	PART:	G16V8-#0153
4
||
5
||	DEV :	GAL16V8
6
||
7
|| 	DESC:	CTC CONTROL
8
||
9
|
10
|GAL16V8A
11
|
12
|| INPUT
13
|  1:SQW, 2:IN0, 3:IN1, 4:IN2, 5:E0, 6:SM,
14
|  7:PCTS1, 8:PCTS2, 9:RS485, 11:DTR2, 12:CTSI1, 13:CTSI2,
15
|| OUTPUT
16
|  14:Q0, 15:TM0, 16:TM1, 17:TXE, 18:CTS1, 19:CTS2
17
|
18
| ACTIVE-LOW: TM0, TM1
19
|
20
| PROPERTY:"SIMPLE"
21
|
22
| SIGNATURE: "0153    "
23
|
24
||
25
|| --------------------------------------------------------
26
|| INPUT
27
|| SQW -> ONDA QUADRA DA PIN SQW RTC
28
|| IN0 -> OUT0 CTC (MODO 0 - ONE SHOT)
29
|| IN1 -> OUT1 CTC (MODO 0 - ONE SHOT)
30
|| IN2 -> OUT3 CTC (MODO 3 - FREE RUN)
31
|| /E0 -> ABILITA USCITA Q0 (BUZZER)
32
|| /SM -> ABILITA SHOT MODE SU Q0, Q1
33
|| NON USATI
34
|| PCTS1 -> POLARITA' CTS1 (PCTS1 = 1 INVERTE)
35
|| PCTS2 -> POLARITA' CTS2 (PCTS2 = 1 INVERTE)
36
|| /RS485 -> ABILITA MODO RS485 SU ACIA-CHANNEL 2
37
|| /CTSI1 -> INGRESSO /CTS CHANNEL 1
38
|| /CTSI2 -> INGRESSO /CTS CHANNEL 2
39
|| /DTR2 ->  USCITA /DTR CHANNEL 2
40
||
41
|| --------------------------------------------------------
42
|| CONTROLLO POLARITA' CTS1, CTS2
43
|  CTS1 = (CTSI1 ## PCTS1)
44
|  CTS2 = (CTSI2 ## PCTS2)
45
||
46
|| --------------------------------------------------------
47
|| ABILITA TX RS485
48
|  TXE = (RS485' & DTR2')
49
||
50
|| --------------------------------------------------------
51
|| TM0 -> IMPULSO POSITIVO PER 65C22 (ONE SHOT)
52
|| 82C54 OUT0 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 1
53
|  TM0 = (IN0)
54
|| TM1 -> IMPULSO POSITIVO PER 65C22 (ONE SHOT)
55
|| 82C54 OUT1 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 1
56
|  TM1 = (IN1)
57
|| 82C54 OUT3 IN MODO 3 (FREE RUN) - OUT INIZIALE -> 0
58
||
59
|| OUT Q0: IMPULSO POSITIVO ONE SHOT
60
|  X1 = (SM' & SQW & E0' & IN1')
61
|| OUT Q0: FREE RUN + ONE SHOT
62
|  X2 = (SM  & SQW & E0' & IN1' & IN2)
63
|  Q0 = (X1 # X2)