- This topic has 1 reply, 2 voices, and was last updated 6 years, 3 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › delay in piic
i want to generate delay of 1 second using internal oscillator of 8mhz. i am using mikro C compiler and i want to use Delay_ms () function.
i set the config bit
_CPUDIV_OSC1_PLL2_1L and _FOSC_INTOSC_HS_1H
i also set the OSCCON=0x73
but the delay i more than 1 sec.
Hi Kimberly
There is always a difference between microcontroller generated time and the original time no matter how precise you can go for the same; small or tiny delays can add upto several seconds of delays when clubbed together. Maybe this is one of the reasons why RTCs (Real Time Clock) have been developed for such applications.