Hi Justin,<br><br>Many thanks, I have found the .hex file !<br><br>Brilliant. Next step is building the circuit. All the parts have arrived including a PICkit 2.<br><br>(I'm using a reasonably moden desktop PC and W7)<br>
<br>Greatly appreciate your support !<br><br>: )))<br><br>Tim<br><br><div class="gmail_quote">On 25 June 2013 12:00, <span dir="ltr"><<a href="mailto:hackspace-request@swansea.hackspace.org.uk" target="_blank">hackspace-request@swansea.hackspace.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Hackspace mailing list submissions to<br>
<a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:hackspace-request@swansea.hackspace.org.uk">hackspace-request@swansea.hackspace.org.uk</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:hackspace-owner@swansea.hackspace.org.uk">hackspace-owner@swansea.hackspace.org.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Hackspace digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Hackspace Digest, Vol 6, Issue 11 (Tim Moore)<br>
2. Re: Hackspace Digest, Vol 6, Issue 11 (Tim Moore)<br>
3. Re: Re: Hackspace Digest, Vol 6, Issue 11 (Justin Mitchell)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 24 Jun 2013 12:57:16 +0100<br>
From: Tim Moore <<a href="mailto:timmoore47@gmail.com">timmoore47@gmail.com</a>><br>
Subject: [Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 11<br>
To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
Message-ID:<br>
<<a href="mailto:CAAEY5oOmiAEBzostsZOcn3%2BRRtc6hgu9Z0e1BwHCrwr_UUxVhw@mail.gmail.com">CAAEY5oOmiAEBzostsZOcn3+RRtc6hgu9Z0e1BwHCrwr_UUxVhw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Justin,<br>
<br>
Last touched MPLAB 10 years ago and have never written anything in 'C',<br>
<br>
so your help with the source is very greatly appreciated !<br>
<br>
: )))<br>
<br>
Tim<br>
<br>
On 24 June 2013 12:00, <<a href="mailto:hackspace-request@swansea.hackspace.org.uk">hackspace-request@swansea.hackspace.org.uk</a>> wrote:<br>
<br>
> Send Hackspace mailing list submissions to<br>
> <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:hackspace-request@swansea.hackspace.org.uk">hackspace-request@swansea.hackspace.org.uk</a><br>
><br>
> You can reach the person managing the list at<br>
> <a href="mailto:hackspace-owner@swansea.hackspace.org.uk">hackspace-owner@swansea.hackspace.org.uk</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of Hackspace digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. Re: Re: Hackspace Digest, Vol 6, Issue 9 (Justin Mitchell)<br>
> 2. PIC Workshops (Justin Mitchell)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Sun, 23 Jun 2013 20:33:31 +0100<br>
> From: Justin Mitchell <<a href="mailto:justin@discordia.org.uk">justin@discordia.org.uk</a>><br>
> Subject: Re: [Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 9<br>
> To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
> Message-ID: <<a href="mailto:1372016011.6126.10.camel@emerald.geode.org.uk">1372016011.6126.10.camel@emerald.geode.org.uk</a>><br>
> Content-Type: text/plain; charset="UTF-8"<br>
><br>
> On Sun, 2013-06-23 at 19:14 +0100, Tim Moore wrote:<br>
> > Slowly getting it together on the Pic demo program. I've retyped the<br>
> > source and have this:-<br>
> ><br>
> > * File: cointoss5.c<br>
> > * Author: Tim<br>
> > *<br>
> > * Created on 20 June 2013, 07:51<br>
> > */<br>
> ><br>
> > #include <stdio.h><br>
> > #include <stdlib.h><br>
> > #include <xc.h><br>
> > #include <pic12f1840.h><br>
> ><br>
> > #define INT_OSC 500000L<br>
> > #define _XTAL_FREQ _INT_OSC<br>
> ><br>
> > /* 12.0 page 101 setup the ports<br>
> > */<br>
> ><br>
> > TRISAbits.TRISA0 = 0;<br>
> > TRISAbits.TRISA1 = 0;<br>
> > TRISAbits.TRISA2 = 1;<br>
> ><br>
><br>
><br>
> I guess your not experienced with C programming then, and of course you<br>
> wern't up to speed in the workshop to get help with this part because of<br>
> your laptop problems.<br>
><br>
> The port setup code goes inside the main() function.<br>
><br>
> I have added the completed C code to the downloads on the meetings page<br>
> on the website, you can see what it is meant to look like.<br>
><br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Sun, 23 Jun 2013 20:41:16 +0100<br>
> From: Justin Mitchell <<a href="mailto:justin@discordia.org.uk">justin@discordia.org.uk</a>><br>
> Subject: [Swansea Hackspace] PIC Workshops<br>
> To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
> Message-ID: <<a href="mailto:1372016476.6126.17.camel@emerald.geode.org.uk">1372016476.6126.17.camel@emerald.geode.org.uk</a>><br>
> Content-Type: text/plain; charset="UTF-8"<br>
><br>
> i have been investigating bootloaders for use with the 12f1840 and other<br>
> chips. It looks entirely feasible to lose just 100 - 300 words (of the<br>
> 4K word) program memory to a bootloader, which will allow people to<br>
> re-program their devices at will without needing a dedicated programmer<br>
> device, just using the usb-serial port devices we were using.<br>
><br>
> So i am looking to put together another workshop for the near future,<br>
> which will utilise a bootloader, talk through the serial port, and<br>
> perhaps play with analog inputs.<br>
><br>
> Would people be interested if i also offered the chance to keep the kit<br>
> of parts after the workshop for cost ?<br>
><br>
><br>
><br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Hackspace mailing list<br>
> <a href="mailto:Hackspace@swansea.hackspace.org.uk">Hackspace@swansea.hackspace.org.uk</a><br>
> <a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
><br>
><br>
> End of Hackspace Digest, Vol 6, Issue 11<br>
> ****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20130624/f5939e60/attachment-0001.html" target="_blank">http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20130624/f5939e60/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 24 Jun 2013 20:33:18 +0100<br>
From: Tim Moore <<a href="mailto:timmoore47@gmail.com">timmoore47@gmail.com</a>><br>
Subject: [Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 11<br>
To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
Message-ID:<br>
<CAAEY5oM-OH8wZfTU58vBaS-K1ksFSpFgfay=<a href="mailto:mB4tt%2BmVXUbuMg@mail.gmail.com">mB4tt+mVXUbuMg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
It seemed to 'build' with no errors ! (Plenty of comments)<br>
<br>
So what next ? How do I get it to produce a file that I can transfer to<br>
the Pic chip ?<br>
<br>
: ))))<br>
<br>
Tim<br>
<br>
On 24 June 2013 12:57, Tim Moore <<a href="mailto:timmoore47@gmail.com">timmoore47@gmail.com</a>> wrote:<br>
<br>
> Hi Justin,<br>
><br>
> Last touched MPLAB 10 years ago and have never written anything in 'C',<br>
><br>
> so your help with the source is very greatly appreciated !<br>
><br>
> : )))<br>
><br>
> Tim<br>
><br>
><br>
> On 24 June 2013 12:00, <<a href="mailto:hackspace-request@swansea.hackspace.org.uk">hackspace-request@swansea.hackspace.org.uk</a>> wrote:<br>
><br>
>> Send Hackspace mailing list submissions to<br>
>> <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
>><br>
>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>> <a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
>> or, via email, send a message with subject or body 'help' to<br>
>> <a href="mailto:hackspace-request@swansea.hackspace.org.uk">hackspace-request@swansea.hackspace.org.uk</a><br>
>><br>
>> You can reach the person managing the list at<br>
>> <a href="mailto:hackspace-owner@swansea.hackspace.org.uk">hackspace-owner@swansea.hackspace.org.uk</a><br>
>><br>
>> When replying, please edit your Subject line so it is more specific<br>
>> than "Re: Contents of Hackspace digest..."<br>
>><br>
>><br>
>> Today's Topics:<br>
>><br>
>> 1. Re: Re: Hackspace Digest, Vol 6, Issue 9 (Justin Mitchell)<br>
>> 2. PIC Workshops (Justin Mitchell)<br>
>><br>
>><br>
>> ----------------------------------------------------------------------<br>
>><br>
>> Message: 1<br>
>> Date: Sun, 23 Jun 2013 20:33:31 +0100<br>
>> From: Justin Mitchell <<a href="mailto:justin@discordia.org.uk">justin@discordia.org.uk</a>><br>
>> Subject: Re: [Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 9<br>
>> To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
>> Message-ID: <<a href="mailto:1372016011.6126.10.camel@emerald.geode.org.uk">1372016011.6126.10.camel@emerald.geode.org.uk</a>><br>
>> Content-Type: text/plain; charset="UTF-8"<br>
>><br>
>> On Sun, 2013-06-23 at 19:14 +0100, Tim Moore wrote:<br>
>> > Slowly getting it together on the Pic demo program. I've retyped the<br>
>> > source and have this:-<br>
>> ><br>
>> > * File: cointoss5.c<br>
>> > * Author: Tim<br>
>> > *<br>
>> > * Created on 20 June 2013, 07:51<br>
>> > */<br>
>> ><br>
>> > #include <stdio.h><br>
>> > #include <stdlib.h><br>
>> > #include <xc.h><br>
>> > #include <pic12f1840.h><br>
>> ><br>
>> > #define INT_OSC 500000L<br>
>> > #define _XTAL_FREQ _INT_OSC<br>
>> ><br>
>> > /* 12.0 page 101 setup the ports<br>
>> > */<br>
>> ><br>
>> > TRISAbits.TRISA0 = 0;<br>
>> > TRISAbits.TRISA1 = 0;<br>
>> > TRISAbits.TRISA2 = 1;<br>
>> ><br>
>><br>
>><br>
>> I guess your not experienced with C programming then, and of course you<br>
>> wern't up to speed in the workshop to get help with this part because of<br>
>> your laptop problems.<br>
>><br>
>> The port setup code goes inside the main() function.<br>
>><br>
>> I have added the completed C code to the downloads on the meetings page<br>
>> on the website, you can see what it is meant to look like.<br>
>><br>
>><br>
>><br>
>><br>
>> ------------------------------<br>
>><br>
>> Message: 2<br>
>> Date: Sun, 23 Jun 2013 20:41:16 +0100<br>
>> From: Justin Mitchell <<a href="mailto:justin@discordia.org.uk">justin@discordia.org.uk</a>><br>
>> Subject: [Swansea Hackspace] PIC Workshops<br>
>> To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
>> Message-ID: <<a href="mailto:1372016476.6126.17.camel@emerald.geode.org.uk">1372016476.6126.17.camel@emerald.geode.org.uk</a>><br>
>> Content-Type: text/plain; charset="UTF-8"<br>
>><br>
>> i have been investigating bootloaders for use with the 12f1840 and other<br>
>> chips. It looks entirely feasible to lose just 100 - 300 words (of the<br>
>> 4K word) program memory to a bootloader, which will allow people to<br>
>> re-program their devices at will without needing a dedicated programmer<br>
>> device, just using the usb-serial port devices we were using.<br>
>><br>
>> So i am looking to put together another workshop for the near future,<br>
>> which will utilise a bootloader, talk through the serial port, and<br>
>> perhaps play with analog inputs.<br>
>><br>
>> Would people be interested if i also offered the chance to keep the kit<br>
>> of parts after the workshop for cost ?<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> ------------------------------<br>
>><br>
>> _______________________________________________<br>
>> Hackspace mailing list<br>
>> <a href="mailto:Hackspace@swansea.hackspace.org.uk">Hackspace@swansea.hackspace.org.uk</a><br>
>> <a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
>><br>
>><br>
>> End of Hackspace Digest, Vol 6, Issue 11<br>
>> ****************************************<br>
>><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20130624/7b2672a6/attachment-0001.html" target="_blank">http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20130624/7b2672a6/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 24 Jun 2013 22:38:39 +0100<br>
From: Justin Mitchell <<a href="mailto:justin@discordia.org.uk">justin@discordia.org.uk</a>><br>
Subject: Re: [Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 11<br>
To: <a href="mailto:hackspace@swansea.hackspace.org.uk">hackspace@swansea.hackspace.org.uk</a><br>
Message-ID: <<a href="mailto:1372109919.9107.2.camel@emerald.geode.org.uk">1372109919.9107.2.camel@emerald.geode.org.uk</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Mon, 2013-06-24 at 20:33 +0100, Tim Moore wrote:<br>
> It seemed to 'build' with no errors ! (Plenty of comments)<br>
><br>
> So what next ? How do I get it to produce a file that I can transfer<br>
> to the Pic chip ?<br>
<br>
it did already.<br>
<br>
in the project directory cointoss.X<br>
<br>
look at dist/default/production/<br>
<br>
you would program the .hex file thats in there.<br>
<br>
eg pk2cmd -P -F cointoss.X.production.hex -M<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Hackspace mailing list<br>
<a href="mailto:Hackspace@swansea.hackspace.org.uk">Hackspace@swansea.hackspace.org.uk</a><br>
<a href="http://stoneship.org.uk/mailman/listinfo/hackspace" target="_blank">http://stoneship.org.uk/mailman/listinfo/hackspace</a><br>
<br>
<br>
End of Hackspace Digest, Vol 6, Issue 12<br>
****************************************<br>
</blockquote></div><br>