Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Help with determining the clock speed/instruction cycle time of a PIC16F684

Status
Not open for further replies.

Steve311

Member
Hi All; I am a little confused with how to interpret the true time one instruction cycle takes with using a 32kHz internal oscilliator in a PIC16F684.

From what I understand, if I use the 32kHz clock, then each instruction cycle will take 1/32kHz = 32us per instruction cycle. Is this correct? Or is the internal clock divided by 4 which would yield an 8us insruction cycle?

I am trying to figure this out so I can accurately produce various digital output frequencies.

Any help would be appreciated!

Thanks All!
Steve
 
I am trying to figure this out so I can accurately produce various digital output frequencies.

Any help would be appreciated!

Thanks All!
Steve
There won't be anything accurate at all with the LFINTOSC, check table 15-2 of the data sheet for what I mean. A better chance would be with the HFINTOSC, if operated under optimal conditions.
 
An instruction will take approximately 4X32us = 128us, or 1e6/128 = 7812 instructions/sec
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top