Author |
Message |
Topic: What is PLL? |
ressas
Replies: 5
Views: 19266
|
Forum: General CCS C Discussion Posted: Sat Nov 28, 2020 5:39 am Subject: What is PLL? |
Thank you Ttelmah.
I would like to ask another question specific to 18f46k22.
On the first page of the datasheet, the expression "- 64 MHz performance
available using PLL – no external comp ... |
Topic: What is PLL? |
ressas
Replies: 5
Views: 19266
|
Forum: General CCS C Discussion Posted: Sat Nov 28, 2020 3:36 am Subject: What is PLL? |
What is PLL?  |
Topic: (NOT) Saving data from Bluetooth to array |
ressas
Replies: 9
Views: 25906
|
Forum: General CCS C Discussion Posted: Mon Nov 16, 2020 9:08 am Subject: (NOT) Saving data from Bluetooth to array |
Thank you Ttelmah
I care about your comments. These small fixes get me closer to writing professional code. Please tell me if there is any other error. Otherwise I'll keep making small mistakes forev ... |
Topic: (NOT) Saving data from Bluetooth to array |
ressas
Replies: 9
Views: 25906
|
Forum: General CCS C Discussion Posted: Mon Nov 16, 2020 8:47 am Subject: (NOT) Saving data from Bluetooth to array |
Thanks Temtronic. Actually, I already have a working code. You can review that code below. Since I don't want it to be too long, I try to shorten the following code with various algorithms. And yes I ... |
Topic: (NOT) Saving data from Bluetooth to array |
ressas
Replies: 9
Views: 25906
|
Forum: General CCS C Discussion Posted: Mon Nov 16, 2020 3:54 am Subject: (NOT) Saving data from Bluetooth to array |
First fix the ISR issues, and then give some space to the array you want to
store the values in,
You need something like:
............
I tried the suggestion. But it didn't work. Do you have a ... |
Topic: (NOT) Saving data from Bluetooth to array |
ressas
Replies: 9
Views: 25906
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2020 9:06 am Subject: (NOT) Saving data from Bluetooth to array |
Thank you for your answer.
Actually, I knew my problem would not be solved since I did not share all of my code. I am not sharing it here because it is too long. But I have to share.
Before reviewin ... |
Topic: (NOT) Saving data from Bluetooth to array |
ressas
Replies: 9
Views: 25906
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2020 7:49 am Subject: (NOT) Saving data from Bluetooth to array |
18F46k22
Hello.
I am trying to save the data coming via Bluetooth into an array. However, I later realized that there was a problem reading the values from the array. Tell me like this:
unsi ... |
Topic: Is "else" always necessary? |
ressas
Replies: 12
Views: 31708
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2020 10:29 am Subject: Is "else" always necessary? |
usually yes...
consider your code example
...
if(input(pin_b0))
output_high(pin_D0);
...
the first time this test is made, and if true, the pin goes high
it will stay high forever unless y ... |
Topic: Is "else" always necessary? |
ressas
Replies: 12
Views: 31708
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2020 6:34 am Subject: Is "else" always necessary? |
Hi.
When I use if in the program, do I have to use else after it?
While checking any button or condition checking
if(input(pin_b0))
output_high(pin_D0);
//else ????
i ... |
Topic: PWM1 AND PWM2 with 18f46k22[SOLVED] |
ressas
Replies: 25
Views: 62705
|
Forum: General CCS C Discussion Posted: Thu Oct 08, 2020 6:57 am Subject: PWM1 AND PWM2 with 18f46k22[SOLVED] |
Two separate things here.
The first is down to the mode you run the PWM.
In standard mode (CCP_PWM), it only generates the single signal on PWMx.
In it's enhanced mode, you have four PWM outputs ... |
Topic: Half bridge with 18f46k22 direction problem[SOLVED] |
ressas
Replies: 8
Views: 24302
|
Forum: General CCS C Discussion Posted: Wed Oct 07, 2020 11:12 pm Subject: Half bridge with 18f46k22 direction problem[SOLVED] |
Thank you Ttelmah.
I am understand.
By the way I found a nice open source H Bridge and tried it.
It does not heat at all (at 2 Amps). If you use it with a fan, it says it works up to 40 amps.
http ... |
Topic: Half bridge with 18f46k22 direction problem[SOLVED] |
ressas
Replies: 8
Views: 24302
|
Forum: General CCS C Discussion Posted: Wed Oct 07, 2020 4:35 am Subject: Half bridge with 18f46k22 direction problem[SOLVED] |
I have no split PSU.
And the second circuit I'm talking about.
Now can't I control that circuit in both directions using ccp1 (pin_c2) and pin_D2?
With a single PSU. |
Topic: Half bridge with 18f46k22 direction problem[SOLVED] |
ressas
Replies: 8
Views: 24302
|
Forum: General CCS C Discussion Posted: Wed Oct 07, 2020 1:26 am Subject: Half bridge with 18f46k22 direction problem[SOLVED] |
18F46k22 page 187 |
Topic: Half bridge with 18f46k22 direction problem[SOLVED] |
ressas
Replies: 8
Views: 24302
|
Forum: General CCS C Discussion Posted: Tue Oct 06, 2020 10:51 pm Subject: Half bridge with 18f46k22 direction problem[SOLVED] |
I'm sorry to hear that.
Doesn't the circuit on page 187 mean that I can actually change direction? |
Topic: Half bridge with 18f46k22 direction problem[SOLVED] |
ressas
Replies: 8
Views: 24302
|
Forum: General CCS C Discussion Posted: Tue Oct 06, 2020 7:25 am Subject: Half bridge with 18f46k22 direction problem[SOLVED] |
Hi
I took a quick look at the topics related to Half bridge on the forum.
But I could not find the solution. My code is as follows.
#include <18f46k22.h>
#INCLUDE <stdlib.h>
#fuses ... |
|