![]() #pragma config CSWEN = ON // Clock Switch Enable bit (Writing to NOSC and NDIV is allowed) ![]() #pragma config CLKOUTEN = OFF // Clock Out Enable bit (CLKOUT function is disabled) #pragma config RSTOSC = HFINTOSC_1MHZ// Power-up default value for COSC bits (HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1) // CONFIG1H #pragma config FEXTOSC = ECH // External Oscillator mode Selection bits (EC (external clock) above 8 MHz PFM set to high power) My question is, what formula would I need to use to set my delay to be 10Hz? The code above is working but it's giving me a 7 seconds delay which is not what I am looking for. Here is the configuration bits I am using.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |