Subversion Repositories svn.mios

Rev

Rev 1077 | Rev 1200 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1057 tk 1
HEADER 3 MBHP_DIO_MATRIX Module
2
 
3
<H1>MIDIbox Hardware Platform, DIO_MATRIX Module</H1>
4
 
1066 tk 5
<P><CENTER><IMG SRC="mbhp/mbhp_dio_matrix.jpg" width=550 height=265></CENTER></P>
1057 tk 6
 
1066 tk 7
<P CLASS=INFO>The MBHP_DIO_MATRIX module has been initially be designed for the <A HREF="midio128.html">MIDIO128</A> and <A HREF="midibox_kb.html">MIDIbox KB</A> project to simplify connections to keyboard matrices. It's compatible to the <A HREF="mbhp_din.html">MBHP_DIN</A> and <A HREF="mbhp_dout.html">MBHP_DOUT</A> module, which means that it's for example possible to use it as a replacement when only two DIN and two DOUT shift registers are needed for a project, or when the special pinout of the digital in- and output pins lead to a better wiring to the frontpanel.</P>
8
 
9
<P CLASS=INFO>The digital input part consists of two 74HC165 based serial shift registers; every register provides 8 digital inputs which are sampled with the latch enable signal LD, and shifted out with the clock signal SCLK.<BR>
10
The digital output part consists of two 74HC595 based serial shift registers; every register provides 8 digital outputs which are updated with the latch enable signal RCLK, and shifted out with the clock signal SCLK.</P>
11
 
1113 tk 12
<P CLASS=INFO>The advantage of using such shift registers is, that they can be cascaded to a long chain without the need of more than 6 cables to the core module. This means that multiple MBHP_DIO_MATRIX modules can be connected in order to enhance the number of inputs and outputs. Normaly up to 16 DIN and up to 16 DOUT shift registers are supported by <A HREF="mios.html">MIOS or MIOS32 based applications</A>, <A HREF="midibox_ng.html">MIDIbox NG</A> even allows to connect up to 32 DIN and 32 DOUT registers in a chain!</P>
1066 tk 13
 
14
<P CLASS=INFO>By connecting multiple buttons to a matrix, it's possible to scan multiple rows as shown in <A HREF="midio128/midio128_v3_dio_scanmatrix.pdf">this schematic</A>.</P>
1113 tk 15
 
1066 tk 16
<P CLASS=INFO>Additional connection diagrams for Fatar keyboards can be found at the <A HREF="midibox_kb.html">MIDIbox KB</P> project side</A>.</P>
1113 tk 17
 
1066 tk 18
<P CLASS=INFO>Please note that the module could also be used for many other projects whenever they support matrices if not explicitely mentioned. Just translate "DIN shift register" and "DOUT shift register" to the schematic of the MBHP_DIO_MATRIX module! :-)</P>
19
<P CLASS=INFO>It's even possible to connect buttons (or encoders) and LEDs directly to the MBHP_DIO_MATRIX module as shown in <A HREF="mbhp/mbhp_dio_matrix_button_led_directly.pdf">this schematic</A>.</P>
20
 
21
 
22
<DL>
23
   <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Download </H2></DT>
24
   <DD>
25
   <DD><TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
26
    <TR>
27
      <TD COLSPAN=4 CLASS=TABCOLOR1>PCB data, can be viewed, modified and converted with <A HREF="http://www.cadsoft.de/download.htm" TARGET="_blank">Eagle Light</A>. The .pdf based schematic has been created with <A HREF="http://opencircuitdesign.com/xcircuit" TARGET="_blank">xcircuit</A>. There are no special eagle schematics available, since components have been netlisted in the .brd file directly!</TD>
28
    </TR>
29
    <TR>
30
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Module</STRONG></FONT></td>
31
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Schematic</STRONG></FONT></td>
32
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Layout Data</STRONG></FONT></td>
33
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Quick-view</STRONG></FONT></TD>
34
    </TR>
35
    <TR>
36
      <TD CLASS=TABCOLOR2><I>MBHP_DIO_MATRIX_V1</I></TD>
37
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dio_matrix.pdf">mbhp_dio_matrix.pdf</A></TD>
38
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dio_matrix_v1.brd">mbhp_dio_matrix_v1.brd</A></TD>
39
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dio_matrix_v1.png">mbhp_dio_matrix_v1.png</A></TD>
40
    </TR>
