View previous topic :: View next topic |
Author |
Message |
muahaha
Joined: 11 Oct 2005 Posts: 4
|
header file is searched which contains delay_cycle |
Posted: Wed Oct 12, 2005 5:25 am |
|
|
I used a MPLAB program and C18 compilear but my program does not recognized some commands which delay_cycle.....
I find a header file which must haver delay_cycle... |
|
|
Ttelmah Guest
|
|
Posted: Wed Oct 12, 2005 5:44 am |
|
|
This is a ccs group, not C18. Delay_cycles is a CCS function. You can write something yourself, a 'cycle' in this context, is just one machine instruction, so a macro, which substitutes a 'nop' for every count in the 'delay_cycle' function, will give the same effect. If you want to find whether C18, has such a function already defined, then ask in a C18 group.
Best Wishes |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Wed Oct 12, 2005 6:44 am |
|
|
For C18 look in delays.h file. They have several functions but none work as well as the CCS functions as far as being "user friendly". |
|
|
|