Author |
Message |
Topic: Problem compile multiple c files |
id31
Replies: 2
Views: 10054
|
Forum: General CCS C Discussion Posted: Thu May 30, 2019 5:35 am Subject: Problem compile multiple c files |
Hi
I’m using ccs 5.008 vet.
I compile 1 c file with main function and multiple h files (I include them) and everything is great!
When I’m adding c file to the source section (even if i empty ... |
Topic: Specific code |
id31
Replies: 3
Views: 10249
|
Forum: General CCS C Discussion Posted: Sun Apr 02, 2017 2:27 am Subject: Specific code |
Hi all,
Is there a document that show the full code of
Spi write
Spi read
Write eeprom
Read eeprom
? |
Topic: General pll question |
id31
Replies: 2
Views: 7223
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2017 2:47 am Subject: General pll question |
Thank you! |
Topic: General pll question |
id31
Replies: 2
Views: 7223
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2017 1:53 am Subject: General pll question |
Hi all,
I used pic18lf46k22 at internal clock of 16mhz.
i have a specific code block that took long time.. so I used the setup oscillator to 64 MHz and all work well . After the block I return to 16 ... |
Topic: Problem to get strings with getc |
id31
Replies: 11
Views: 24474
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 8:27 am Subject: Problem to get strings with getc |
OK!
it solved.
first of all - thank you for the quick replies!
YOU WERE RIGHT ALL THE TIME - the problem is time.
it was my fault not to paste the exact code..
the exact code is
char a ... |
Topic: Problem to get strings with getc |
id31
Replies: 11
Views: 24474
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 7:44 am Subject: Problem to get strings with getc |
I used fgetc() - didn't change the results..
I enable "DISABLE_INTS" - still the same..
:( |
Topic: Problem to get strings with getc |
id31
Replies: 11
Views: 24474
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 6:52 am Subject: Problem to get strings with getc |
The other UARTs is for other communication serials (I have 3 "ports").
I tried "SAMPLE EARLY" but it didn't help.
still I got the start of the string wrong and after correct.
... |
Topic: Problem to get strings with getc |
id31
Replies: 11
Views: 24474
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 6:01 am Subject: Problem to get strings with getc |
Hi, thank you for the quick reply.
As i wrote before - the uart is not HW so i use kbhit() instead of int_rda.
when i configured the uart i added errors. |
Topic: Problem to get strings with getc |
id31
Replies: 11
Views: 24474
|
Forum: General CCS C Discussion Posted: Thu Feb 02, 2017 5:42 am Subject: Problem to get strings with getc |
Hi all,
I'm using PIC18f8722.
I try to get a string in UART. The Uart pins is not the hw pins (PINS D2, D7).
My method is to getc(STREAM) every char to an array of chars. the program call getc on ... |
Topic: different UART by function's argument |
id31
Replies: 9
Views: 17380
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2017 3:42 am Subject: different UART by function's argument |
OK
thank you! very helpful! |
Topic: access to a bit |
id31
Replies: 3
Views: 9290
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2017 3:02 am Subject: access to a bit |
OK, got it! thank you |
Topic: different UART by function's argument |
id31
Replies: 9
Views: 17380
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2017 3:00 am Subject: different UART by function's argument |
Hi,
Question please:
I have 2 UART channel at pic18.
I declared 2 differnt RS232:
#use rs232(baud=9600, BITS=8, XMIT=PIN1, RCV=PIN2, STREAM=CH1)
#use rs232(baud=9600, BITS=8, XMIT ... |
Topic: access to a bit |
id31
Replies: 3
Views: 9290
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2017 2:08 am Subject: access to a bit |
Hi,
I have a question please,
I declared:
#bit TRMT=TX1STA.1
if I want to create another variable - NEW_VAR that I can access to TRMT value so:
if (TRMT)
and
if (NEW_VAR)
will be the same. ... |
Topic: just first adc sample is not good |
id31
Replies: 3
Views: 6199
|
Forum: General CCS C Discussion Posted: Wed Jan 21, 2015 1:37 am Subject: just first adc sample is not good |
hello all
I will be happy if someone could answer my question, sorry about my english by the way
I am using pic16 and doing adc sample. The problem is that just the first sample is 0..... ... |
Topic: baud rate i2c software |
id31
Replies: 3
Views: 6945
|
Forum: General CCS C Discussion Posted: Fri Dec 19, 2014 9:24 am Subject: baud rate i2c software |
thank you all! |
|