[Swansea Hackspace] Re: Hackspace Digest, Vol 6, Issue 12

Tim Moore timmoore47 at gmail.com
Tue Jun 25 13:19:17 BST 2013


Hi Justin,

Many thanks, I have found the .hex file !

Brilliant. Next step is building the circuit.  All the parts have arrived
including a PICkit 2.

(I'm using a reasonably moden desktop PC  and W7)

Greatly appreciate your support !

:  )))

Tim

On 25 June 2013 12:00, <hackspace-request at swansea.hackspace.org.uk> wrote:

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


More information about the Hackspace mailing list