<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"  "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>m8ta fun</title>
<link type="text/css" rel="stylesheet" href="normal.css" />
<script type="text/javascript" src="fun.js"></script>
</head>
<body>
<table>
<tr> 
	<td><a href="http://m8ta.com/index.pl">
		<img class="logo" src="m8talogo2.png"/>
		</a></td>
	<td>
		<font size = "46" color="blue">m</font><font size="44" color="orange">8</font><font size = "46" color="blue">ta</font>
		<br/>you are not logged in, <a href="login.pl">login</a>.  

		<a href="javascript:retrievePost(-1,0,'-1')">new entry</a>
	</td>
	<td>
		<table>
			<form method="get" action="index.pl">
			<tr>
				<td><font color="gray" face="monospace">text: </font></td>
				<td><input type="text" name="search" size = "25" value=""/></td>
				<td> sort by</td>
			</tr>
			<tr>
				<td><font color="gray" face="monospace">tags:</font></td>
				<td><input type="text" name="ptags" size = "25" value=""/></td>
				<td><input type="radio" name="order" value="modified" checked="checked"/>modified</td>
				<td><input type="Submit" value="search"/></td>
			</tr>
			<tr>
				<td><font color="gray" face="monospace">type: </font></td>
				<td><input type="text" name="ptype" size = "25" value=""/></td>
				<td><input type="radio" name="order" value="year" />chronology</td>
			</tr>
			</form>
		</table>
	</td>
</tr>
</table>
<table><div id="-2" ></div>	<div id="600">
	    <div class="head">
		    <tr>
			    <td><i><font size="+1"><font color="orange">{<a href="index.pl?pid=600">600</a>}</font></font></i></td>
				<td>
				<div align="left">
				    <a href="javascript:hide(600,'600')">hide </a>/
				    <a href="javascript:retrievePost(600,19,'600')">edit[19] </a>/
				    <a href="index.pl?pid=600&amp;print=1">print</a>
				</div>
				</td>
			    <td>
			    <div align="left">
			    <font color="gray">ref:</font> -2008
			    <font color="gray">tags:</font> <a href="index.pl?ptags=OCZ">OCZ</a> <a href="index.pl?ptags=NIA">NIA</a> <a href="index.pl?ptags=teardown">teardown</a> <a href="index.pl?ptags=autopsy">autopsy</a> <a href="index.pl?ptags=BMI">BMI</a> <a href="index.pl?ptags=BCI">BCI</a>
			    <font color="gray">date:</font> 01-06-2012 03:09 gmt
			    <font color="gray">revision:</font>19
			     <font color="orange">[<a href="javascript:displayPost(600,18,'600');">18</a>] [<a href="javascript:displayPost(600,17,'600');">17</a>] [<a href="javascript:displayPost(600,16,'600');">16</a>] [<a href="javascript:displayPost(600,15,'600');">15</a>] [<a href="javascript:displayPost(600,14,'600');">14</a>] [<a href="javascript:displayPost(600,13,'600');">13</a>] <a href="javascript:displayPost(600,-1,'600');">[head]</a></font>
			    </div>
			</td>
		</tr>
	    </div>
	    <tr><td colspan="3"><p>Recently we bought a OCZ NIA device for our lab.  Having designed similar hardware myself, I simply *had to* take the thing apart to inspect it, as others have done -- see <a href="http://genmay.com/showthread.php?t=798717">Joe Pit's teardown</a> (with <a href="http://joepitsfacts.info/nia/nia_schem.png">schematic!!</a>).  Of course, I graciously let the others try it for a few hours (it doesn't work all that well) before taking the anodized, extruded, surface- ground aluminum case apart.  Below is the top side of the 4-layer circuit board inside the case, as well as a key to indicate the function of the labeled devices. (some of the labels are hard to read due to the clutter of the silkscreen on the board; sorry). 
