Find Jobs
Hire Freelancers

CCP1 MikroC

$30-250 AUD

Slutfört
Publicerad över elva år sedan

$30-250 AUD

Betalning vid leverans
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

Om projektet

8 anbud
Distansprojekt
Senaste aktivitet tolv år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
Hi.I can do it.
$100 AUD Om 1 dag
4,8 (13 omdömen)
4,5
4,5
8 frilansar lägger i genomsnitt anbud på $138 AUD för detta uppdrag
Använd avatar
hi,i can help.
$150 AUD Om 3 dagar
4,8 (30 omdömen)
7,3
7,3
Använd avatar
hello i can do that thanks
$120 AUD Om 3 dagar
4,7 (18 omdömen)
6,3
6,3
Använd avatar
I can do this your project, for details kindly see your mail box. Thanks.
$100 AUD Om 4 dagar
4,9 (10 omdömen)
5,4
5,4
Använd avatar
Let's work
$200 AUD Om 5 dagar
0,0 (1 omdöme)
0,0
0,0
Använd avatar
I can do that, I have long experience with Microchip microcontroller.
$200 AUD Om 2 dagar
0,0 (0 omdömen)
0,0
0,0
Använd avatar
Hi ,I can help you.
$95 AUD Om 3 dagar
0,0 (0 omdömen)
0,0
0,0
Använd 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 Om 8 dagar
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för AUSTRALIA
Perth, Australia
5,0
2
Verifierad betalningsmetod
Medlem sedan maj 17, 2011

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.