Search found 18 matches
- Fri Dec 20, 2024 8:04 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Hi Martin! With my code the results look disgusting. 650 "ticks" TMR0 is for Proteus. It works slowly compared to real hardware. 6500 for hardware. I assumed that TMR1H = 236; TMR1L = 120; will make a tick of 1 ms Timer 1 when 20 MHz quartz. This is what the PIC calculator gave. Thanks for...
- Thu Dec 19, 2024 3:20 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Hi Martin! It looks like I managed to measure the pulse length. But I'm not sure if I did it right. Please take a look.
- Sat Dec 14, 2024 4:56 am
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Hi Martin! I use a generator with fixed frequencies of 400, 1000, 4000 Hz and with variable PWM. Depending on the frequency, the values on the display change. For example, 400 Hz - 12504, 1000 Hz - 49933, 4000 Hz - 12293 with a clock frequency of 16F913 - 20 MHz. I have not yet dived so deep and...
- Thu Dec 12, 2024 12:58 am
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Hi Martin! I have good news. The FK8 compiler agreed to cooperate and I launched your project with my 16F913 chip. In the macro, I changed the local variable to global. In the global settings, I have a 20MHz quartz, so what the display shows is a mystery. It is important that the capture works. This...
- Tue Dec 10, 2024 6:25 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Thanks for another lesson. I didn't know you could play with variables like that. I clearly have a problem with the compiler. FC8 is cracked. Haven't bought FC10 yet. Ordered 16f18877. So pause for now. The capture worked great on 16F887 16-bit Capture, max. resolution 12.5 ns CCP1, CCP2 input. In t...
- Tue Dec 10, 2024 5:02 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Hi ! FCL_T = ((unsigned int)CCPR1H << 8) | CCPR1L; // Combine high and low bytes What's happened FCL_T If T is a variable then FСV_T but I don’t see T as a variable, and it’s not clear at all .t pulse = .t My Previous experience FС5 is a PWM pulse length meter. The frequency is somewhere around 5 kH...
- Tue Dec 10, 2024 11:02 am
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Thank you Martin. Maybe this will help me. Have a nice day.
- Mon Dec 09, 2024 6:26 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Few of those who know will want to waste their time on me. I'll try. Thank you
- Mon Dec 09, 2024 5:17 pm
- Forum: Feature Requests
- Topic: PWM + Сapture + Сomparison
- Replies: 22
- Views: 2917
Re: PWM + Сapture + Сomparison
Huge respect to the team. This is really a huge job. But how to get out of this situation? I have several examples in C applicable to the FC5 version. They worked there. I want to switch to a fresh platform because my Windows 7 + FC 5 laptop died. For starters, I am ready to buy the PIC8 package. Bu...
- Mon Dec 09, 2024 2:50 pm
- Forum: Bug Reports
- Topic: Inserts in C do not work.
- Replies: 15
- Views: 1381
Re: Inserts in C do not work.
OK. Thank you Martin