Blame | Last modification | View Log | Download | RSS feed
|| FILE: #0153.PLD
|| PROJ: 20120600
|| PART: G16V8-#0153
||
|| DEV : GAL16V8
||
|| DESC: CTC CONTROL
||
|
|GAL16V8A
|
|| INPUT
| 1:SQW, 2:IN0, 3:IN1, 4:IN2, 5:E0, 6:SM,
| 7:PCTS1, 8:PCTS2, 9:RS485, 11:DTR2, 12:CTSI1, 13:CTSI2,
|| OUTPUT
| 14:Q0, 15:TM0, 16:TM1, 17:TXE, 18:CTS1, 19:CTS2
|
| ACTIVE-LOW: TM0, TM1
|
| PROPERTY:"SIMPLE"
|
| SIGNATURE: "0153 "
|
||
|| --------------------------------------------------------
|| INPUT
|| SQW -> ONDA QUADRA DA PIN SQW RTC
|| IN0 -> OUT0 CTC (MODO 0 - ONE SHOT)
|| IN1 -> OUT1 CTC (MODO 0 - ONE SHOT)
|| IN2 -> OUT3 CTC (MODO 3 - FREE RUN)
|| /E0 -> ABILITA USCITA Q0 (BUZZER)
|| /SM -> ABILITA SHOT MODE SU Q0, Q1
|| NON USATI
|| PCTS1 -> POLARITA' CTS1 (PCTS1 = 1 INVERTE)
|| PCTS2 -> POLARITA' CTS2 (PCTS2 = 1 INVERTE)
|| /RS485 -> ABILITA MODO RS485 SU ACIA-CHANNEL 2
|| /CTSI1 -> INGRESSO /CTS CHANNEL 1
|| /CTSI2 -> INGRESSO /CTS CHANNEL 2
|| /DTR2 -> USCITA /DTR CHANNEL 2
||
|| --------------------------------------------------------
|| CONTROLLO POLARITA' CTS1, CTS2
| CTS1 = (CTSI1 ## PCTS1)
| CTS2 = (CTSI2 ## PCTS2)
||
|| --------------------------------------------------------
|| ABILITA TX RS485
| TXE = (RS485' & DTR2')
||
|| --------------------------------------------------------
|| TM0 -> IMPULSO POSITIVO PER 65C22 (ONE SHOT)
|| 82C54 OUT0 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 1
| TM0 = (IN0)
|| TM1 -> IMPULSO POSITIVO PER 65C22 (ONE SHOT)
|| 82C54 OUT1 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 1
| TM1 = (IN1)
|| 82C54 OUT3 IN MODO 3 (FREE RUN) - OUT INIZIALE -> 0
||
|| OUT Q0: IMPULSO POSITIVO ONE SHOT
| X1 = (SM' & SQW & E0' & IN1')
|| OUT Q0: FREE RUN + ONE SHOT
| X2 = (SM & SQW & E0' & IN1' & IN2)
| Q0 = (X1 # X2)