-
Notifications
You must be signed in to change notification settings - Fork 5
/
Talker80-decoder.PLD
75 lines (49 loc) · 1.25 KB
/
Talker80-decoder.PLD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name Talker80-Encoder ;
PartNo 00 ;
Date 03.07.2020 ;
Revision 01 ;
Designer Michael Wessel / LambdaMikel ;
Company Home ;
Assembly None ;
Location ;
Device g22v10 ;
/** Inputs **/
// 00 = NATIVE
// 01 = TRS TALKER - NOT SUPPORT FOR MODEL 3 / 4 !
// 10 = VS100
// 11 = DECTALK
PIN 1 = MODE_SEL0 ;
PIN 2 = MODE_SEL1 ;
PIN 3 = adr0 ;
PIN 4 = adr1 ;
PIN 5 = adr2 ;
PIN 6 = adr3 ;
PIN 7 = adr4 ;
PIN 8 = adr5 ;
PIN 9 = adr6 ;
PIN 10 = adr7 ;
PIN 18 = NIN ;
PIN 19 = NOUT ;
PIN 17 = NIOREQ ;
PIN 21 = EXTIOSEL ;
PIN 22 = SPEECH_READ ;
PIN 23 = SPEECH_WRITE ;
//
IOIN = ! NIN & !NIOREQ ;
IOOUT = ! NOUT & !NIOREQ ;
// 00 = NATIVE
NATIVE_MODE = !MODE_SEL0 & !MODE_SEL1 ;
// 01 = TRS TALKER - NOT SUPPORTED BY MODEL 3 / 4!
TRS_MODE = MODE_SEL0 & !MODE_SEL1 ;
// 10 = VS100
VS100_MODE = !MODE_SEL0 & MODE_SEL1 ;
// 11 = DecTalk
FUTURE_MODE = MODE_SEL0 & MODE_SEL1 ;
// IO Port 11
DECODED = adr0 & adr1 & !adr2 & adr3 & !adr4 & !adr5 & !adr6 & !adr7;
// BYTE RECEIVED:
SPEECH_WRITE = DECODED & IOOUT ;
// READ STATUS BIT / BYTE FROM AVR: ONLY FOR NATIVE AND VS100:
SPEECH_READ = DECODED & IOIN ;
// MUST BE LOW FOR IOREQ IN, ELSE HIGH
EXTIOSEL = ! SPEECH_READ ;