Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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
 

sc/mp

Full Member level 2
Joined
Feb 10, 2002
Messages
128
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,054
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)
 

klug

Advanced Member level 1
Joined
Jul 4, 2002
Messages
476
Helped
12
Reputation
24
Reaction score
7
Trophy points
1,298
Activity points
4,382
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.
 

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
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
 

mrcube_ns

Advanced Member level 1
Joined
Apr 10, 2002
Messages
452
Helped
48
Reputation
96
Reaction score
34
Trophy points
1,308
Location
Europe
Activity points
3,814
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
 

sc/mp

Full Member level 2
Joined
Feb 10, 2002
Messages
128
Helped
7
Reputation
14
Reaction score
6
Trophy points
1,298
Activity points
1,054
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top