Author |
Message |
Topic: WDT |
carl
Replies: 2
Views: 6460
|
Forum: General CCS C Discussion Posted: Fri Jul 31, 2015 8:29 am Subject: WDT |
Excellent,
All working as it should:)
Much appreciated. |
Topic: WDT |
carl
Replies: 2
Views: 6460
|
Forum: General CCS C Discussion Posted: Fri Jul 31, 2015 6:31 am Subject: WDT |
Hi all,
Hope you can help. Some pre-requisites:
Compiler Version 4.141
Using 16f877
Using MPLAB (in release mode, WTD enabled in settings).
I have never used the WDT function ever - always ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Thu Nov 20, 2014 8:59 am Subject: Counting Pulses Method 'Tachometer' |
Agreed.
Thanks for all your help guys! |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Thu Nov 20, 2014 8:27 am Subject: Counting Pulses Method 'Tachometer' |
Hi Jay,
Its not the cost, but the application is very lower power (WiFi Encoder) that lasts for over a year from battery and ordinarily 'critical' timing is not required for the current application ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Thu Nov 20, 2014 7:52 am Subject: Counting Pulses Method 'Tachometer' |
Understood Ttelmah and thanks for your input.
The primary goal is within 1% and if it is achievable without changing the hardware, then that is the main priority. The PCB design is already in use f ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2014 11:42 am Subject: Counting Pulses Method 'Tachometer' |
thanks mike,
totally understand and agree.
the logic is not correct. will look at this again tomorrow.
carl |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2014 10:29 am Subject: Counting Pulses Method 'Tachometer' |
Hi PCM,
Let me have a think about this tomorrow - thanks for all your help as always. |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2014 10:04 am Subject: Counting Pulses Method 'Tachometer' |
Hi PCM,
Thanks so much for replying.
whilst you have written this, I have worked it out.
The way I was using the formula was incorrect.
I thought that 1 loop meant one timer period = 49.98ms ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2014 6:15 am Subject: Counting Pulses Method 'Tachometer' |
Its way out!
changed the loops to 'one' = tick every 49.92mS.
sensor_pulses = 180 at 2000rpm.
plugging 180 into the equation gives:
RPM = ((180/0.04992) / 52) * 60
RPM = 4160
either my c ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2014 3:16 am Subject: Counting Pulses Method 'Tachometer' |
Preview
PostPosted: Wed Nov 19, 2014 3:13 am Post subject:
Hi PCM,
I will look into it, but potentially what could be the issue?
Could the two interrupts be in conflict?
so if the prog ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Tue Nov 18, 2014 4:49 pm Subject: Counting Pulses Method 'Tachometer' |
Thanks for replying.
Simplifying the maths doesn't make any difference.
Initially i just transmitted the 'sensor_pulses' alone, so no maths at all, and then this value was plugged into the rpm eq ... |
Topic: Counting Pulses Method 'Tachometer' |
carl
Replies: 21
Views: 31559
|
Forum: General CCS C Discussion Posted: Tue Nov 18, 2014 9:53 am Subject: Counting Pulses Method 'Tachometer' |
Hi All,
I am a bit stuck, and hope you can help.
I am trying to measure accurate RPM (within 1%) when using a 13ppr quad encoder (so 52 edge detection per revolution). Max speed is 2000rpm. min S ... |
Topic: Interrupt on change |
carl
Replies: 7
Views: 10862
|
Forum: General CCS C Discussion Posted: Mon Jun 30, 2014 3:47 am Subject: Interrupt on change |
As always
Thanks so much!! |
Topic: Interrupt on change |
carl
Replies: 7
Views: 10862
|
Forum: General CCS C Discussion Posted: Mon Jun 30, 2014 3:32 am Subject: Interrupt on change |
Hmmm,
I see it - thanks Ttelmah!
I haven't got a clue however how to set this up in code.
Have you any examples?
I'll have a look in the forum as well.
Thanks
Carl |
Topic: Interrupt on change |
carl
Replies: 7
Views: 10862
|
Forum: General CCS C Discussion Posted: Mon Jun 30, 2014 2:59 am Subject: Interrupt on change |
Hmmm,
Thanks for replying Ttelmah!
This would be good if I could find one.
Using the search option for my application (5V, 30 MIPS, 80 pin) on microchip only gives me five options (dsPIC30F5013 ... |
|