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 62 matches
CCS Forum Index
Author Message
  Topic: I2C slave sends 0x5555, master receives 0xab55
elcrcp

Replies: 18
Views: 46208

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2020 3:43 pm   Subject: I2C slave sends 0x5555, master receives 0xab55
As for example ; i2c_write(DS1338_READ_ADD);
ds1338_time_array[0]=BCDtoINT(i2c_read(1));
ds1338_time_array[1]=BCDtoINT(i2c_read(1));
...
  Topic: int32 to int array
elcrcp

Replies: 9
Views: 24846

PostForum: General CCS C Discussion   Posted: Wed Sep 09, 2020 4:39 pm   Subject: int32 to int array
You can use make8() function, something like this would help you
for(int8 cnt=0;cnt<4;cnt++)
{
numberArray[cnt]=make8(number,cnt);
}
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Wed Sep 09, 2020 9:52 am   Subject: Panic Button Application
I just tested this on a debug board, and it runs perfectly.


>> if (interrupt_active(INT_EXT)) <<
>> clear_interrupt(INT_EXT); <<



So ...
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Wed Sep 09, 2020 7:30 am   Subject: Panic Button Application
How long is your main loop time?
If your total main loop time is 100ms for example, and the process being controlled is not super fast, you can set a flag and then call a function on the main code wi ...
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Wed Sep 09, 2020 4:51 am   Subject: Panic Button Application
Unfortunately still not working, I tried many ways I could think of like do-while loop, while looop, if-goto loop and for loop. I checked interrupt flag as loop breaker in them but none of them are wo ...
  Topic: My Story Is Just Beginning
elcrcp

Replies: 29
Views: 67367

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2020 2:02 pm   Subject: My Story Is Just Beginning
Hello and welcome,
Quick answer; MCU programming is all about to know the part u are using. You should know what are you programming and what is happening inside the chip with the lines you are writ ...
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2020 1:30 pm   Subject: Panic Button Application
Well, but I thought CLEAR_FIRST option does that trick by clearing interrupt flag before entering the function. So I thought interrupt could be fired again since flag is cleared. And so, if button is ...
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2020 3:06 am   Subject: Panic Button Application
Yes you surely right, I already have installed debounce parts beforehand.
I tried the code I mentioned but it is not working, it seems allergic to while loop in an interrupt routine. Code stops worki ...
  Topic: Panic Button Application
elcrcp

Replies: 13
Views: 29827

PostForum: General CCS C Discussion   Posted: Fri Sep 04, 2020 9:51 am   Subject: Panic Button Application
Hey guys, I thougt of a panic button for a card I built. I want to stop the program there whenever button is pressed and continue on second press. What is most efficient way to implement this? I'm thi ...
  Topic: Interrupt handler function.
elcrcp

Replies: 3
Views: 14957

PostForum: General CCS C Discussion   Posted: Sat Aug 22, 2020 4:54 pm   Subject: Interrupt handler function.
As you can see from the quote, there are 2 steps of interrupt handling in CCS, first is defining handler routine.
In this example an external interrupt source is defined by "#INT_EXT" line ...
  Topic: Need Battery Monitoring IC Advice
elcrcp

Replies: 6
Views: 15406

PostForum: General CCS C Discussion   Posted: Sat Jun 13, 2020 9:27 am   Subject: Need Battery Monitoring IC Advice
The Lithium rechargeable
batteries don't like to be charged below about 4 to 5C....
This is important, I did some research after reading this and saw that li-ion, li-po, ni-mh batteries cannot be ch ...
  Topic: Need Battery Monitoring IC Advice
elcrcp

Replies: 6
Views: 15406

PostForum: General CCS C Discussion   Posted: Thu Jun 11, 2020 2:38 pm   Subject: Need Battery Monitoring IC Advice
Thanks for advice, I knew about coulomb counters but haven't used any before so I wanted to hear the voice of experience =) . I took a look and STC3100 seems ok for me, I'll buy and try one.

Thanks ...
  Topic: Need Battery Monitoring IC Advice
elcrcp

Replies: 6
Views: 15406

PostForum: General CCS C Discussion   Posted: Thu Jun 11, 2020 8:23 am   Subject: Need Battery Monitoring IC Advice
Hello, I may in need of a 1-S li-ion battery monitoring IC (Charger IC might have this function but not clear yet). Circuit will work on battery so I would like to get battery level as digital data, ...
  Topic: Half H-Bridge Design
elcrcp

Replies: 6
Views: 19604

PostForum: General CCS C Discussion   Posted: Sun Apr 26, 2020 8:19 am   Subject: Half H-Bridge Design
It depends on purpose... If you are not dynamically controlling the motors, not applying pwm, not changing course in miliseconds then relays are the right choice. But if you have a very dynamic motor ...
  Topic: INT_RDA2 wont work
elcrcp

Replies: 11
Views: 20819

PostForum: General CCS C Discussion   Posted: Fri Mar 27, 2020 11:41 am   Subject: INT_RDA2 wont work
So actually the interrupt was being called, but could never exit... Sad

INT_RDA, and RDA2, both have the feature that they stay 'set' if data
isn't read. Explains what you were seeing...

Actual ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group