41
  </TABLE></DD>
42
 
43
  <DD><TABLE WIDTH="100%" BORDER=0 CELLSPACING=5 CELLPADDING=0>
44
    <TR>
45
      <TD COLSPAN=4 CLASS=TABCOLOR1><FONT SIZE=3>Additional informations</FONT></TD>
46
    </TR>
47
    <TR>
48
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>File</STRONG></FONT></td>
49
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Size</STRONG></FONT></td>
50
      <TD NOWRAP CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Description</STRONG></FONT></TD>
51
    </TR>
52
    <TR>
53
      <TD CLASS=TABCOLOR2><A HREF="mbhp/mbhp_dio_matrix_orderlist.txt">mbhp_dio_matrix_orderlist.txt</A></TD>
54
      <TD CLASS=TABCOLOR2>1k</TD>
55
      <TD CLASS=TABCOLOR2><A HREF="http://www.reichelt.de/" TARGET="_blank">Reichelt</A> orderlist</TD>
56
    </TR>
57
  </TABLE></DD>
58
  </DD>
59
</DL>
60
 
61
<DL>
62
   <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Available Ports </H2></DT>
63
   <DD>
64
<P CLASS=DESC>Following interfaces are provided by the DIO_MATRIX module:
65
  <DD><TABLE CLASS=BOX WIDTH="100%" BORDER=1 CELLSPACING=5 CELLPADDING=0>
66
 
67
    <TR>
68
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Name</STRONG></FONT></td>
69
      <TD CLASS=TABCOLOR1><FONT SIZE=2><STRONG>No. of pins</STRONG></FONT></td>
70
      <TD NOWRAP CLASS=TABCOLOR1><FONT SIZE=2><STRONG>Description</STRONG></FONT></TD>
71
    </TR>
72
    <TR>
73
      <TD CLASS=TABCOLOR2>J1</TD>
74
      <TD CLASS=TABCOLOR2>10</TD>
75
      <TD CLASS=TABCOLOR2>Interface to CORE:J8/J9. DINX4:J1 provides two power pins for 5V/Ground, the serial clock, the latch enable and the serial input and output of the register chain.<BR>This port can also be connected with J2 of another DIO_MATRIX, DIN or DOUT module.</TD>
76
    </TR>
77
 
78
    <TR>
79
      <TD CLASS=TABCOLOR2>J2</TD>
80
      <TD CLASS=TABCOLOR2>10</TD>
81
      <TD CLASS=TABCOLOR2>Interface to another DIO_MATRIX, DIN or DOUT module. DINX4:J2 provides nearly the same pins like J1, just only the serial in- and output of the last shift register is connected instead of the out- and input of the first one to realize a cascaded serial chain.</TD>
82
    </TR>
83
 
84
    <TR>
85
      <TD CLASS=TABCOLOR2>J3 and J4</TD>
86
      <TD CLASS=TABCOLOR2>16</TD>
87
      <TD CLASS=TABCOLOR2>8 digital inputs (I0..I7) and 8 digital outputs (O7..O0). Note that the outputs are reversed; all firmwares take care for this, means: with the first (leftmost) input pin is usually connected to I0, the first (leftmost) output pin is connected to O7.
88
    </TR>
89
 
90
    <TR>
91
      <TD CLASS=TABCOLOR2>J5</TD>
92
      <TD CLASS=TABCOLOR2>2</TD>
93
      <TD CLASS=TABCOLOR2>Provides a +5V (=Vd) and ground (=Vs) output.<BR>
94
          While in a matrix configuration the ground isn't relevant, it becomes important when buttons and LEDs are <A HREF="mbhp/mbhp_dio_matrix_button_led_directly.pdf">directly connected</A></TD>
95
    </TR>
96
 
97
    <TR>
98
      <TD CLASS=TABCOLOR2>J6</TD>
99
      <TD CLASS=TABCOLOR2>3</TD>
100
      <TD CLASS=TABCOLOR2>A jumper has to be connected to this port to select pull-up or pull-down behaviour for the digital inputs. For most projects the pull-up behaviour should be selected! The pull-down behaviour might be required for adaption to existing keyboard matrices with reversed diodes.</TD>
