<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bitwizard.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=High_side_switch</id>
	<title>High side switch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bitwizard.nl/wiki/index.php?action=history&amp;feed=atom&amp;title=High_side_switch"/>
	<link rel="alternate" type="text/html" href="https://bitwizard.nl/wiki/index.php?title=High_side_switch&amp;action=history"/>
	<updated>2026-04-05T18:23:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.6</generator>
	<entry>
		<id>https://bitwizard.nl/wiki/index.php?title=High_side_switch&amp;diff=4355&amp;oldid=prev</id>
		<title>Rew: Created page with &quot;The High side switch This is the documentation page for the I2C/SPI High Side Switch boards.  The high side switch...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bitwizard.nl/wiki/index.php?title=High_side_switch&amp;diff=4355&amp;oldid=prev"/>
		<updated>2018-07-05T11:16:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/index.php?title=File:Hss.jpg&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File:Hss.jpg (page does not exist)&quot;&gt;thumb|300px|alt=The High side switch board|The High side switch&lt;/a&gt; This is the documentation page for the I2C/SPI High Side Switch boards.  The high side switch...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:hss.jpg|thumb|300px|alt=The High side switch board|The High side switch]]&lt;br /&gt;
This is the documentation page for the I2C/SPI High Side Switch boards. &lt;br /&gt;
The high side switch  board can be bought here in the [http://www.bitwizard.nl/shop/expansion-boards/hss BitWizard Shop].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
The High side switch  board allow you to drive four loads from a 12-24V powersupply, that use up to 1.5A. The board has an I2C and an SPI version.&lt;br /&gt;
&lt;br /&gt;
== Assembly instructions ==&lt;br /&gt;
&lt;br /&gt;
None: the board comes fully assembled. &lt;br /&gt;
&lt;br /&gt;
== Protocol == &lt;br /&gt;
&lt;br /&gt;
To make the HSS PCB do things, you need to send things over the SPI or I2C bus to the PCB. &lt;br /&gt;
&lt;br /&gt;
The general overview of the protocol is [[General_SPI_protocol|here]]. &lt;br /&gt;
&lt;br /&gt;
The specific commands for the HSS PCB are explained on the page about the spi_dio board, as the two boards share the same protocol: [[DIO_protocol]] . The default address of the HSS is 0xa8. &lt;br /&gt;
&lt;br /&gt;
For Arduino, a sample PDE is available, called ardemo_lcd.pde, also at [http://www.bitwizard.nl/software the BitWizard software download directory] .&lt;br /&gt;
&lt;br /&gt;
This is a demo to send things using SPI to the lcd board. The SPI routines there are applicable for the hss board as well.&lt;br /&gt;
&lt;br /&gt;
== Jumper settings ==&lt;br /&gt;
&lt;br /&gt;
The HSS board has no normal jumpers. &lt;br /&gt;
&lt;br /&gt;
There is a solder jumper that switches the second SPI port from &amp;quot;SPI port&amp;quot; to &amp;quot;ICSP&amp;quot; port for the little CPU on the board. This is used for development. &lt;br /&gt;
&lt;br /&gt;
== Additional Considerations ==&lt;br /&gt;
&lt;br /&gt;
The switching chips on the board, the ISP762T, claim to be able to do &amp;quot;2A&amp;quot;. That kind of spec is usually under the condition that you cool the chip very well. This is probably not ideal on our board, so the limit will be a bit lower. The chip is supposed to protect itself when it gets to hot. The chip is supposed to be able to handle a short. Still I&amp;#039;d try to prevent overload and shorts, just on general principle.... &lt;br /&gt;
&lt;br /&gt;
Chips like these end up getting warm/hot when you pass a current through. In theory they can get over 100 degrees C before things get problematic. My rule-of-thumb is that if you don&amp;#039;t burn your fingers, things are fine. Above that: Be careful. &lt;br /&gt;
&lt;br /&gt;
Note that when you measure the voltage on the output, the (small) leakage current of the device will be sufficient to make the multimeter show a value as opposed to the 0V you might expect.&lt;br /&gt;
&lt;br /&gt;
Note that the device requires &amp;gt; 6V on the power connection to work properly. (there is an undervoltage lockout that kicks in around 5-6V.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Default operation ==&lt;br /&gt;
&lt;br /&gt;
By default the switches will start out in the &amp;quot;off&amp;quot; position. (i.e. the devices connected to the switches are not powered).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Pinout ==&lt;br /&gt;
&lt;br /&gt;
For the SPI connector see: [[SPI_connector_pinout]]. &lt;br /&gt;
&lt;br /&gt;
For the I2C connector see: [[I2C_connector_pinout]]. &lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
! pin !! function !! remark&lt;br /&gt;
|-&lt;br /&gt;
| 1 || GND || GROUND for the power-side.&lt;br /&gt;
|-&lt;br /&gt;
| 2 || OUT 1 || Switched output 1&lt;br /&gt;
|-  &lt;br /&gt;
| 3 || OUT 1 || Switched output 2&lt;br /&gt;
|-  &lt;br /&gt;
| 4 || OUT 1 || Switched output 3&lt;br /&gt;
|-  &lt;br /&gt;
| 5 || OUT 1 || Switched output 4&lt;br /&gt;
|-  &lt;br /&gt;
| 6 || V+   || positive of the powersupply. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Controlling the outputs of the HSS board ==&lt;br /&gt;
&lt;br /&gt;
With the 10 register you can turn everything on or off.  It is a bitmask register. (bw_tool uses hexadecimal numbers, so add the values for the diffrent relays together, 1,2,4,8 for outputs 1-4.)  &lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 10:0:b #Everything off&lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 10:1:b #output 1 on&lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 10:8:b #output 4 on&lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 10:6:b #output 2 and 3 on&lt;br /&gt;
&lt;br /&gt;
You can use register 20 to 23 to turn every single output on or off. &lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 20:0:b #output 1 off&lt;br /&gt;
 bw_tool -s 50000 -a 9c -W 23:1:b #output 4 on&lt;br /&gt;
&lt;br /&gt;
Which method you use is up to you. If your program &amp;quot;knows&amp;quot; the state of all the outputs, using register 0x10 may be easier. But if say you have one program controlling one output and another program controlling another, using the 20-23 registers is probably easier.&lt;br /&gt;
&lt;br /&gt;
== LEDs ==&lt;br /&gt;
&lt;br /&gt;
There is one power led. &lt;br /&gt;
&lt;br /&gt;
== Related projects ==&lt;br /&gt;
&lt;br /&gt;
* [[DIO]]&lt;br /&gt;
&lt;br /&gt;
== External resources ==&lt;br /&gt;
&lt;br /&gt;
=== Datasheets ===&lt;br /&gt;
&lt;br /&gt;
* [[https://www.mouser.com/ds/2/196/Infineon-ISP762T_20121201-DS-v01_04-en-1226583.pdf ISP762T datasheet]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Additional software ==&lt;br /&gt;
[[bw_tool]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TODO ==&lt;br /&gt;
&lt;br /&gt;
* next version will have leds indicating the state of the outputs. &lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== 1.0 ===&lt;br /&gt;
* Initial public release&lt;/div&gt;</summary>
		<author><name>Rew</name></author>
	</entry>
</feed>