Subversion Repositories MB01 Project

Rev

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)
|| TM1 -> IMPULSO POSITIVO PER 65C22 (ONE SHOT)
|| 82C54 OUT0 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 0 (TIMER)
|| 82C54 OUT1 IN MODO 0/3 (ONE SHOT/FREE-RUN) - OUT INIZIALE -> 0/1 
|| 82C54 OUT2 IN MODO 0 (ONE SHOT) - OUT INIZIALE -> 0 (BEEP)
|| 
|  TM0 = (IN0)  || INVERTITO -> IMPULSO POSITIVO
||
|| OUT Q0: IMPULSO POSITIVO ONE SHOT (E0 = 0, SM = 0)
|  X1 = (SM' & SQW & E0' & IN2')
|| OUT Q0: FREE RUN + ONE SHOT (E0 = 0, SM = 1)
|  X2 = (SM  & SQW & E0' & IN2' & IN1)
|  Q0 = (X1 # X2)
||
||  TM1A = (E0  & SM  & IN1)    || E0 = 1, SM = 1 - CTC 1
||  TM1B = (E0  & SM' & IN2)    || E0 = 1, SM = 0 - CTC 2
||  TM1C = (E0' & SM  & IN1)    || E0 = 0, SM = 1 - CTC 1
||  TM1D = (E0' & SM' & IN2)    || E0 = 0, SM = 0 - CTC 2
||  TM1 = (TM1A # TM1B # TM1C # TM1D)
|  TM1A = (E0  & SM  & IN1)     || E0 = 1, SM = 1 - CTC 1
|  TM1B = (E0  & SM' & IN1)     || E0 = 1, SM = 0 - CTC 1
|  TM1C = (E0' & SM  & IN1)     || E0 = 0, SM = 1 - CTC 1
|  TM1 = (TM1A # TM1B # TM1C)