Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Delay program for pic16f1937 using hitech c

Status
Not open for further replies.

rems

New Member
how to store delay in a variable using hitech c for pic16f1937.when i
void time (unsigned long int)
_delay(time);
its throwing error: inline delay argument must be constant.
could someone help me to solve this please.
Thanks in advance
 
i did that,but it is not working .
so i did like this
for (i = 0 ; i < delaytime ; i++)
_delay(10);

now its workling.

i have another problem,i need to send the delay from c# using serial port to c program. could you please tell me how to recive data from c# to c using serial port.
 
i am sending temperture from temperature sensor boerd to pc using serial port. so
first i will send the temperature to pc and the temperatures are displaying in texbox.i have a combo box in which user can select the time ,so tht for example user select 1 min,tempertaure will be displayed in textbox everyone min.

so once the user select the time i need to write that time in serial port and send it .
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top