101
    </TR>
102
 
103
  </TABLE></DD>
104
  </DD>
105
</DL>
106
 
107
 
108
 
109
<DL>
110
  <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Soldering Guide</H2></DT>
111
  <DD>
112
  <DD><TABLE CELLSPACING=2 CELLPADDING=2>
113
    <TR>
114
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_1.jpg" WIDTH=280 HEIGHT=139 BORDER=0 ALT=""></TD>
115
      <TD CLASS=TABCOLOR2>It's always a good idea to start with the smallest components to simplify mounting.<BR>
116
So, start with the resistor networks and caps:
117
<UL CLASS=CL>
118
<LI>C1-C4 = 100 nF
119
<LI>RN1-RN4 = 5x10k<BR>
120
<B>Attention:</B> take care for the polarity! The dot on the resistor network marks pin 1!
121
</UL>
122
      </TD>
123
    </TR>
124
 
125
    <TR>
126
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_2.jpg" WIDTH=280 HEIGHT=140 BORDER=0 ALT=""></TD>
127
      <TD CLASS=TABCOLOR2>Continue with the IC sockets
128
      </TD>
129
    </TR>
130
 
131
    <TR>
132
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_4.jpg" WIDTH=280 HEIGHT=195 BORDER=0 ALT=""></TD>
133
      <TD CLASS=TABCOLOR2>Thereafter mount the connectors J1..J6.<BR>
134
You could already stuff the pull selection jumper at J6, because it's essential! For "normal" projects the Pull-Up option has to be selected.
135
      </TD>
136
    </TR>
137
 
138
    <TR>
139
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_5.jpg" WIDTH=280 HEIGHT=135 BORDER=0 ALT=""></TD>
140
      <TD CLASS=TABCOLOR2>Put the ICs into the sockets:
141
<UL CLASS=CL>
142
<LI>IC3 and IC4 = 74HC165 ("DINs")
143
<LI>IC1 and IC2 = 74HC595 ("DOUTs")
144
</UL>
145
      </TD>
146
    </TR>
147
 
148
    <TR>
149
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_6.jpg" WIDTH=280 HEIGHT=222 BORDER=0 ALT=""></TD>
150
      <TD CLASS=TABCOLOR2>Prepare the 1:1 ribbon cable to the core module (resp. to the output of another DIO_MATRIX, DIN or DOUT module)
151
      </TD>
152
    </TR>
153
 
154
    <TR>
155
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_7.jpg" WIDTH=280 HEIGHT=144 BORDER=0 ALT=""></TD>
156
      <TD CLASS=TABCOLOR2>Please note that it's intended that the cable is somehow twisted by 180 degree!
157
      </TD>
158
    </TR>
159
 
160
    <TR>
161
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_8.jpg" WIDTH=280 HEIGHT=212 BORDER=0 ALT=""></TD>
162
      <TD CLASS=TABCOLOR2>When you turn the module at the side of the <A HREF="mbhp_core_lpc17.html">MBHP_CORE_LPC17</A> module, you will see the plan! ;-)
163
      </TD>
164
    </TR>
165
 
166
    <TR>
167
      <TD><IMG SRC="mbhp/mbhp_dio_matrix_9.jpg" WIDTH=280 HEIGHT=189 BORDER=0 ALT=""></TD>
1077 tk 168
      <TD CLASS=TABCOLOR2>This picture shows a setup where a DINX4 and DOUTX4 module by <A HREF="http://www.midibox-shop.com/" TARGET="_blank">SmashTV</A> are connected after a MBHP_DIO_MATRIX module. The same 1:1 ribbon cable can be used here! :-)
1066 tk 169
      </TD>
170
    </TR>
171
 
172
  </TABLE></DD>
173
  </DD>
174
</DL>
1113 tk 175
 
176
<DL>
177
   <DT><H2> <IMG SRC="images/bullet.gif" ALT=""> Premade PCB </H2></DT>
178
   <DD>
179
   <P CLASS=INFO>Premade MBHP_DIO_MATRIX PCBs can be purchased in <A HREF="http://www.midibox-shop.com" TARGET="_blank">SmashTV's MIDIbox Shop</A> for only US $7! :-)
180
  </DD>
181
</DL>
1057 tk 182
 
183
FOOTER