Searching \ for '[PIC] Help with porting from Hitech C to C18' 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/ios.htm?key=port
Search entire site for: 'Help with porting from Hitech C to C18'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] Help with porting from Hitech C to C18'
2009\07\16@224551 by solarwind

picon face
On Thu, Jul 16, 2009 at 10:23 PM, Carl Denk<spam_OUTcdenkTakeThisOuTspamwindstream.net> wrote:
> I am porting a Hitech C program for a 16F870 to C18 for a 18F1320.
> Hitech has the REPT directive to insert a variable number of repetitions
> a a group of code. How would I replace this group of code with C18? This
> is a critical timing delay.
>
>        REPT    (INST_CYCLES_NEEDED - 3)
>        NOP
>        ENDM
>
> The program allows to specify the clock speed, which then adjusts the
> number of clock periods to get the desired delays. I could pick a clock
> speed and insert the necessary NOP's, but would try to maintain the
> timing. I only have the free versions of both compilers, which for a
> hobbiest is all I can justify.  I don't hink the Hitech handles the
> 18F1320.  :)
>
> Thanking in advance.

HITECH has compilers for PIC18. Also, C18 has delay functions in delays.h

2009\07\17@090115 by Carl Denk

flavicon
face
Thanks for everyones help, I'll check out Delays.h, While, and checking
the Hitech include files for the actual coding. I didn't think Hitech
had a free C compiler for the 1320.



solarwind wrote:
{Quote hidden}

2009\07\17@130400 by solarwind

picon face
On Fri, Jul 17, 2009 at 9:01 AM, Carl Denk<cdenkspamKILLspamwindstream.net> wrote:
> Thanks for everyones help, I'll check out Delays.h, While, and checking
> the Hitech include files for the actual coding. I didn't think Hitech
> had a free C compiler for the 1320.

www.htsoft.com/products/compilers/picc18pro-get.php

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