Searching \ for '[PIC] Using C with picmicro ?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/languages.htm?key=c
Search entire site for: 'Using C with picmicro ?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Using C with picmicro ?'
2005\05\06@115954 by Jan-Erik Soderholm

face picon face
Krista wrote :

> Subject: Fw: [PIC] Using C with picmicro ?

Which "Picmicro" ??

> Hi
> Is it possible to work in C. I have heard of picBasic, which is what
> I would ideally use if it was free, but since it isn't I
> prefere C to ASM.

When you was browsing the Microchip site,
did you miss this one ?? :

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&part=SW006011

Jan-Erik.



2005\05\06@121948 by Krista

flavicon
face


> Krista wrote :
>
> > Subject: Fw: [PIC] Using C with picmicro ?
>
> Which "Picmicro" ??
>

12f675

2005\05\06@123405 by Dave Turner

picon face
Also, you can use the free CC5X for 16F and CC8E demo versionfor 18F.
Get them from http://www.bknd.com/cc8e/index.shtml and
http://www.bknd.com/cc5x/index.shtml.  The 16F version is completely
free, and I don't think it has any limits.  The 18F version I think
has a code size limit of about 1 or 2K instructions.  Also, I think
the 18F version had some optimisation limits.

On 5/6/05, Jan-Erik Soderholm <spam_OUTjan-erik.soderholmTakeThisOuTspamtelia.com> wrote:
{Quote hidden}

> -

2005\05\06@124626 by Ake Hedman

flavicon
face
Krista wrote:

>  
>
>>Krista wrote :
>>
>>    
>>
>>>Subject: Fw: [PIC] Using C with picmicro ?
>>>      
>>>
>>Which "Picmicro" ??
>>
>>    
>>
>
>12f675
>  
>
Hi-tech have a compiler for it.

http://www.htsoft.com/products/picccompiler.php

Donwload the picc lite

Cheers
/Ake

--  ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org

2005\05\06@130625 by Marcel van Lieshout

flavicon
face
And don't forget to look at the compiler/simulator on http://www.fored.co.uk
for which FreeRTOS (an open source RealTime Operating System, see
http://www.freertos.org ) is available.

Marcel

Dave Turner wrote:
{Quote hidden}

>> --

2005\05\06@130756 by Ake Hedman

flavicon
face
Ake Hedman wrote:

{Quote hidden}

I should have added that it's the picc_lite and that its free.

/Ake

--  ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org

2005\05\06@143859 by Jan-Erik Soderholm

face picon face
Krista wrote :

> > Which "Picmicro" ??
> >
>
> 12f675

OK. 1 Kwords of prog mem.
I know you didn't asked about it but, in my personal opinion,
you could just as well put together some assembler code
for that one. :-)

Regards,
Jan-Erik.



2005\05\06@151116 by Mark Rages

face picon face
On 5/6/05, Jan-Erik Soderholm <jan-erik.soderholmspamKILLspamtelia.com> wrote:
> Krista wrote :
>
> > > Which "Picmicro" ??
> > >
> >
> > 12f675
>
> OK. 1 Kwords of prog mem.
> I know you didn't asked about it but, in my personal opinion,
> you could just as well put together some assembler code
> for that one. :-)
>
> Regards,
> Jan-Erik.

I agree.  It is easier to start with assembler to learn how the chip works.

Then when you get tired of tedious asm programming, you can switch to C.

Regards,
Mark
markrages@gmail
--
You think that it is a secret, but it never has been one.
 - fortune cookie

2005\05\06@153000 by Dave Turner

picon face
Well, if you have ever used the ICD2 debugger, you cannot use it with
C programs, and if you have got used to it, you'll sure start missing
it quickly.  That's one of the main reasons I exclusively use ASM,
except occasionally to find out how something is done in assembler, in
which case I code it in C, compile it to asm, and look at the
assembler & C list file.

On 5/6/05, Mark Rages <.....markragesKILLspamspam.....gmail.com> wrote:
{Quote hidden}

> -

2005\05\06@170115 by William Chops Westfield

face picon face
>> 12f675

I've used cc5x (free version) to make 12f675 code.  Worked fine.
There are several C compilers that have 'free' versions that produce a
limited amount of code for a limited number of processors; they're
about equally expensive as basic compilers for 'real' versions (for
that matter, I'm pretty sure that there are free versions of some of
the basic compilers as well.)  See here:

http://www.piclist.com/techref/microchip/languages.htm

Also consider JAL, a language somewhere between C, Basic, and Pascal,
fully free and open source compiler...

BillW

2005\05\06@172526 by Ake Hedman

flavicon
face

Dave Turner wrote:

>Well, if you have ever used the ICD2 debugger, you cannot use it with
>C programs,
>
I Do that everyday.  Not a problem.

