Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with Vdelay_ms

Status
Not open for further replies.

rov_tar

Newbie level 4
Newbie level 4
Joined
Nov 29, 2012
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,348
Good day guys!

I tried to use vdelay_ms() in mikroC but it doesn't build. It always point out the error on the "vdelay_ms"

here's the part of the code:

delay = 1000;
while(1)
{
PORTA = ~PORTA
vdelay_ms(delay);
}

Can somebody tell me how to fix this?
 

thanks!

I just wanna ask if ever I wanted to use a variable and use it's value as an input for delay ( I want to manipulate the delay), how can I fix this error? I thought that vdelay_ms was just a simple command..
 
Last edited:

Nope but I'm using mikroC and before starting to program I already set the project to include all libraries.
 

Are you asking something like this

void delay(unsigned int msec) // Time delay function
{
int i,j ;
for(i=0;i<msec;i++)
for(j=0;j<1275;j++);
}
 

Nope but I'm using mikroC and before starting to program I already set the project to include all libraries.

Read the help, you need to add the include line to your source code it's not enough to enable all the libraries in the library manager as the built_in library is not in that list.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top