Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

16f628 internal clock

Status
Not open for further replies.

Analyzer

Full Member level 6
Joined
Nov 18, 2001
Messages
374
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
3,518
Hi there,
I'm working on a project and i want to use 628's internal clock.I'm programming on ccs c++ compiler.So how will i modify my code and how will i modify my circuit?(Esp. osc. section) By the way is it safe like xtall?
Can you explain everything deeply please?

Analyzer
 

ccs 16f628 Ä°nternal osc

Hi

Here is some code for 16F628 with internal clock. The code uses CCS.

Put the clock "fuses" to INTRC IO, then 2 more pins are free for IO.

Look at the data sheet to find how precise and stable is the
internal clock (vs temperature and voltage)
 

fuses 16f628 rc

Hi Analyzer!

By the way is it safe like xtall?

I am using few hundreds of PIC16F628 with INTRC (4 MHz) now on -25 C without any problem. Also they worked on +80 C (on tests). Frequency stability is good enough, as in specification. I had some problems with WDT timers - they have big frequency difference.

73! klug.
 

intrc clk osc

Thank you very much.It will be helpful for me.I have a device so how will i modify the oscillator section of my device? Just cancel xtall and its 2 capacitors?Will i connect someting? Can anyone send me a design (jpg,bmp) that uses internal clock?
Analyzer
 

16f628 clk

It's simple. You have config bits for define which oscillator is used (RC, Xtal, internal RC etc.). So, you when you use internal clk two pins where you connect xtal and capacitors to gnd can be port pins or internal clk out so you can sinhronize some other hardware to clk of your controller.

Those config bits I set in software for programming pic (I use picprog).

Mr.Cube
 

16f628 internal capacitor

Remove crystall and capacitors. The two pins are now free
and normal IO pins ! Thats was done on the exemple I send you.

Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top