Searching \ for 'PIC_C compiler' 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/devices.htm?key=pic
Search entire site for: 'PIC_C compiler'.

Truncated match.
PICList Thread
'PIC_C compiler'
1995\12\01@114538 by Tommy Brown

flavicon
face
Hi, I have noticed a lot of activity with reference to C compilers,
and remembered that I had seen such a type for PIC 16C5X.  I had
retrieved it, thinking it was a PIC asm program, as only 14k zip
file.

When I unzipped it, I noticed txt file describing the PIC_C
compiler.  I kept the pic_.txt file, and name of the file
pic_c.zip.  That way in future, if I decide to try PIC_C I can
use archie to search for the file again.  In my notes the file
name is:

pic_c.zip size 14k

I was following a web link reference, looking for free interpreters
and compilers for microprocessors, at:

ftp.uoknor.edu/  (University of Oklahoma at Norman)

The creation date of the file "pic_c.txt", is Nov, 1992.  I don't
know if the address of the author is correct now or not.  However,
it appears to be a C-Compiler, written for 16C5X chips with 2 level
stacks, using the Parallax Instruction Set.  There is mention of future
upgrades.  I enclose the pic_c.txt file verbatim for anyone
interested in this.

Note: It is shareware $25.00 and limited to 500 lines of Program.
****************************************************************
                            pic_c

                          Release 1.0

Ownership
    This software is owned by Collin Brendemuehl/DPC.  It is not
"public domain".  You may register your copy with DPC by sending
$25.00 (US) to:

         DPC
         Attn: PIC C
         103 S Broadway Suite 101
         Edmond OK 73034

    Registered users will receive updates to the compiler as
they become available.

    Source code to the compiler is available for the sum of
$150.00 (US).  With the source code the user may make those
enhancements desired or needed.

Introduction
    The PIC micro-controllers from Microchip have, for the type
of work that I do, proved themselves very useful.  It is easy to
use and has a simple instruction set.  But as a C programmer, I
don't always like to work with multiple assembler formats, one
for each micro-controller.  There exists too much to do and not
enough hours in the day.

    Each system has its own unique characteristics that need to
