Jump to content
paul_sentera

Clrwdt Instruction

Recommended Posts

void main(void) {

asm
{
	clrwdt
0003  0064	  CLRWDT

}

}
0004  0008	  RETURN

 

Works for me. What error message are you getting ?

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites
By using a inline assembly instruction

 

asm

{

clrwdt

}

 

Compiler generate a error on this pic16F887 assembly instruction. How can this be solved?

 

Why asm when you can C

 

void clear_wdt( void )

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...