Author |
Message |
Topic: ccs c compiler (PCH) with MPLAB X and Linux - issue |
JackB
Replies: 2
Views: 12271
|
Forum: General CCS C Discussion Posted: Tue Apr 19, 2016 10:04 am Subject: ccs c compiler (PCH) with MPLAB X and Linux - issue |
As you see the size are too much different, which is not the result of different time stamps.
Also, I started to discover this after the download to the board and noticing odd behavior.
The behavior ... |
Topic: ccs c compiler (PCH) with MPLAB X and Linux - issue |
JackB
Replies: 2
Views: 12271
|
Forum: General CCS C Discussion Posted: Tue Apr 19, 2016 9:37 am Subject: ccs c compiler (PCH) with MPLAB X and Linux - issue |
Hi,
I use PCH Compiler Version 5.057 (PCH) with MPLAB X 3.26 and Linux Mint 17.3.
When I compile (Clean and Build project button) the same source again and again, I get different sizes hex files:
... |
Topic: SOLVED: Different serial streams - compiler warning |
JackB
Replies: 13
Views: 22181
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2016 6:14 am Subject: SOLVED: Different serial streams - compiler warning |
For the moment, I accept the compiler Version 5.055 on Linux can't do without these warnings, I think I tried everything.
But it works just fine.
Thank you again for your help! |
Topic: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
JackB
Replies: 6
Views: 17380
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2016 6:03 am Subject: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
Hi asmboy,
I understand higher PWM frequencies is often what you want or need.
However this is connected to a LT3791 Power LED driver.
This chip has it's own PWM (at a high frequency) to regulate ... |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Thu Mar 24, 2016 5:44 am Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Hi, I changed the pull-up resistors from 4k7 to 1k5.
It did not help, but I still think that is better.
This hangs i2c_write:
#use i2c(MASTER, FAST, I2C1)
And this works, it might be software ... |
Topic: SOLVED: Different serial streams - compiler warning |
JackB
Replies: 13
Views: 22181
|
Forum: General CCS C Discussion Posted: Tue Mar 22, 2016 6:29 am Subject: SOLVED: Different serial streams - compiler warning |
Hi John,
my compiler version is CCS PCH C Compiler, Version 5.055. I'm using Linux.
Learning from the other people here, I don't think that changes the PIC18F hardware capabilities, though.
I men ... |
Topic: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
JackB
Replies: 6
Views: 17380
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 4:19 pm Subject: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
It works, but I get 1.22kHz at lowest.
I would like to get a pwm frequency of around 100-200Hz. |
Topic: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
JackB
Replies: 6
Views: 17380
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 3:44 pm Subject: SOLVED: pwm frequency too high (1.22Khz) on PIC18F at 20MHz |
Hi,
I use ECCP1 to generate a PWM signal on a PIC18F67K90 at 20MHz.
Ideal, I would like a pwm frequency of about 100Hz.
However I get 1.22kHz at lowest.
However, the pwm_set_frequency function doe ... |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 3:34 pm Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Hi Ttelmah,
Thank you very much!
What you explain to me, makes much sense.
The total physical length of the tracks on the PCB may be 10cm at maximum.
Regards,
Jack. |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 12:51 pm Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Hi,
yes, my compiler version is indeed still the same.
I use 5k pull-up resistors.
I use the LM75B, MCP7940N, MCP4726, all support 400KHz speed.
One of those hangs with i2c_write:
#use i2c(MA ... |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 7:55 am Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
I use FORCE_HW, it still gives a warning for the i2c_speed function, but it compiles.
However, the software starts to hang after the first i2c_write(MCP4726_ADDRESS); function. |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 7:16 am Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Thanks,
now I use:
#use i2c(MASTER, FAST, SCL=PIN_C3, SDA=PIN_C4)
It still doesn't know this function
i2c_speed(400000);
But I guess, I addressed that with "FAST"? |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 6:07 am Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Thanks for the quick response!
I also have: Option invalid - Bad Option: #use i2c
In the lst file I found:
CCS PCH C Compiler, Version 5.055, 29447
I'm using it with MPLAB X on a Linux Mint laptop ... |
Topic: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
JackB
Replies: 12
Views: 25071
|
Forum: General CCS C Discussion Posted: Mon Mar 21, 2016 5:32 am Subject: SOLVED: i2c_speed - unable to resolve identifier i2c_speed |
Hi,
I found i2c_speed in the ccs c manual, but the compiler gives "unable to resolve identifier i2c_speed".
Note the other functions i2c_start, i2c_write, i2c_read, and i2c_stop work fine ... |
Topic: SOLVED: Timer interrupt slow |
JackB
Replies: 2
Views: 6405
|
Forum: General CCS C Discussion Posted: Sun Mar 20, 2016 5:04 am Subject: SOLVED: Timer interrupt slow |
Hi Jeremiah,
thank you very much! That fixed the problem!
I'm still learning with ccs c.
It works as expected, and I have added your comments in the code for future reference.
This is how I unde ... |
|