Author |
Message |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Thu Jun 02, 2016 8:31 am Subject: Problem with time.c |
I think your problem may be due to a misinterpretation of how months
are counted in time.c and time.h. The months start with January = 0.
So May is month 4 (not 5). See this reference:
http://pu ... |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Wed Jun 01, 2016 8:29 pm Subject: Problem with time.c |
you saw the response? |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Wed Jun 01, 2016 8:44 am Subject: Problem with time.c |
this confuses me...
. yes, it doesn't take much these days !
tmUTC.tm_year = (2000 + _ano)-1900;
Is there a real purpose to add 200 then subtract 1900 ? Why not just add 100 ??
Jay
It ... |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Wed Jun 01, 2016 8:41 am Subject: Problem with time.c |
The problem though is a misunderstanding of pointers....
tmUTC1=localtime(×tamp);
Wrong.....
localtime does not return a variable of type struct tm.
It returns a _pointer_ to such ... |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Wed Jun 01, 2016 8:38 am Subject: Problem with time.c |
Your post wasn't very helpful. You gave us this code where you are
filling in the tmUTC structure with values. Then we are supposed to
crank it through the time.c functions and see the result.
... |
Topic: Problem with time.c |
lucasromeiro
Replies: 12
Views: 24857
|
Forum: General CCS C Discussion Posted: Tue May 31, 2016 6:44 pm Subject: Problem with time.c |
Hello guys.
I have a problem with the library time.c
I convert the time in seconds and then convert again in date.
but this padou conversion function yesterday!
when he entered the May 30 began to ... |
Topic: Converting seconds to date |
lucasromeiro
Replies: 9
Views: 31721
|
Forum: General CCS C Discussion Posted: Tue Apr 26, 2016 10:29 am Subject: Converting seconds to date |
there is no other way to do what I want? |
Topic: Converting seconds to date |
lucasromeiro
Replies: 9
Views: 31721
|
Forum: General CCS C Discussion Posted: Tue Apr 26, 2016 10:28 am Subject: Converting seconds to date |
It compiles just fine for me with both includes under 5.056
Please give your version and show your code from the start to where time.c is included...
#include "18LF2685.h"
#device ADC = ... |
Topic: Converting seconds to date |
lucasromeiro
Replies: 9
Views: 31721
|
Forum: General CCS C Discussion Posted: Tue Apr 26, 2016 10:12 am Subject: Converting seconds to date |
Did you include time.h before time.c?
It would help if you read the header in time.c
/// Contains common time routines that can be used by several
timebases, and the runtime code needed for time.h ... |
Topic: Converting seconds to date |
lucasromeiro
Replies: 9
Views: 31721
|
Forum: General CCS C Discussion Posted: Tue Apr 26, 2016 7:33 am Subject: Converting seconds to date |
Hello. I need to convert seconds date!
UTC to local time
day
month
year
hour
minute
second
Can someone help me?
I tried to use the time.c library, but could not. because of the error.
Can so ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
lucasromeiro
Replies: 286
Views: 1351566
|
Forum: Code Library Posted: Thu Apr 14, 2016 8:21 am Subject: nRF24L01+ full driver by Eduardo Guilherme Brandt |
Eduardo,
Can help me?
My whats: 71 98605-0664 |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
lucasromeiro
Replies: 286
Views: 1351566
|
Forum: Code Library Posted: Tue Apr 12, 2016 10:58 pm Subject: ajuda |
Hallo Lucas!
Thats ok for PIC16F628A. I've already used this driver in this uC. Just include files as the example at the beginning of this topic (I think this example is located at page 2 of this t ... |
Topic: nRF24L01+ full driver by Eduardo Guilherme Brandt |
lucasromeiro
Replies: 286
Views: 1351566
|
Forum: Code Library Posted: Mon Apr 11, 2016 10:32 pm Subject: duvida! |
Hello Eduardo, okay?
Brazuca friend!
Boy, I looked at your code and is very large.
I lost it.
I have a pic 16F628A and need to communicate with a nRF24L01.
The problem is that this PIC does not ... |
Topic: bootloader configs |
lucasromeiro
Replies: 2
Views: 6861
|
Forum: General CCS C Discussion Posted: Fri Dec 04, 2015 3:44 pm Subject: bootloader configs |
Hello,
I modified a bootloader to read the EEPROM of code to update GPRS.
It worked.
But I need to know details of how to configure the bootloader and it will run for main_code not happen any bug ... |
Topic: Record bootloader with Hyperterminal. |
lucasromeiro
Replies: 28
Views: 41417
|
Forum: General CCS C Discussion Posted: Mon Nov 30, 2015 5:31 pm Subject: Record bootloader with Hyperterminal. |
x
Hello Friend,
can you help me?
I read your text.
I had some doubts, posted above. |
|