<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CISECO PLC energy and control</title>
	<atom:link href="http://www.ciseco.co.uk/content/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.ciseco.co.uk/content</link>
	<description>Low cost development hardware and software for building embeded prototypes and wireless sensor networks.</description>
	<lastBuildDate>Fri, 02 Sep 2011 18:33:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A quick how to on the XRF relay board</title>
		<link>http://www.ciseco.co.uk/content/?p=2041</link>
		<comments>http://www.ciseco.co.uk/content/?p=2041#comments</comments>
		<pubDate>Fri, 02 Sep 2011 09:51:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=2041</guid>
		<description><![CDATA[When you first power up the device it has a blank DeviceID (address) of &#8211;. When powered it will transmit a&#8211;STARTED, if no host acknoledges the device by replying a&#8211;ACK&#8212;&#8211; then the device will try a further 5 times. It is usual therefore to see 6 a&#8211;STARTED messages if you are for example using some [...]]]></description>
			<content:encoded><![CDATA[<p>When you first power up the device it has a blank DeviceID (address) of &#8211;. When powered it will transmit a&#8211;STARTED, if no host acknoledges the device by replying a&#8211;ACK&#8212;&#8211; then the device will try a further 5 times. It is usual therefore to see 6 a&#8211;STARTED messages if you are for example using some terminal software.</p>
<p>It is good practise to change your DeviceID right at the start. To do this is easy. First decide what ID you&#8217;d like it to have, this can be two capital letters (eg TT, FG or YY) you cannot use numbers. When you have chosen, we send as a single packet (paste in hyperterminal) the command CHDEVID. To issue the command and to set (for example the device to RB) we use a&#8211;CHDEVIDRB, the device will reply to you with the same message to verify it heard you. To apply the settings send a&#8211;REBOOT&#8212;. The device will now restart by transmitting aRBSTARTED. That&#8217;s it your device is now called RB.</p>
<p>To test RB will respond to us, try sending aRBHELLO&#8212;-, the device will reply aRBHELLO&#8212;- also.</p>
<p>To switch the relays there are the following commands (replace the &#8212; with your actual DeviceID if you changed it)</p>
<p>a&#8211;RELAYAON- Turn relay A on<br />
a&#8211;RELAYAOFF Turn relay A off<br />
a&#8211;RELAYATOG Toggle relay A between on/off</p>
<p>a&#8211;RELAYBON- Turn relay B on<br />
a&#8211;RELAYBOFF Turn relay B off<br />
a&#8211;RELAYBTOG Toggle relay B between on/off</p>
<p>There are additional commands, these are</p>
<p>a&#8211;HELLO&#8212;- Like a computer ping<br />
a&#8211;CHDEVIDxx Change the DeviceID (xx is the new ID)<br />
a&#8211;DEVTYPE&#8211; <br />
a&#8211;DEVNAME&#8211;<br />
a&#8211;REBOOT&#8212;<br />
a&#8211;APVER&#8212;-<br />
a&#8211;PANIDxxxx<br />
a&#8211;SER&#8212;&#8212;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=2041</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maker faire Brighton</title>
		<link>http://www.ciseco.co.uk/content/?p=2037</link>
		<comments>http://www.ciseco.co.uk/content/?p=2037#comments</comments>
		<pubDate>Fri, 02 Sep 2011 07:56:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=2037</guid>
		<description><![CDATA[Brighton Maker Faire
This coming weekend (Sat 3rd Sep) we will be attending the Brighton Maker Faire courtesy of the Nottingham Hackspace. This page will be updated with more details as they happen and serve after the event as a useful page of related information.

To be shown for the first time in public will be:

URF (USB) [...]]]></description>
			<content:encoded><![CDATA[<h1>Brighton Maker Faire</h1>
<p>This coming weekend (Sat 3rd Sep) we will be attending the Brighton Maker Faire courtesy of the Nottingham Hackspace. This page will be updated with more details as they happen and serve after the event as a useful page of related information.</p>
<p><img class="size-full wp-image-2045 alignnone" title="RF family grows" src="http://www.ciseco.co.uk/content/wp-content/uploads/2011/09/RF-family-grows.JPG" alt="RF family grows" width="500" height="406" /></p>
<p>To be shown for the first time in public will be:</p>
<ul>
<li>URF (USB) and ERF (0.1&#8243; header) radio modules along side the existing (XBee shaped) XRF.</li>
<li>A live demo of a dual relay base board that will work with an Xbee or XRF as a host.</li>
<li>A live demo of a 2 button coil cell powered XRF &#8220;key fob&#8221; &#8211; at PCB level</li>
<li>A live demo of a CFL ligh bulb controlled by an integral XRF</li>
<li>A live demo of an XRF powered standard single gand light switch</li>
<li>A live demo of an Arduino + XRF to XRF + SMS dongle acting as an SMS gateway that will if you type in your mobile number send you our business card.</li>
<li>Wireless programming of an Arduino direct from the IDE</li>
</ul>
<h1>Patchube data feeds from XRF sensors</h1>
<p>John has a selection of XRF powered sensors in his house, these publish to Patchube, you can see how dry his plants are, how hot the water in the tank is and more here <a href="https://pachube.com/feeds/22343">https://pachube.com/feeds/22343</a></p>
<h1>Arduino + Xbeeshield + XRF + LED RGB cube + aProtocol</h1>
<p>Why not make your own, here&#8217;s the code. An RGB LED was simply wired via resistors to 3 PWM pins. You will see just how simple aProtocol is to use, just 12 characters. Try sending aDDLED0000FF (full blue) or aDDLED008800 (half green), the other 16.7 million colours I&#8217;m sure you can figure out <img src='http://www.ciseco.co.uk/content/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre><span style="color: #008000;">// Arduino example code
void setup() // always called at the start to setup I/Os etc
{
Serial.begin(9600); // start the serial port at 9600 baud
pinMode(6,OUTPUT);
digitalWrite(6, LOW);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
analogWrite(9, 255); // Do a little RGB pulse to show it's running code
delay(200);
analogWrite(9, 0);
analogWrite(10, 255); //
delay(200);
analogWrite(10, 0);
analogWrite(11, 255); //
delay(200);
analogWrite(11, 0);
digitalWrite(6, HIGH);
delay(200);
Serial.flush(); // ensure input buffer is empty.
Serial.print("aDDSTARTED--");//
}</span></pre>
<pre><span style="color: #008000;">void loop() // repeatedly called
{
static boolean waitingForStart = true; // true if waiting for start of message
static long time; // used to store time of first character - for timeout
if (waitingForStart) // we are waiting for the first character of a message
{
if (Serial.available()) // got some characters
{
waitingForStart=false; // in message, enable timeout
time=millis(); // set up timeout
}
}
else // timing out
{
if (Serial.available()==12) // have we got the message?
{
processCommand(); // yes - process the message
waitingForStart = true; // and wait for the next one
}
else if (millis()-time &gt; 100) // 100 millisecs should be enough to receive the message
{
Serial.flush(); // timed out - flush any characters received
waitingForStart = true; // wait for the next message
}
}
}</span></pre>
<pre><span style="color: #008000;">void processCommand() // message received - process it
{
char message[12]; // buffer to store message in
for (int i=0; i&lt;12; i++) message[i] = Serial.read(); // read the message into the buffer
if (strncmp(message,"aDD",3) == 0) // check first four characters of message
{ // it is for us
if (message[3] == 'H')
{
Serial.print("aDDHELLO----");// send 12 byte reply
}
else if (message[3] == 'L') //
{
analogWrite(9, char2hex(&amp;message[6])); // value is 0-255 in hex made from the two bytes RED
analogWrite(10, char2hex(&amp;message[8])); // value is 0-255 GREEN
analogWrite(11, char2hex(&amp;message[10])); // value is 0-255 BLUE
Serial.print("aDD");// send 12 byte reply acknowledging
Serial.print(message[4]);
Serial.print( message[5]);
Serial.print( message[6]);
Serial.print( message[7]);
Serial.print( message[8]);
Serial.print(message[9]);
Serial.print(message[10]);
Serial.print(message[11]);
}
}
}
uint8_t charToHex(char c)
{
if (c &lt; 'A') return (c-'0');
return (c-'A'+10);
}
int char2hex(char* msg) // char * means a pointer to a char
{
return(charToHex(msg[0])*16+ charToHex(msg[1]));
}</span></pre>
<p> </p>
<p>end of page</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=2037</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Swordfish files for 18F25K22</title>
		<link>http://www.ciseco.co.uk/content/?p=2014</link>
		<comments>http://www.ciseco.co.uk/content/?p=2014#comments</comments>
		<pubDate>Fri, 08 Apr 2011 10:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=2014</guid>
		<description><![CDATA[
The following files are required to support the new 18F25K22 microcontroller. Make sure to use version 2.2.0.3 of Swordfish. If you are using an older version of SE then download the latest SE and simply install, you wont lose anything. Registered users can click &#8220;upgrade&#8221; in the IDE and it will upgrade the IDE automatically. So far the K22 support [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.sfcompiler.co.uk/forum/templates/subSilver/images/logo_phpBB.gif" alt="" width="303" height="92" /></p>
<p>The following files are required to support the new 18F25K22 microcontroller. Make sure to use version 2.2.0.3 of Swordfish. If you are using an older version of SE then download the latest SE and simply install, you wont lose anything. Registered users can click &#8220;upgrade&#8221; in the IDE and it will upgrade the IDE automatically. So far the K22 support files have to be manually added. In future they will be part of the IDE install.</p>
<p><a href=" http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/P18F25K22.inc">P18F25K22.inc</a> &amp; <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/18F25K22.bas">18F25K22.bas</a></p>
<p>Save (right click + save as) these two files into one of the following directories (depends which version of windows you are using)</p>
<p>Windows XP - c:\program files\mecanique\swordfish\includes\</p>
<p>Windows Vista &amp; 7 &#8211; c:\users\all users\mecanique\swordfish\includes\ (HINT: windows often hides this folder, cut and paste the path instead of browsing to it.)</p>
<p><strong>Sample code to see if Swordfish will compile:</strong></p>
<p><span style="color: #008000;"><strong>&#8216; BLINK LED<br />
Device = 18f25k22<br />
Clock = 16  </strong></span></p>
<p><span style="color: #008000;"><strong> Main:<br />
High(PORTB.6)<br />
DelayMS (500)<br />
Low(PORTB.6)<br />
DelayMS (500)<br />
GoTo main</strong></span></p>
<p><span style="color: #008000;"><strong> </strong></span></p>
<p><span style="color: #008000;"><span style="color: #000000;"><strong>Some useful other files</strong></span></span></p>
<p><span style="color: #008000;"><span style="color: #000000;">The above blink LED as a HEX file <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/blinkk22.HEX">here</a></span></span><span style="color: #008000;"><span style="color: #000000;"><br />
A version of MPASM that will work with the K22 and 2203 version of SF <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/MpasmWin.exe">here</a><br />
</span></span><span style="color: #008000;"><span style="color: #000000;">Version 2203 of swordfish SE <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/SwordfishSE%202203.exe">here</a><br />
DS30 loader known to work with both PIC&#8217;s below (what you might be using on your XINO board) <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/ds30Loader.zip">here</a><br />
HEX file for DS30 loader for 18F25K20 <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/ds30loader%2018F25K20%20(16MhzX4PLL=64Mhz).HEX">here</a><br />
HEX file for DS30 loader for 18F25K22 <a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/ds30loader%2018F25K22%20(16MhzX4PLL=64Mhz).HEX">here</a></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=2014</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XINO BASIC for Atmel ATMEGA series</title>
		<link>http://www.ciseco.co.uk/content/?p=1987</link>
		<comments>http://www.ciseco.co.uk/content/?p=1987#comments</comments>
		<pubDate>Mon, 04 Apr 2011 10:31:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1987</guid>
		<description><![CDATA[The XINO basic for Atmel follows the exact same pin layout as the arduino, the circuit in most areas is identical two, however there are two major differences.

We took out the FTDI chip and the voltage regulators
The power LED is connected to the MCU power rail so doesn&#8217;t tie up pin 13.

Customer review and his [...]]]></description>
			<content:encoded><![CDATA[<p>The XINO basic for Atmel follows the exact same pin layout as the arduino, the circuit in most areas is identical two, however there are two major differences.</p>
<ul>
<li>We took out the FTDI chip and the voltage regulators</li>
<li>The power LED is connected to the MCU power rail so doesn&#8217;t tie up pin 13.</li>
</ul>
<p>Customer review and his approach to building the board (we do the same): <a href="http://blog.thiseldo.co.uk/?p=543">http://blog.thiseldo.co.uk/?p=543</a></p>
<p><strong>Board Layout</strong></p>
<p><img class="alignleft size-full wp-image-1993" title="XB4Av1-3-boardlayout" src="http://www.ciseco.co.uk/content/wp-content/uploads/2011/04/XB4Av1-3-boardlayout.gif" alt="XB4Av1-3-boardlayout" width="458" height="545" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><strong>Programming &#8220;in place&#8221; with another Adrduino board</strong></p>
<p>Many thanks to Andy for this idea and the photo.</p>
<p><img src="http://blog.thiseldo.co.uk/wp-photos/xinoprog.jpg" alt="http://blog.thiseldo.co.uk/wp-photos/xinoprog.jpg" width="458" height="325" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1987</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NEW &#8211; Ciseco become Swordfish BASIC reseller</title>
		<link>http://www.ciseco.co.uk/content/?p=1982</link>
		<comments>http://www.ciseco.co.uk/content/?p=1982#comments</comments>
		<pubDate>Mon, 21 Mar 2011 18:06:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development equipment]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1982</guid>
		<description><![CDATA[Today we agreed to become a reseller for the excellent Swordfish BASIC compiler. There will be releases of combo packs of Swordfish and Xino hardware coming along soon. Releasing the power of C in a more friendly human BASIC syntax, we feel Swordfish is a great option to run on our kit from beginner to [...]]]></description>
			<content:encoded><![CDATA[<p>Today we agreed to become a reseller for the excellent Swordfish BASIC compiler. There will be releases of combo packs of Swordfish and Xino hardware coming along soon. Releasing the power of C in a more friendly human BASIC syntax, we feel Swordfish is a great option to run on our kit from beginner to seasoned coder. What they say about thier product is: </p>
<p>Swordfish is a highly structured, modular compiler for the PIC18 family of PIC® microcontrollers. Swordfish is a true compiler that generates optimised, stand alone code which can be programmed directly into your microcontroller. Extensive library support is provided with full source code. </p>
<p>Swordfish enables you to structure a program using subroutines and functions. Each subroutine or function can have its own local declarations consisting of constants, structures and variables. Procedural programming is a better choice than simple sequential or unstructured programming, especially in situations which involve moderate complexity or require significant ease of maintainability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1982</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the 18F25K22</title>
		<link>http://www.ciseco.co.uk/content/?p=1930</link>
		<comments>http://www.ciseco.co.uk/content/?p=1930#comments</comments>
		<pubDate>Mon, 31 Jan 2011 11:24:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1930</guid>
		<description><![CDATA[PICKIT 2 update
We were using PICKIT software version 2.60.00 which gave the message &#8220;unsupported device&#8221;. To use a 25K22 with a PICKIT 2 we need to update the PK2DeviceFile.dat file which is usually in C:\Program Files\Microchip\PICkit 2 v2.
Download it from Microchip, the PK2 page is here
MPLAB update
Older versions of MPLAB will need updating.
Download it from Microchip, [...]]]></description>
			<content:encoded><![CDATA[<h4>PICKIT 2 update</h4>
<p>We were using PICKIT software version 2.60.00 which gave the message &#8220;unsupported device&#8221;. To use a 25K22 with a PICKIT 2 we need to update the PK2DeviceFile.dat file which is usually in C:\Program Files\Microchip\PICkit 2 v2.</p>
<p>Download it from Microchip, the PK2 page is <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en023805" target="_blank">here</a></p>
<h4>MPLAB update</h4>
<p>Older versions of MPLAB will need updating.</p>
<p>Download it from Microchip, the PK2 page is <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en023805" target="_blank">here</a></p>
<p><strong>How to install the update file:</strong></p>
<ol>
<li>Close PICKIT software if it&#8217;s running.</li>
<li>Simply rename (don&#8217;t delete) the old file to something memorable, I always change the file name by putting OLD at the but the choice is yours.</li>
<li>Copy the file into the directory.</li>
<li>Start PICKIT software.</li>
<li>You can now use your PICKIT2 with the 18F25K22</li>
</ol>
<h4>DS30 bootloader</h4>
<p>Our 25K20 version of the 64Mhz PLL bootloader HEX was programed into the 25K22. When restarted the PIC refused to run the loader. It will need a new version of the DS30 bootloader creating.</p>
<p>DS30 is opensource and can be downloaded from <a href="http://mrmackey.no-ip.org/elektronik/ds30loader/" target="_blank">here</a></p>
<h4>What compilers/languages support the 18F25K22 on a XINO basic for PIC?</h4>
<p>AMICUS: Will in a future update we are told (date unknown)<br />
Proton: Probably should (as yet untested by us)<br />
Swordfish: Here&#8217;s a post from the SF forum <a href="http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1344&amp;sid=85ec5887a57e8964c9e08f96db7cd466">http://www.sfcompiler.co.uk/forum/viewtopic.php?t=1344&amp;sid=85ec5887a57e8964c9e08f96db7cd466</a> (as yet untested by us)</p>
<p>PICAXE: Yes, the 28&#215;2 that is based on this device has had limited testing.</p>
<p>If you know of any other compilers that do support this PIC that you have tried sucessfully on a XINO basic for PIC please let us know and we&#8217;ll add them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1930</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Adding DS30 to Swordfish BASIC SE (free version)</title>
		<link>http://www.ciseco.co.uk/content/?p=1866</link>
		<comments>http://www.ciseco.co.uk/content/?p=1866#comments</comments>
		<pubDate>Fri, 14 Jan 2011 15:00:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development equipment]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1866</guid>
		<description><![CDATA[Software you will need.
The free Swordfish SE compiler software from here
The free DS30 loader software from here
 
Adding DS30 as the default programmer to Swordfish means that you can compile and program in one easy step. Configuring this is almost identical to setting it up within the Amicus IDE. If you intend to use the DS30 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Software you will need.</strong></p>
<p>The free Swordfish SE compiler software from </strong><a href="http://www.sfcompiler.co.uk/swordfish/download/index.html">here</a><br />
The free DS30 loader software from <a href="http://mrmackey.no-ip.org/elektronik/ds30loader/downloads.php">here</a></p>
<p> </p>
<p>Adding DS30 as the default programmer to Swordfish means that you can compile and program in one easy step. Configuring this is almost identical to setting it up within the Amicus IDE. If you intend to use the DS30 GUI manually you need not complete these steps, simply use the GUI to locate and program the HEX file that Swordfish creates.</p>
<p>To configure go to the main menu and view. In the drop down click compile and programmer options. A box like this will pop up.</p>
<p><img class="aligncenter" src="http://www.ciseco.co.uk/images/SwordfishConfig/1.gif" alt="" width="416" height="171" /></p>
<p>Click install new programmer</p>
<p><img class="aligncenter" src="http://www.ciseco.co.uk/images/SwordfishConfig/2.gif" alt="" width="352" height="211" /></p>
<p>Click next</p>
<p><img class="aligncenter" src="http://www.ciseco.co.uk/images/SwordfishConfig/3.gif" alt="" width="352" height="211" /></p>
<p>Type in DS30 and click next</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/4.gif" alt="" width="352" height="211" /></p>
<p>Type in ds30loaderconsole.exe and click next</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/5.gif" alt="" width="352" height="211" /></p>
<p>If you want to make a cup of tea click find automatically, if not click find manually and navigate to the folder that DS30 installed to. Below is the default, your will probably be the same</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/6.gif" alt="" width="352" height="211" /></p>
<p>Click next and it’ll now ask for parameters, cut and paste the line from below but remember to change the COM5 to whatever com port you’d like DS30 to use.</p>
<p><strong>-file=$hex-filename$ &#8211;device=PIC$target-device$ &#8211;port=COM5 &#8211;baudrate=115200 &#8211;write-program &#8211;non-interactive</strong></p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/7.gif" alt="" width="352" height="211" /></p>
<p>Make sure that the compile and program is turned on in swordfish (it&#8217;s located wierdly in th places  shown in the picture below).  Finally to compile and program hit the two blue arrows to start the process. At this point it’s best to have your finger pressing down the reset on your XINO. The DS30 loader only runs at first powerup.</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/8.gif" alt="" width="341" height="139" />.</p>
<p>When this box pops up release the reset button and you should see a flash of text and the box close. This should now have transferred the HEX file to you PIC and should be running it. Thats all there is to it.</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/SwordfishConfig/9.gif" alt="" width="577" height="286" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1866</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CA-42 cable &#8220;how to&#8221; on a XINO basic</title>
		<link>http://www.ciseco.co.uk/content/?p=1832</link>
		<comments>http://www.ciseco.co.uk/content/?p=1832#comments</comments>
		<pubDate>Fri, 14 Jan 2011 12:59:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development equipment]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1832</guid>
		<description><![CDATA[Modifying a Nokia CA-42 to enable you to serially upload compiled hex files to a DS30 boot loaded 18F25K20 on a XINO basic for PIC is relativly easy and very straight forward. You&#8217;ll need a soldering iron and some solder (not plumbers the electrical flux variety). This little series of photos shows how to build [...]]]></description>
			<content:encoded><![CDATA[<p>Modifying a Nokia CA-42 to enable you to serially upload compiled hex files to a DS30 boot loaded 18F25K20 on a XINO basic for PIC is relativly easy and very straight forward. You&#8217;ll need a soldering iron and some solder (not plumbers the electrical flux variety). This little series of photos shows how to build an &#8220;unpluggable&#8221; device. There&#8217;s nothing to stop you hardwiring the CA-42 Black, Blue and White wires to pins 1, 3 and 4 on the XINO serial pads or using any other method you&#8217;d like.</p>
<p><strong>You&#8217;ll need just 4 items: </strong>(soon to be a kit availble from us)<br />
<strong>1 x Nokia CA-42 cable</strong><br />
<strong>1 x 4 way right angled &#8220;male&#8221; header </strong><br />
<strong>1 x 4 way right angled &#8220;female&#8221; header</strong> (not pictured, this is soldered to the XINO basic)<br />
<strong>1 x small piece of vero</strong> and some way to secure the cable from strain.</p>
<h1><img class="alignleft" src="http://www.ciseco.co.uk/images/partstobuild.gif" alt="" width="300" height="300" />Picture 1</h1>
<p>In this example I&#8217;ve used a Dremel type tool to nibble notches out the vero so I can use a small tie wrap to secure the cable. Blue tack is a rapid but not very permanent alternative. Hot glue would be ideal. The choice is yours.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><img class="alignleft" src="http://www.ciseco.co.uk/images/ca42cable.gif" alt="" width="300" height="300" />Picture 2</h1>
<p>Your cable should look like this, cut the Nokia end (the aysymetrical one on the left of the picture) off to leave the USB connector and about a meter of wire.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><img class="alignleft" src="http://www.ciseco.co.uk/images/stripofinsulation.gif" alt="" width="300" height="300" />Picture 3</h1>
<p>Strip off around a centimeter of the black insulation to reveal the inner 5 wires.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><img class="alignleft" src="http://www.ciseco.co.uk/images/cutofsparewires.gif" alt="" width="300" height="300" />Picture 4</h1>
<p>Cut off the Green and Orange wires, we dont need them.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1><img class="alignleft" src="http://www.ciseco.co.uk/images/finished%20item.gif" alt="" width="300" height="300" />Picture 5</h1>
<p>Solder on to the vero the right angle header and the Black, Blue and White wires to pins 1, 3 and 4.</p>
<p> </p>
<p>That&#8217;s all there is to it.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<h1>Possible improvements</h1>
<p>One user has suggested that the 4.6 volt signalling the cable uses is beyond the limits of the 3.3V PIC. He has used a resistor to limit the current. From our testing we haven&#8217;t seen any problems and are lead to believe by sources close to Microchip the 25K20 is 5v tolerant although there seems to be no publisehed evidence of this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1832</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XRF</title>
		<link>http://www.ciseco.co.uk/content/?p=1738</link>
		<comments>http://www.ciseco.co.uk/content/?p=1738#comments</comments>
		<pubDate>Wed, 05 Jan 2011 17:07:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1738</guid>
		<description><![CDATA[Features of the XRF
Transmission range on whip antenna of easily 300+ meters L.O.S. (570m in our tests)
Transmission range with external SMA antennas of Km&#8217;s (figures yet to be published)
Varaible: baud rate, over the air rate &#038; frequency.
Repeater mode (mirrors data over 2 PANID&#8217;s).
Low power consumption 19ma RX, 32ma TX @full power (to be selectable)
Serially (RX/TX) [...]]]></description>
			<content:encoded><![CDATA[<h4 id="Features">Features of the XRF</h4>
<p>Transmission range on whip antenna of easily 300+ meters L.O.S. (570m in our tests)<br />
Transmission range with external SMA antennas of Km&#8217;s (figures yet to be published)<br />
Varaible: baud rate, over the air rate &#038; frequency.<br />
Repeater mode (mirrors data over 2 PANID&#8217;s).<br />
Low power consumption 19ma RX, 32ma TX @full power (to be selectable)<br />
Serially (RX/TX) updateable firmware, no CTS/DTR required.<br />
Can be used as CC1110 micro with IAR C compiler software.</p>
<h4 id="Features">Features of the CC1110 as used in the XRF</h4>
<p><strong>Radio<br />
</strong>High-performance RF transceiver based on the market-leading TI CC1101<br />
Excellent receiver selectivity and blocking performance<br />
High sensitivity (–110 dBm at 1.2 kBaud)<br />
Programmable over the air data rate up to 500 kBaud<br />
Programmable output power up to 10 dBm for all supported frequencies<br />
Frequency range: 300 – 348 MHz, 391 – 464 MHz and 782 – 928 MHz<br />
Digital RSSI/LQI support<br />
<strong>Low Power</strong><br />
Lowest current consumption (RX: 16.2 mA @ 1.2 kBaud, TX: 15.2 mA @ –6 dBm output power)<br />
High speed, full power consumption (RX:19mA @ 250kBaud, TX:32mA @ +10 dBm output power)<br />
0.3 µA in PM3 (operating mode with the lowest power consumption, only external interrupt wakeup)<br />
0.5 µA in PM2 (operating mode with the second lowest power consumption, timer or external interrupt wakeup)<br />
<strong>MCU, Memory, and Peripherals<br />
</strong>High performance and low power 8051 microcontroller core.<br />
Powerful DMA functionality<br />
8/16/32 KB in-system programmable flash, and 1/2/4 KB RAM<br />
128-bit AES security coprocessor<br />
7 – 12 bit ADC with up to eight inputs<br />
I2S interface</p>
<h4>XRF pinouts for transparent serial mode</h4>
<pre>01 - +3V3                   20 - Future use
02 - Data Out               19 - Future use
03 - Data IN                18 - Future use
04 - Future use             17 - Future use
05 - Reset                  16 - Future use
06 - Heart Beat             15 - Future use
07 - Future use             14 - Future use
08 - Future use             13 - Future use
09 - Sleep             12 - Future use
10 - GND                    11 - Future use</pre>
<h4>CC1110 datasheet, webpage &#038; errata</h4>
<p><a href="http://focus.ti.com/docs/prod/folders/print/cc1110f32.html">http://focus.ti.com/docs/prod/folders/print/cc1110f32.html</a></p>
<h4>XRF pinouts, physical connections to the TI CC1110 transciever ports</h4>
<pre>01 - +3V3                   20 - P2_4
02 - P0_3                   19 - P2_3
03 - P0_2                   18 - P2_2
04 - P0_4                   17 - P2_1
05 - Reset                  16 - P2_0
06- P1_7                    15 - P0_7
07- P1_6                    14 - P0_6
08- P1_5                    13 - P0_5
09- P1_4                    12 - P0_0
10 - GND                    11 - P0_1</pre>
<h4><img class="alignnone" src="http://www.ciseco.co.uk/images/mediumcc1110.gif" alt="" width="402" height="431" /></h4>
<h4>CC Debugger connections</h4>
<h4>Antenna Lengths</h4>
<p>Calculated antenna lengths.</p>
<p>433 1/4 wave = 164.7mm<br />
433 1/2 wave = 329.4mm<br />
433 full wave = 692.7mm</p>
<p>868 1/4 wave = 82.2mm<br />
868 1/2 wave = 164.3mm<br />
868 full wave = 345.5mm</p>
<p>915 1/4 wave = 77.9mm<br />
915 1/2 wave = 155.9mm<br />
915 full wave = 327.8mm</p>
<p>Useful site for calculation <a href="http://www.csgnetwork.com/antennaevcalc.html">http://www.csgnetwork.com/antennaevcalc.html</a> </p>
<p>TI uses slightly longer on CC1110 reference, unknown why. Chipcon/TI primer paper on antenna design with calculations <a href="http://www.ti.com/litv/pdf/swra088">http://www.ti.com/litv/pdf/swra088</a></p>
<h4>Configuring your XRF</h4>
<p>Attach the XRF to a PC using either the Cisceo FTDI USB interface or something similar. The baud rate by default is 9600</p>
<p>Note [ret] represents a carriage return character (enter key)</p>
<p><strong>To enter command mode:(hyperterm/xctu etc)</strong><br />
Do nothing for at least 1 second<br />
type in +++ (press nothing else)<br />
then wait 1 second<br />
XRF will reply OK, you are now in config mode, the wireless is suspended<br />
<strong>General format of commands:<br />
</strong>Command without parameter (usually used to query a configuration)<br />
ATxx[ret]</p>
<p>Command with parameter (up to 32 bytes of data)<br />
ATxx [space] dddddd[ret]    (versions after and inc. v0.11 the space is optional)</p>
<p>The XRF will reply ERR[ret] for any command that is not recognised.</p>
<h4>AT command list</h4>
<pre><strong>Command  Meaning                           XRFResponse        XRFResponse
                                           without parameter  with Parameter
                                           Actions the        Sets the value
                                           command or reads
                                           the value</strong></pre>
<pre><strong>_______________________________________________________________________________
AT</strong>       Null command                      OK[ret]            OK[ret]
_______________________________________________________________________________
<strong>ATAC</strong>     Apply Changes                     OK[ret]            N/A
         Returns OK and then
         applies changes to baud           <span style="font-family: Georgia;">
_____________________________________________________________________
</span><strong>ATBD</strong>     Baud rate                         nnnnn[ret]         OK[ret]
         not set until <strong>ATAC</strong> command        OK[ret]
         Common baud rates in <strong>HEX</strong>:
          1200            <strong>4b0</strong>              Where nnnnn is      Parameter is the
          2400            <strong>960</strong>              the baud rate       baud rate in <strong>HEX</strong>
          4800            <strong>12c0</strong>             in <strong>HEX</strong>
          9600 (default)  <strong>2580</strong>
          19200           <strong>4b00</strong>
          31250 (MIDI)    <strong>7a12</strong>
          38400           <strong>9600</strong>
          57600           <strong>e100</strong>
          115200          <strong>1c200</strong>
_______________________________________________________________________________
<strong>ATCC</strong>     Change AT guard character         +[ret]            OK[ret]
         Example change to "///"           /[ret]
_______________________________________________________________________________
<strong>ATCH</strong>     Radio frequency                   n[ret]            OK[ret]
         Not set until <strong>ATCH</strong> command        OK[ret]
          1 – 915MHz
          2 – 903MHz                       Where n is the    Parameter is the
          3 – 868MHz                       frequency number  frequency to set
          4 – 433.5MHz                                       to.
          5 – 868.3MHz (default)
          6 – 315MHz
_______________________________________________________________________________
<strong>ATDN</strong>     Done                              OK[ret]           N/A
         exit AT command mode
_______________________________________________________________________________
<strong>ATDR</strong>     Radio data rate                   n[ret]            OK[ret]
         Not set until <strong>ATCH</strong> command        OK[ret]
          1 – 250Kbaud (default)
          2 – 38.4Kbaud                    Where n is the   Parameter is the
          3 – 1.2KBaud                     data rate (0-5)  data rate (0-5)
          4 – 100KBaud
          5 – 500KBaud
______________________________________________________________________________
<strong>ATID</strong>     PANID (aka network name)          nnnn[ret]         OK[ret]
         Four hex characters               OK[ret]
         Default – 0000
         Max value FFEF                    Where nnnn is    Parameter is the
         (last 256 PANIds reserved for     the PANID        PANID
         internal use)
______________________________________________________________________________
<strong>ATI2</strong>     PANID2 – for repeater function    nnnn[ret]        OK[ret]
         Four hex characters               OK[ret]
         Default – 0000
         Max value FFEF                    Where nnnn is    Parameter is the
         (last 256 PANIds reserved for     the PANID2       PANID2
         internal use)
______________________________________________________________________________
<strong>ATNT</strong>     Node type                         n[ret]           OK[ret]
          0 – Serial pass through mode     OK[ret]
          1 – reserved
          2 – Repeater mode                Where n is the   Parameter is the
                                           current mode     mode to set

         <strong>NOTE:</strong> In repeater mode you cannot use the normal serial. What
               happens instead is that RF data on PANID and PANID2 are
               mirrored in both directions. This is useful for merging
               separate PANID networks or for extending the whole network
               by one node.
_______________________________________________________________________________
<strong>ATPC</strong>     Reprogram                          OK[ret]        N/A
         Chip will reprogram itself and reset
         Will return ERR if an image has not
         been downloaded into memory
______________________________________________________________________________
<strong>ATPG</strong>     Enter program download mode        OK[ret]        N/A
_____________________________________________________________________________
<strong>ATPK</strong>     Radio packet length (in hex)       nn[ret]        OK[ret]
         Inc. 2 byte PANID, so min. is 3    OK[ret]
         Parameter is 3 to FC (3 to 250 decimal)
         Default is OE (14 - i.e. 12 data bytes)
______________________________________________________________________________
<strong>ATPL</strong>     Radio TX power level               n[ret]         OK[ret]
          0  -30dBm                         OK[ret]
          1  -20dBm
          2  -15dBm
          3  -10dBm
          4   -5dBm
          5    0dBm
          6   +5dBm
          7   +7dBm
          8  +10dBm (default)
______________________________________________________________________________
<strong>ATRE</strong>     Restore factory defaults           OK[ret]        N/A
         Note this loads the config from the
         default settings, baud rate, radio data
         rate and radio freq will be actioned
         when changes are applied.
______________________________________________________________________________
<strong>ATRO</strong>     Packet timeout                     nnnn[ret]      OK[ret]
         The time in milliseconds before    OK[ret]
         a packet is sent if packet is
         not complete (hex)
         Range 1 to FFFF (65535)
         Default is 64 (100 mS)
______________________________________________________________________________
<strong>ATVR</strong>     Software revision number           n.n[ret]       OK[ret]
                                            OK[ret]
______________________________________________________________________________
<strong>ATWR</strong>     Save config changes to flash       OK[ret]        N/A
         The config changes will be preserved
         for the next startup.
______________________________________________________________________________
</pre>
<h4>Using CCFlashProg to serially program XRF </h4>
<p>1.  Attach the XRF to a PC using either the Cisceo FTDI USB interface or something similar (eg sparkfun xbee explorer, AXE210), CCFlashProg assumes the XRF baud rate is 9600bps.<br />
2.  Start CCFlashProg.exe<br />
3.  Select the serial port that XRF is connected to<br />
4.  Select the hex file to program to the XRF<br />
5.  Press program – if it fails to start try again, the serial timing could be a little different between the PC and XRF<br />
6.  After it programmed, press verify –  if it fails to start, try again<br />
7.  If all is reported OK press commit.<br />
8.  XRF will restart with the new firmware<br />
9.  (Optional) Using a terminal emulator app (XCTU, Hyperterm etc) issue +++ to the XRF and then using the ATVR command check the new software revision number.  </p>
<h4>Restoring factory defaults</h4>
<p>Short pins 19 and 20 during startup and the XRF will load in factory configuration (not firmware).  If you wish to retain this configuration then you need to issue an ATWR command to save the config, otherwise at next power up the previous configuration will be used.<br />
This is useful for recovering from unknown configurations.</p>
<h4>Firmware change history</h4>
<p>v0.11 &#8211; Added ATRO/ATPL/ATPK/ATCC commands<br />
v0.10 &#8211; Baud rate command changed to provide even more flexibility in baud rates.<br />
v0.09 &#8211; First commercial release.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1738</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>XINO BASIC for PIC and PICAXE</title>
		<link>http://www.ciseco.co.uk/content/?p=1563</link>
		<comments>http://www.ciseco.co.uk/content/?p=1563#comments</comments>
		<pubDate>Mon, 13 Dec 2010 17:08:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.ciseco.co.uk/content/?p=1563</guid>
		<description><![CDATA[XINO basic for PIC and PICAXE.
Very low cost development system. Supports the following PICAXES: 18M2, 18, 18A, 18M, 18X (18M2 and 18X tested), 28A, 28X, 28X1, 28X2 (28X1 and 28X2 tested). Versions of the 18 pin PICAXE&#8217;s below the 18M2, require an additional 4K7 resistor which is supplied with the kit.
For PIC&#8217;s any similarly pinned [...]]]></description>
			<content:encoded><![CDATA[<h4>XINO basic for PIC and PICAXE.</h4>
<p>Very low cost development system. Supports the following PICAXES: 18M2, 18, 18A, 18M, 18X (18M2 and 18X tested), 28A, 28X, 28X1, 28X2 (28X1 and 28X2 tested). Versions of the 18 pin PICAXE&#8217;s below the 18M2, require an additional 4K7 resistor which is supplied with the kit.</p>
<p>For PIC&#8217;s any similarly pinned 18 or 28 leg devices will work (far too many to list). We like and supply the 18F25K20 with the DS30 bootloader installed. You can easily make a cable or board to allow hardware programming (see later in this document).</p>
<p>When plugging in add on shields, please make sure the voltages are appropriate to power and interface to it. The XINO Pro has onboard voltage regulation and provides a much more &#8220;plug and play&#8221; environment which is much closer to the original Arduino, the XINO basic is much simpler and requires a little more thought.</p>
<h4><img class="alignnone" src="http://www.ciseco.co.uk/images/xinobasicforpic.gif" alt="" width="300" height="300" /></h4>
<h4>Assembly instructions</h4>
<p>1. Solder onto the board the 10K, 22K, 4.7K resistors and 0.1uf capacitor. If you intend to use a pre 18M2 PICAXE add the second &#8220;diagonal&#8221; 4.7K resistor (usually the much smaller resistor in your kit)</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/xinobasicforpicINSET2.gif" alt="" width="300" height="300" /></p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/xinobasicforpicINSET1.gif" alt="" width="300" height="300" /></p>
<p>2. Add the 18 and 28 pin IC sockets with the indentation towards the top of the board (end marked XINO)</p>
<p>3. Add the remaining stereo jack, reset switch and the 3 pin voltage selection header with jumper.</p>
<p>4. Add the female header sockets (1 x 6 way, 3 x 8 way)</p>
<p>5. To power the board solder onto the GND, 3V3 and 5V connections (NOTE: 2 AA cells is 3V this will work in most situations for the 3V3 supply as will 3 AA&#8217;s giving 4.5V for the 5V supply, for an easy solution use a 3 x AA box and take a third wire off the 3V point) . There is space on the board to utilise a 4 way header or 3 way screw terminal block instead.</p>
<p><img class="alignnone" src="http://www.ciseco.co.uk/images/xinobasicforpicINSET3.gif" alt="" width="300" height="300" /></p>
<p>6. The voltage selection jumper is marked on the board, to the right 5V and to the left 3.3V (as shown in the photo)</p>
<p>That&#8217;s it, should take between 10 to 20 minutes depending on your soldering speed and skill.</p>
<h4>Pinouts for the PICAXE 18M2</h4>
<pre>'P0 - NOT CONNECTED                15 - NOT CONNECTED
'P1 - NOT CONNECTED                14 - GND
'RST                               13 - B.4 I2C SCI/Touch/ADC/Out/In
'3V3                               12 - B.1 I2C SDA/Touch/ADC/Out/In
'5V                                11 - C.6 In/Out
'GND                               10 - SERIAL OUT
'GND                               09 - NOT CONNECTED
'VIN                               08 - C.7 In/Out
'
'A0 - C.2 DAC/Touch/ADC/Out/In     07 - NOT CONNECTED
'A1 - B.7 In/Out/ADC/Touch         06 - NOT CONNECTED
'A2 - C.0 In/Out/ADC/Touch         05 - NOT CONNECTED
'A3 - C.1 In/Out/ADC/Touch         04 - B.3 In/Out/ADC/Touch/PWM
'A4 - C.4 In/SERIAL IN             03 - B.6 In/Out/ADC/Touch/PWM
'A5 - C.5 In                       02 - B.0 SRI/Out/In
'                                  01 - TX B.5 hserout/Touch/ADC/Out/In
'                                  00 - RX B.2 hserin/Touch/ADC/Out/In
'</pre>
<h4>Pinouts for the PICAXE 28X2</h4>
<pre>'P0 - C.1/PWM C.1                  15 - NOT CONNECTED
'P1 - C.2/PWM C.2/HPWM A           14 - GND
'RST                               13 - C.3/HSPI SCK/HI2C SCI
'3V3                               12 - C.4/HI2C SDA/HSPI SDI
'5V                                11 - C.5/HSPI SDO
'GND                               10 - A.4/SERIAL OUT
'GND                               09 - B.7
'VIN                               08 - B.6
'
'A0 - ADC0/A.0/C1-                 07 - B.5
'A1 - ADC1/A.1/C2-                 06 - B.4/ADC11/HPWM D
'A2 - ADC2/A.2/C2+                 05 - B.3/ADC9
'A3 - ADC3/A.3/C1+                 04 - B.2/ADC8/HINT2/HPWM B
'A4 - SERIAL IN                    03 - B.1/ADC10/HINT1/HPWM C
'A5 - C.0/TIMER CLK                02 - B.0/ADC12/HINT0
'                                  01 - TX/C.6/HSEROUT/KB CLK
'                                  00 - RX/C.7/HSERIN/KB DATA
'</pre>
<h4>Sample code &#8211; Flash an LED</h4>
<p>Push an LED and an &#8220;in series&#8221; 330R resistor into sockets numbered 13 (output) &amp; 14 (gnd), then cut and paste this code into the editor window. The &#8220;flat&#8221; of the LED should go to pin 14 (gnd). This code was tested at both 3.3v and 5v, all PICAXE&#8217;s appeared to work. For the 18X it requires the additional 4K7 diagonal resistor to be installed. Note the reset button only works for the 28 pin devices.</p>
<p><strong>PICAXE 18X</strong></p>
<p>Start:<br />
High 4<br />
Pause 1000<br />
Low 4<br />
Pause 1000<br />
Goto Start</p>
<p><strong>PICAXE 18m2</strong></p>
<p>Start:<br />
High B.4<br />
pause 1000<br />
Low B.4<br />
pause 1000<br />
Goto Start</p>
<p><strong>PICAXE 28X1</strong></p>
<p>Start:<br />
High PORTC 3<br />
Pause 1000<br />
Low PORTC 3<br />
Pause 1000<br />
Goto Start</p>
<p><strong>PICAXE 28X2</strong></p>
<p>Start:<br />
High C.3<br />
Pause 1000<br />
Low C.3<br />
Pause 1000<br />
Goto Start</p>
<h4>Hardware programming PIC&#8217;s</h4>
<p>Using a hardware programmer such as the PICKIT2 is relativly easy. Just connect the following pins. Diagram for the PICKIT2 available on http://www.embedded-knowhow.co.uk/MPLAB%202.gif. Here is the pinouts for the 28 pin devices (such as the 16F886 &amp; 18F25K20).</p>
<p>PICKIT2 PIN (pin 1 denoted by the white triangle)<br />
1 &#8211; VPP/MCLR &gt; RST pad on XINO<br />
2 &#8211; POWER/VDD &gt; MCUPOWER pad on XINO (which ever you are using 3V3 or 5V)<br />
3 &#8211; GROUNDVSS &gt; GND pad on XINO<br />
4 &#8211; ICSPDATA/PGD &gt; 09 pad on XINO<br />
5 &#8211; ICSPCLOCK/PGC &gt; 08 pad on XINO<br />
6 &#8211; Not connected</p>
<h4>Boot loader HEX files</h4>
<p><a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/Amicus/">Amicus</a></p>
<p><a href="http://www.ciseco.co.uk/downloads/PIC%20boot%20loaders/DS30/">DS30 16Mhz PLL 64Mhz</a></p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..End of document</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ciseco.co.uk/content/?feed=rss2&amp;p=1563</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

