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.

how can we measure pulse width using pic12f683

Status
Not open for further replies.

padma

Newbie level 6
Newbie level 6
Joined
Sep 26, 2010
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
I am developing my code in ccs compiler,and i used capture function for measuring pulse width but when ccp1 value is checked,it shows larger deviation for a fixed pulse width and it was spontaneously changing.why it is so?here 4MHZ internal clock source is used and ccp1 is also placed in ISR.

Can anyone help me in this problem?
 

emailkprajesh

Junior Member level 2
Junior Member level 2
Joined
Nov 24, 2005
Messages
24
Helped
10
Reputation
20
Reaction score
9
Trophy points
1,283
Location
India
Activity points
1,382
do not use internal RC clocks. use external crystal.

Rc clocks are not accurate.
 
  • Like
Reactions: padma

    padma

    Points: 2
    Helpful Answer Positive Rating

Tahmid

Advanced Member level 6
Advanced Member level 6
Joined
Jun 17, 2008
Messages
4,752
Helped
1,796
Reputation
3,584
Reaction score
1,653
Trophy points
1,413
Location
Silicon Valley, California, USA (from Dhaka, Bangl
Activity points
30,537
Hi,
The internal clock is not absolutely accurate, so for precision jobs, use external crystal. The value of the internal clock may stray with different factors, like temperature,etc.

Hope this helps.
Tahmid.
 
  • Like
Reactions: padma

    padma

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top