<a href="images/600_1.png"><img src="images/600_1_thumb_50.png"/></a>
<ul> 
<li> A - Input connector.  Center channel is isolated ground; outside two channels are the signal. They had to make this custom so people couldn't plug it into other (possibly dangerous) stuff.</li>
<li> B - Input current limiting resistors, in series with signal, 4.02K</li>
<li> C - Dual capacitor from input channels to shared ground (I think; the cap has 4 contacts, 2 at the end, 2 in the middle; I assume they use this package to get very accurately matched capacitance so as not to hurt the CMRR of the instrumentation amplifier). </li>
<li> D - Gain-setting resistor, 1.00K.  Sets the instrumentation amplifier gain to 50 (I think).</li>
<ul> 
<li> I do not know what devices were intended for the 1206 footprints above and below this resistor... </li> 
</ul>
<li> E - Instrumentation amplifier, Analog Devices logo, AD8220 by my guess, A-grade.  Measures the difference in voltage between the two input channels (left and right electrodes on the headband).  </li>
<li> F - 47 ohm resistors &amp; capacitors to filter the power supply to the instrumentation amplifier. </li>
<li> H - Opamp, Texas Instruments OPA348A. Looks like it is used as feedback to the instrumentation amplifier reference pin to effect highpass operation (?). </li>
<li> I - Quad opamp, TI OPA4348A.  Used to filter the signal; I did not go through the filter topology, but they might have copied it off the AD8220 datasheet ;)</li>
<li> J - Stereo ADC, Texas Instruments (Burr-Brown logo, TI bought BB) PCM1803A.  Only one channel is used. 24 bits, 96khz max sampling rate; device in master mode (Mode1 = 0V, Mode0 = 3.3v); Fs = SCLK/512 -&gt; sampling rate = 3.90625 KHz. </li>
<li> K - Three channel digital isolator, Analog Devices ADUM1300.  Transmits the ADC's DOUT, BCK, and LRCLK signals to the USB (non-isolated) side.  </li>
<li> L - Two-channel optical (?) isolator; unknown type; used to drive the ADC's SCLK and some other signal ? </li>
<ul> 
<li> from Joe Pits: <i> "Yeah, optical isolator with logic gates for high speed I guess (HCPL2631S). I'm also not sure what the second signal does, it goes to U4 (JSR marking). I suspect it could be a switch which adds C14 + R17 in the feedback loop of U2C (see the schematic). But I don't know what the reason for this is." </i></li> 
</ul>
<li> M - Isolated supply daughterboard, Texas Instruments logo, very simple design: driver is 2 BJTs (which get hot!) in push-pull topology; bases are driven by windings on the toroidal transformer; transformer center tap seems to go to USB VCC.  Output is +-5V. </li>
<li> N - +3.9V, +3.3, and -3.9V power supply circuitry. I cannot identify the SOT-23-5's and SC-70's here. </li>
<li> O - <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010273">PIC18F2455</a>, with USB 2.0 (obviously!)  SOIC-28 package. </li>
<ul> 
<li> device comes up as (on my Linux box, Debian Lenny, kernel 2.6.24): </li>
<ul> 
<li> <i>usb 4-1: new full speed USB device using uhci_hcd and address 8</i></li>
<li> <i>hiddev96hidraw1: USB HID v1.10 Device [Brain Actuated Technologies Neural Impulse Actuator Prototype 1.0] on usb-0000:00:1a.1-1</i></li> 
</ul>
<li> I'll put up a usbmon trace later, maybe. </li> 
</ul>
<li> P - Transistors for driving the tricolor LEDS on the bottom of the board. </li>
<li> Q - 16.0000 MHz crystal. Needed for correct USB timing; clocks the PIC at 48Mhz. </li>
<li> R - USB type B connector. Note the ferrites to the left. (I though they were fuses, but I accidentally shorted Vdd to ground while probing the programming connector, and these let out a little smoke rather than blowing completely.  Had they been fuses, they would be open circuit now. This is consistent with Joe Pit's analysis.)</li>
<li> S - <a href="http://www.onsemi.com/pub_link/Collateral/MC74HC595A-D.PDF">74HCT595A</a> 8-bit shift registers, to convert the serial data into parallel data for the PIC to read in.  3 devices = 24 bits in total. </li>
<ul> 
<li> Note that the 74HCT595A has a output enable, which permits the PIC to read the 3 bytes of the sample sequentially. Otherwise, as Stefan Jung (via the openeeg-list) points out, the PIC would not have enough data pins (28 pins vs. 24 bits)! </li> 
</ul>
<li> T - 74HCT393, Texas Instruments logo, Dual 4-bit binary ripple counter.  Used to drive the ADC with a 2Mhz clock, which puts the sampling rate at (as before) 3.90625 KHz.</li>
<li> U - Programming connector.  <b>That's right, a programming connector!</b> Looks to be the same as a PIC <a href="http://www.instructables.com/id/Understanding-ICSP-for-PIC-Microcontrollers/">ICSP</a> connector (pointed out on <a href="http://hackaday.com/2008/09/18/ocz-neural-impulse-actuator-teardown/">hack a day</a>)</li>
<ul> 
<li> So far as I can tell: </li>
<ul> 
<li> Pin 1 = +5V, PIC pin 1, (through 100 ohm resistor), Vpp (?)</li>
<li> Pin 2 = PIC pin 20 , Vdd</li>
<li> Pin 3 = PIC pin 19 , Vss</li>
<li> Pin 4 = PIC pin 28 (through 100 ohm resistor), PGD</li>
<li> Pin 5 = PIC pin 27 (through 100 ohm resistor), PGC</li> 
</ul>
<li> I do not <i>know</i> if the device can be reprogrammed, though it <i>looks</i> that way. </li>
<li> from <a href="http://genmay.com/showthread.php?t=798717">here</a> - bootloader (to address 0x07ff) can be read, but everything above that is read-protected.  </li> 
</ul>
</ul>
Bottom of board, showing the (very bright!) tricolor LEDs</p>
<p><a href="images/600_2.png"><img src="images/600_2_thumb_40.png"/></a></p>
<p>Comments? <img src="http://m8ta.com/mymail.png"/></p></td></tr>
	</div>
</table><!-- WiredMinds eMetrics tracking with Enterprise Edition V5.4 START -->
<script type='text/javascript' src='https://count.carrierzone.com/app/count_server/count.js'></script>
<script type='text/javascript'><!--
wm_custnum='6e883f5d0d70eb32';
wm_page_name='index.pl';
wm_group_name='/services/webpages/m/8/m8ta.com/public';
wm_campaign_key='campaign_id';
wm_track_alt='';
wiredminds.count();
// -->
</script>
<!-- WiredMinds eMetrics tracking with Enterprise Edition V5.4 END -->
</body></html>
