Jump to content
Sign in to follow this  

Getting the TICK count to avoid DELAY...

Recommended Posts

Hi Everyone,


i'm trying to build a DMX512 inteface with PIC16F628-04/P. When i finish the software, i will put here for free distribution.


For now i'd like to use a 4mhz clock, and i'm still having some warnings.


1st - With 4mhz clock, the delay_ms(4) will work? Because the compiler sends me a warning:

Warning: Parameter value of delay_us must be between 16 and 255


2nd - There's a way to get the TICK clock counter? So i can read every main loop the tick, and subtract the actual tick from the first one to get time function. Doing this way, the program will not stop at delay_ms , and all other functions may be executed normally.


I hope everyone understands my poor english.


Luiz Junior




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.

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.

Sign in to follow this  

  • Create New...