be remembered.  While that can be done, I'd rather not take the
time and clutter my mind with unnecessary information.  Rather,
I'd prefer to continue programming in C and forget the rest.
(That's what reference manuals are for!)

    I purchased a Parallax development system for my projects,
but soon became frustrated at not having a C compiler available.
Hence, a few hours programming and "Voila!", I can now do my PIC
programming in C.  The listings include the compiler along with
some sample code.  In the sample code you'll see some of the
characteristics of the PIC that make it unique.

    First, a PIC can only call 2 levels of subroutines.  If you
call 3, you'll NEVER return to the first.  That can be hair-
raising to have happen.  But having a C compiler can help you
control that problem.

    The "for", "while" and "if" operations make use of the
"CJxx" (compare and jump if false) instructions within the
Parallax instruction set.  I use these instead of the "CSxx"
(compare and skip if false) to allow more space for inserting
code for customization.

    Supported items include:
         for()
         if()
         while()
         =
         == !=
         <= <
         >= >
         &=
         |=
         ^=
         <<
         >>
         char
    Virtually no "lint" operations are performed.  This allows
the user to execute an assignment to a pre-defined register, such
as 'C'.

Syntax Restrictions:
    The simplicity of this compiler makes it useful for simple
projects.  Inherent in this is some limitation on the nature of a
C statement.  You will notice in the example given that no math
is allowed in the "rvalue" part of a statement ( to the right of
an assignment ).  This made creation of the compiler simpler and
also more efficient.

    Complex conditions are not allowed.  Only a single lvalue, a
comparison, and a single rvalue are allowed.

    The compiler generates no errors.  For instance, if a com-
ment trailing "*/" is ommitted, the compiler will just keep on
running and your system will be "hung".

    The compiler will only read 500 lines of code for a program.

    You may add in-line assembler by using the "#A" directive.
Place the #A before each line containing a line of assembler.
This line will be output as-is to the output file.

Future Enhancements
    Over the next year I have the following enhancements in mind
to make to the compiler:

    1.   "for" and "while" loop enhancement
              (Currently the loop is clean but inefficient)

    2.   Data passing when calling a function
              (Single data element in W)

    3.   Data returns from a function
              (Single data element in W)

    You may have more enhancements that you wish to see.  Please
mail your suggestions.

Warranty
    No warranty is made as to the effectiveness or quality of
this software package.
*******************************************************************
regards,

********************************************************************************
* Tom Brown
E-Mail:spam_OUTtombrownTakeThisOuTspamindo.net.id  *
* Bumi Karang Indah                                Phone: 62-21-7508264        *
* Jalan Karang Asri II,       **************************************************
* Blok C2/#43, Lebak Bulus  *    "If something is worth doing,
*
* Jakarta, Seletan 12440   *           It's worth doing right the first time"  *
* Indonesia               *                                                    *
********************************************************************************


'Pic C compiler'
1998\03\24@181531 by Good Andrew (Sitzman)
flavicon
face
hello,  I was wondering if anyone could help me locate a non-restricted
pic c compiler.. I am a student and prefer to work in c then in assembly.
I saw a bunch of c compilers for it which look good, but I cant afford any
of them.  Thanks in advance


'PIC C Compiler'
1998\06\04@225208 by Felix Portabella
flavicon
face
Anyone knows where I can find a freeware or shareware PIC C Compiler?

PD: Please, answer me at .....david00KILLspamspam@spam@santandersupernet.com

Thankyou

David

1998\06\05@145852 by Wolfgang Kynast

picon face
> Anyone knows where I can find a freeware or shareware PIC C Compiler?

Have a look at
http://people.frankfurt.netsurf.de/Wolfgang.Kynast/pic.htm

Wolfgang


'PIC C compiler'
1998\07\10@185614 by Peter
flavicon
face
part 0 1308 bytes
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.71.1712.3"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>Greetings,</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Where can I obtain a copy of a C-compiler for PIC supporting
device 12C508. I dont know if purchasing a full blown version is worth it. I
have very little <FONT color=#000000>experience </FONT>with C, mostly assembler
and basic. Should I take the time and spend the money on this
language?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Any input is <FONT
color=#000000>appreciated</FONT>.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>TIA</FONT></DIV>
<DIV><FONT color=#000000 size=2>--------------------------------<BR>Peter
Popowicz<BR>Senegal Technology<BR><A
href="popowiczspamKILLspamoanet.com">.....popowiczKILLspamspam.....oanet.com</A></FONT></DIV></BODY></HTML>

</x-html>

1998\07\10@204343 by Clyde Smith-Stubbs

flavicon
face
On Fri, Jul 10, 1998 at 04:53:50PM -0700, Peter wrote:
> Where can I obtain a copy of a C-compiler for PIC supporting device 12C508. I
dont know if purchasing a full blown version is worth it. I have very little exp
erience with C, mostly assembler and basic. Should I take the time and spend the
money on this language?

Download the demo version of HI-TECH C from http://www.htsoft.com - select
the PIC C link. This will give you a time-limited version of the compiler
that will allow you to answer your questions before committing cash.

Cheers, Clyde

--
Clyde Smith-Stubbs               |            HI-TECH Software
Email: EraseMEclydespam_OUTspamTakeThisOuThtsoft.com          |          Phone            Fax
WWW:   http://www.htsoft.com/    | USA: (408) 490 2885  (408) 490 2885
PGP:   finger clydespamspam_OUThtsoft.com   | AUS: +61 7 3354 2411 +61 7 3354 2422
---------------------------------------------------------------------------
HI-TECH C: compiling the real world.

1998\07\11@153414 by Walter Banks

picon face
> Where can I obtain a copy of a C-compiler for PIC supporting device
12C508.
> I dont know if purchasing a full blown version is worth it. I have very
little
> experience with C, mostly assembler and basic.

You might want to look at http://www.bytecraft.com There is a demo
of MPC there. We have lots of customers who regularily write software
for very small chips. Compilers can now generate code that is
very competative with very well written assembly language.

> Should I take the time and spend the money on this language?

Yes but then I am biased. :)

Walter Banks


'pic c compiler'
2000\01\26@115117 by Tom Weber
picon face
Hello
I've got the download version from the ht-soft pic c demo.
I'm searching for a function, which reads the status of a button/key and
considers the bouncing. Has someone already written a such function?
And has already someone realised something with an TDA7318.

Tom

--
Sent through Global Message Exchange - http://www.gmx.net

2000\01\26@235411 by Nikolai Golovchenko

flavicon
face
Hello Tom,
     I use one routine all the time and it has always suited me. It
     is called every 20 ms or so and ensures that the button pressing
     causes return of 1 only if two consecutive reads were the same.
     Also, it implements auto-repeat.

     Here it is:

#define KEYPORT PORTA
#define PAUSE   20
#define REPEAT  3
#define KEYMASK 0b00001000      //RA3
static unsigned char Keys;
/****************       KEYS POLLING ROUTINE    *****************
               Low active level assumed
               Should be called every about 20 ms (T)
               PAUSE * T - delay after first click
               REPEAT * T - delay between clicks after
               KEYPORT - PORT register (e.g. PORTA)
               KEYMASK - mask for port register (1 for every button)

               Returns TRUE if a key is pressed and on auto-repeat

*/
unsigned char
KeysPoll(void) {
static unsigned char KeysOld;
static unsigned char KeyCnt;
static unsigned char KeyCntLim;

       Keys = KEYPORT; //read port
       if (((Keys ^ KeysOld) & KEYMASK) == 0) {        //Nothing changed
               if (--KeyCnt == 0) {
                       KeyCnt = KeyCntLim;
                       KeyCntLim = REPEAT;
                       KeysOld = Keys;
                       if (((Keys ^ KEYMASK) & KEYMASK) != 0) return 1;
               }
       }
       else {
               KeyCnt = 1;
               KeyCntLim = PAUSE;
       }
       KeysOld = Keys;
       return 0;
}




Bye,
Nikolai

On Wednesday, January 26, 2000 Tom Weber wrote:
{Quote hidden}

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