Please explain -- Caution: Delay inaccurate: 'delay_ms'

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

Please explain -- Caution: Delay inaccurate: 'delay_ms'

Post by gtc »

Would someone please explain this compiler diagnostic, please:
Caution: Delay inaccurate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00016ms, Delay resolution:1 units
Target chip is PC16F88
osccon = 0x78; // Set INTRC to 8MHZ

Is there a configuration setting I have missed somewhere?

gtc
Posts: 69
Joined: Mon Mar 23, 2015 5:34 am
Has thanked: 30 times
Been thanked: 15 times
Contact:

Re: Please explain -- Caution: Delay inaccurate: 'delay_ms'

Post by gtc »

I have found the answer to my own question.

I needed to set the clock speed to 8000000 via the Project Options --> General Options tab.

8000000 was not in the clock speed drop down list so I had to key it in.

Post Reply