I can still agree that to start with asm would be a good choice.  On a 675  there is not much reason for C at all if your not just interested in testing stuff. If the aim is to learn things about microcontrolllers there is plenty to learn either way.  If you continue to use asm on a higher end processor with lots of memory and no *very special* reason to do so then its just foolish with one possible excuse that you do it  just for the fun of it ;-).

/Ake

--  ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org

2005\05\06@173051 by Per Linne

flavicon
face
Strange!? I do it now and then and don't see a problem.
How do you mean "...cannot use it with C..."?

PerL


----- Original Message -----
From: "Dave Turner" <dave.w.turnerspamspam_OUTgmail.com>
To: "Microcontroller discussion list - Public." <@spam@piclistKILLspamspammit.edu>
Sent: Friday, May 06, 2005 9:30 PM
Subject: Re: [PIC] Using C with picmicro ?


> Well, if you have ever used the ICD2 debugger, you cannot use it with
> C programs, and if you have got used to it, you'll sure start missing
>

2005\05\06@175628 by piclist

flavicon
face
On Fri, 6 May 2005, Dave Turner wrote:

> Well, if you have ever used the ICD2 debugger, you cannot use it with
> C programs

Complete nonsense.  I do it all the time.

--
John W. Temples, III

2005\05\06@175901 by Bob Blick

face picon face
> Well, if you have ever used the ICD2 debugger, you cannot use it with
> C programs, and if you have got used to it, you'll sure start missing
> it quickly.  That's one of the main reasons I exclusively use ASM,
> except occasionally to find out how something is done in assembler, in
> which case I code it in C, compile it to asm, and look at the
> assembler & C list file.

Although when programming in C you will find you rarely have to use an
emulator or ICD, because programs are more likely to work and debug, it is
not true that you cannot use the ICD2, ICD, or emulator with C, in fact
they work just fine, at least with C from the major vendors.

BTW, Hi-Tech PICC-Lite(the free version), works with the 12F675.

Using PICs with any language, you will pick up some asm eventually.
Whether it is best to start with asm or a high level language is
debateable and I doubt you'll be able to get an objective opinion because
most people can't "start over again" with PICs, and you probably wouldn't
want to even if "un-learning" were possible. I started with asm and now
use C so I know that works, perhaps someone who started using PICs in C
will chime in.

Cheerful regards,

Bob


2005\05\06@180747 by Dave Turner

picon face
When I used debug mode, and tried to single-step, etc. the pointer
just stayed put.  Don't know if this is because it wasn't the
microchip C compiler - it was CC8E, but the debugging functions seemed
quite useless without seeing where it was going

On 5/6/05, Per Linne <KILLspamper.linneKILLspamspamswipnet.se> wrote:
{Quote hidden}

> -

2005\05\07@053912 by Ake Hedman

flavicon
face
Dave Turner wrote:

>When I used debug mode, and tried to single-step, etc. the pointer
>just stayed put.  Don't know if this is because it wasn't the
>microchip C compiler - it was CC8E, but the debugging functions seemed
>quite useless without seeing where it was going
>
>  
>
Its a bit slow sometimes but it "works"

/Ake


--  ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org

2005\05\07@110112 by Paul Hutchinson

picon face
The makers of CC8E have a web page detailing how to get the debugging with
ICD2 working at:
http://www.bknd.com/mplab6.shtml

Their main page for CC8E says "Combining CC8E and ICD2 debugging is
possible." and giving the link above so, if it doesn't work you should
contact them about it.

Paul


> -----Original Message-----
> From: TakeThisOuTpiclist-bouncesEraseMEspamspam_OUTmit.edu On Behalf Of Dave Turner
> Sent: Friday, May 06, 2005 6:08 PM
>
> When I used debug mode, and tried to single-step, etc. the pointer
> just stayed put.  Don't know if this is because it wasn't the
> microchip C compiler - it was CC8E, but the debugging functions seemed
> quite useless without seeing where it was going
>

2005\05\09@042146 by Alan B. Pearce

face picon face
>When I used debug mode, and tried to single-step, etc. the pointer
>just stayed put.  Don't know if this is because it wasn't the
>microchip C compiler - it was CC8E, but the debugging functions seemed
>quite useless without seeing where it was going

I suspect what you see here is the same effect as you get using macros in
ASM. The debug pointer cannot keep track through the macro, and leaves the
pointer on the first line of the code, because that is where the source line
points to. The pointer does not step until you go into the next source code
line, and then it moves the whole dose of code generated by the macro you
have just stepped through.

The C code statements get treated like ASM macros I believe. It is
definitely an area where MPLAB needs an update.

2005\05\09@081454 by Douglas Wood

picon face
Try looking at the code using the "Disassembly Listing". You can see both
the C and generated assembly code and the simulator will operate on the
assembly code.

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...