CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 19 matches
CCS Forum Index
Author Message
  Topic: RTC in 18F67J94 with VBat loss the time
karlosguay

Replies: 13
Views: 42444

PostForum: General CCS C Discussion   Posted: Fri Jul 29, 2016 5:50 am   Subject: RTC in 18F67J94 with VBat loss the time
Hi, I'm sorry but I have not seen before post.

I can see if the restart is from VBat with bit MCU_VBAT in RCON3.0

Then i use this code:

rtc_time_t write_clock, read_clock;
setup_rtc&# ...
  Topic: RTC in 18F67J94 with VBat loss the time
karlosguay

Replies: 13
Views: 42444

PostForum: General CCS C Discussion   Posted: Wed Apr 27, 2016 4:54 am   Subject: RTC in 18F67J94 with VBat loss the time
Thanks Ttelmah:

You are right. The first execution i set the clock, but no subsequent executions.

Only first execution:

set_clock(write_clock);

rtc_write(&write_clock ...
  Topic: RTC in 18F67J94 with VBat loss the time
karlosguay

Replies: 13
Views: 42444

PostForum: General CCS C Discussion   Posted: Wed Apr 27, 2016 3:08 am   Subject: RTC in 18F67J94 with VBat loss the time
Thank to all.

The RTC is running fine when external supply is on. But when i loss external supply, the VBat battery does not seem to fulfill its function and i loss the time.

The battery is conn ...
  Topic: RTC in 18F67J94 with VBat loss the time
karlosguay

Replies: 13
Views: 42444

PostForum: General CCS C Discussion   Posted: Mon Apr 25, 2016 6:34 am   Subject: RTC in 18F67J94 with VBat loss the time
Hi, I have a circuit with 18F67J94. Run with internal oscillator (8M) and secondary oscillator of 32768K.
I need the RTC run with a CR2032 battery in VBat when the external Vdd is lost.

My code i ...
  Topic: PPS in 18F67J94 don't run
karlosguay

Replies: 8
Views: 16027

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2016 7:15 am   Subject: PPS in 18F67J94 don't run
Thanks gaugeguy and Ttelmah, with your notes now is running.
  Topic: PPS in 18F67J94 don't run
karlosguay

Replies: 8
Views: 16027

PostForum: General CCS C Discussion   Posted: Tue Mar 22, 2016 3:02 am   Subject: PPS in 18F67J94 don't run
Thanks Ttelmah:

Now my code is



#pin_select IOC0=PIN_B0
#pin_select IOC1=PIN_B1
#pin_select IOC2=PIN_B2
#pin_select IOC3=PIN_B3
#pin_select IOC4=PIN_B4
#pin_select IOC5=PIN_B5

i ...
  Topic: PPS in 18F67J94 don't run
karlosguay

Replies: 8
Views: 16027

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2016 9:24 am   Subject: PPS in 18F67J94 don't run
Sorry, you are right.
The code only is a example



#pin_select IOC0=PIN_B0
#pin_select IOC1=PIN_B1
#pin_select IOC2=PIN_B2
#pin_select IOC3=PIN_B3
#pin_select IOC4=PIN_B4
#pin_select I ...
  Topic: PPS in 18F67J94 don't run
karlosguay

Replies: 8
Views: 16027

PostForum: General CCS C Discussion   Posted: Mon Mar 21, 2016 7:57 am   Subject: PPS in 18F67J94 don't run
Hi, i have a 18F67J94 and i need to use Interrupt On Change with pins RB0 to RB5. These pins are PPS and then i use this code:


#pin_select IOC0=PIN_B0
#pin_select IOC1=PIN_B1
#pin_select IOC2=P ...
  Topic: Transform string with Character to string with Hex
karlosguay

Replies: 1
Views: 5304

PostForum: General CCS C Discussion   Posted: Wed Dec 17, 2014 6:58 am   Subject: Transform string with Character to string with Hex
Hi, i have a string with ascii characters:

MyString="HELLO"

and i need transform this string in another string with Hex values without 0x.

Result must be

MyHexString="48454C ...
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 4:15 am   Subject: Problem to convert array of bytes to array of bits
Using "union" runs ok.
then the code is better.

union {
int telemando1[19];
int1 telemandobits[152];
} val;

// for  ...
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 3:47 am   Subject: Problem to convert array of bytes to array of bits
Many thanks.

Never used "union", i go to use it.
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 3:05 am   Subject: Problem to convert array of bytes to array of bits
Now the code is

for (i=0;i<=151;i++)
{
telemandobits[i]=0;
}

telemando1[18]=8;
telemando1[17]=7;
...
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 2:53 am   Subject: Problem to convert array of bytes to array of bits
OK Alan, you are a good teacher. Smile

regards
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 2:33 am   Subject: Problem to convert array of bytes to array of bits
In English better

I need pass bytes in array "int telemando1 int telemando1[19];
int1 telemandobits[152];
int i,z;

for (i=0;i==151;i++) //Aqui inici ...
  Topic: Problem to convert array of bytes to array of bits
karlosguay

Replies: 10
Views: 11300

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 2:16 am   Subject: Problem to convert array of bytes to array of bits
Sorry Alan, I donĀ“t understand
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group