Author |
Message |
Topic: Multiplying INT vs LONG cycle time |
Ahmed Adel Hosni
Replies: 2
Views: 4256
|
Forum: General CCS C Discussion Posted: Tue Jun 03, 2014 1:46 am Subject: Multiplying INT vs LONG cycle time |
Hello,
I have two methods making the same function but written in different algorithms. I want to understand which one will give the least cycle time.
The first one is using long variable and th ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Mon Jan 13, 2014 4:06 am Subject: IR decoder with CCP using PIC16F877 accuracy |
guys, am happy to tell you that i succeeded to re-transmit the SIRC code to turn on and off the TV :D
Thanks a lot for your help and your patient.
I'll be back again if i faced any problems :oo ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Sat Jan 11, 2014 10:48 am Subject: IR decoder with CCP using PIC16F877 accuracy |
These are the signals which i read from the AC receiver itself.
This is 38 readings:
3400 usec, 1660 usec
520 usec, 1100 usec
500 usec, 1080 usec
520 usec, 480 usec
540 usec, 480 usec
540 ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Sat Jan 11, 2014 7:03 am Subject: IR decoder with CCP using PIC16F877 accuracy |
Some protocols send the bit string once and then just send a "repeat" bit or bits if you keep the button pressed.
Also keep in mind you never press the button for the exact amount of time ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Sat Jan 11, 2014 3:13 am Subject: IR decoder with CCP using PIC16F877 accuracy |
Thanks a lot Ttelmah for your fast response and please be patient with my other questions
I'll try to transmit the pulses again within two days and inform you back with the results.
I have an ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Fri Jan 10, 2014 3:25 pm Subject: IR decoder with CCP using PIC16F877 accuracy |
That's an an awesome explaination from you and things are more clear now.
Well i have some questions to fully understand how the receivers handles the bits.
I remember when i decoded the sirc th ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Fri Jan 10, 2014 3:19 am Subject: IR decoder with CCP using PIC16F877 accuracy |
Why do you think SIRC, has a 2:1 timing difference between the 1, and 0 timings?.
Reason is that it is designed to work with transmitters that may well use simple RC timings, and commonly have perh ... |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Fri Jan 10, 2014 3:13 am Subject: IR decoder with CCP using PIC16F877 accuracy |
Maybe the remote itself does not have a perfect timing.
G.
You may be right and i guess i need to test me decoder with a function generator also ti be sure. |
Topic: IR decoder with CCP using PIC16F877 accuracy |
Ahmed Adel Hosni
Replies: 14
Views: 30061
|
Forum: General CCS C Discussion Posted: Thu Jan 09, 2014 4:09 pm Subject: IR decoder with CCP using PIC16F877 accuracy |
I am facing a problem in calculating the real exact value of a Sony Infrared signal from an IR receiver.
The SIRC is known to have 600 us or 1200 regarding the start bit. Well I am using the CCP1 a ... |
Topic: Measuring PWM signal width |
Ahmed Adel Hosni
Replies: 3
Views: 8258
|
Forum: General CCS C Discussion Posted: Wed Sep 26, 2012 5:31 pm Subject: Measuring PWM signal width |
Yes actually it is and I am sorry that I didn't mention that but I guess I wanted a step by step help not just to take a code and run it
But I understand that you prefer not waste others' time i ... |
Topic: Measuring PWM signal width |
Ahmed Adel Hosni
Replies: 3
Views: 8258
|
Forum: General CCS C Discussion Posted: Wed Sep 26, 2012 2:44 pm Subject: Measuring PWM signal width |
I will illustrate the code
I am trying to just measure randomly 35 pulses for example a save them to an array pulses[35] which saves the number of counts by the timer, and overflowarray[35] carri ... |
Topic: Measuring PWM signal width |
Ahmed Adel Hosni
Replies: 3
Views: 8258
|
Forum: General CCS C Discussion Posted: Wed Sep 26, 2012 2:37 pm Subject: Measuring PWM signal width |
First of all I have different problems writing a code to measure the width of a PWM signal so I will go step by step in each problem.
The code below has a problem that it will miss one pulse but le ... |
|