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

Tim Moore timmoore47 at gmail.com
Mon Jun 24 20:33:18 BST 2013


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.html>


More information about the Hackspace mailing list