L laxmid New Member Aug 26, 2010 #1 Hi, Please help hw to write c code for delay. Thanks & Regards, Laxmi
Oznog Active Member Aug 27, 2010 #2 You can write a code loop to count cycles, you can use a timer module to count in hardware and cause an interrupt, or you might have a regular event that you count how many times it occurs.
You can write a code loop to count cycles, you can use a timer module to count in hardware and cause an interrupt, or you might have a regular event that you count how many times it occurs.
C CafeLogic New Member Aug 28, 2010 #3 A routine is included with the C30 peripheral library. It is an assembly module, you have to add it to your project. See here: Delay function in C30
A routine is included with the C30 peripheral library. It is an assembly module, you have to add it to your project. See here: Delay function in C30