Find Jobs
Hire Freelancers

CCP1 MikroC

$30-250 AUD

Completed
Posted over 11 years ago

$30-250 AUD

Paid on delivery
Please do not pass this job up as too simple. I have spent many hours trying to make this work, so I am willing to pay for your time and some extra. Please name your price. The job only requires about 20 or so lines of code, but so far I have been unable to grasp the concepts required. I will use this code to complete my project and to form an understanding of the CCP1 capture module. I have not been able to find any sample code in MikroC. I require a function written in the MikroC compiler to work on a PIC18f2520 chip. I would like the code commented so that I can understand how it works. The function I require needs to read a 0 to 5 volt square wave that has a varying pulse width from the CCP1 pin RC2 and calculate the pulse width using CCP1 and Timer1. I am using a 20mhsz resinator and the lenth of the pulses widths vary from 0.5ms to 8ms. The value of the measured pulse width needs to be stored in variable " PulseWidth1". The function is called when pin RC0 is grounded. ie if (PORTC.B0==0 ) { } . While (1). I have set TRISC.B2=1; I defined the variable PulseWidth1 as an unsigned int. I require the pulse measurement to begin on the first rising edge to the next falling edge ie measure the pulse width when the signal is high. The value of PulseWidth1 needs to be output as such. 0.5ms = a value of PulseWidth1 = 50 1 ms = a value of PulseWidth1 = 100. I require the settings for Timer1,Timer3, how to set up the interupts and how enable and clear flags.
Project ID: 2641100

About the project

8 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi.I can do it.
$100 AUD in 1 day
4.8 (13 reviews)
4.5
4.5
8 freelancers are bidding on average $138 AUD for this job
User Avatar
hi,i can help.
$150 AUD in 3 days
4.8 (30 reviews)
7.3
7.3
User Avatar
hello i can do that thanks
$120 AUD in 3 days
4.7 (18 reviews)
6.3
6.3
User Avatar
I can do this your project, for details kindly see your mail box. Thanks.
$100 AUD in 4 days
4.9 (10 reviews)
5.4
5.4
User Avatar
Let's work
$200 AUD in 5 days
0.0 (1 review)
0.0
0.0
User Avatar
I can do that, I have long experience with Microchip microcontroller.
$200 AUD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi ,I can help you.
$95 AUD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have good deal of experience on Timer modes in PIC and I can certainly help you with that. Additional info is in message.
$140 AUD in 8 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRALIA
Perth, Australia
5.0
2
Payment method verified
Member since May 17, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.