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 159 matches
CCS Forum Index
Author Message
  Topic: FT245 speed problems -> assembler?!
SET

Replies: 7
Views: 8619

PostForum: General CCS C Discussion   Posted: Wed Jun 02, 2010 8:21 am   Subject: FT245 speed problems -> assembler?!
In summary, you are reading a byte where the bits are split across two ports?

I would do something like:

Read 1st Port
Mask and shift
Read 2nd Port
Mask and shift
'or' them together

If ne ...
  Topic: using #FILL_ROM to add safety backup on PIC24
SET

Replies: 12
Views: 13892

PostForum: General CCS C Discussion   Posted: Fri May 28, 2010 9:01 am   Subject: using #FILL_ROM to add safety backup on PIC24
I think the recommendation is for a scenario where 'out of control' code might actually execute the watchdog kick, and therefore will never recover. If 'Goto here' instructions were executed then it's ...
  Topic: Switch statement going to wrong case...
SET

Replies: 29
Views: 24400

PostForum: General CCS C Discussion   Posted: Fri May 28, 2010 8:55 am   Subject: Switch statement going to wrong case...
I used to get problems like this, although I think it was with pretty old versions of the compiler - not seen any issues for years now. Would be good to know if this is still 'lurking' in newer versio ...
  Topic: problem with A/D
SET

Replies: 48
Views: 90392

PostForum: General CCS C Discussion   Posted: Thu Aug 27, 2009 9:56 am   Subject: problem with A/D
See:

http://en.wikipedia.org/wiki/Printf

So '3.2' means *at least* 3 digits before the decimal point (adding spaces if reqd) and *at least* 2 digits after the decimal point.
  Topic: Use of RTC in PIC24 using PCD compiler
SET

Replies: 27
Views: 34425

PostForum: General CCS C Discussion   Posted: Thu Aug 20, 2009 7:26 am   Subject: Use of RTC in PIC24 using PCD compiler
FvM, thank you for the clarification re the CCS implementation - as good as a stack (except when you want recursion!)
  Topic: shift right and left
SET

Replies: 16
Views: 40962

PostForum: General CCS C Discussion   Posted: Wed Aug 19, 2009 6:24 am   Subject: shift right and left
thanks a lot. it helped me so much.

but if i need to rotate only the 4 low bits ?

lets say i have : 00001010
i need to rotate left only the 4 right bits.. so i wanna get: 00000101
how i do tha ...
  Topic: Use of RTC in PIC24 using PCD compiler
SET

Replies: 27
Views: 34425

PostForum: General CCS C Discussion   Posted: Wed Aug 19, 2009 6:16 am   Subject: Use of RTC in PIC24 using PCD compiler
I think you *can* return a struct in C - since a struct is a known length at compile time, stack space will be used to hold the struct members. It might not be too efficient of course since the return ...
  Topic: MAX519 and i2c not working
SET

Replies: 16
Views: 16990

PostForum: General CCS C Discussion   Posted: Thu Sep 11, 2008 11:42 am   Subject: MAX519 and i2c not working
#define MAX519_DATA_COMMAND_DAC0 0x00 //Set channel 0 on dual dac
#define MAX519_DATA_COMMAND_DAC1 0x02 //Set channel 1 on dual dac

DAC1 should be 0x01
I think your problem is that you need ' ...
  Topic: RTOS DsPIC30F6014A at 120Mhz
SET

Replies: 5
Views: 6925

PostForum: General CCS C Discussion   Posted: Wed Sep 10, 2008 12:14 pm   Subject: RTOS DsPIC30F6014A at 120Mhz
120MHz PLL clock will give a 30MIPS instruction clock - I think this exceeds the devices rating, datasheet indicates 20MHz as a maximum. So if your using PLL modes stick to 80MHz
  Topic: External adc 1110 with pic18f4550
SET

Replies: 19
Views: 20184

PostForum: General CCS C Discussion   Posted: Thu Sep 04, 2008 3:34 am   Subject: External adc 1110 with pic18f4550
Its not just a coding issue, its understanding what the devices actually do - thats why it jumped out at me, you were sending the ADC setup/convert command and then (a few tens of nanoseconds later) e ...
  Topic: External adc 1110 with pic18f4550
SET

Replies: 19
Views: 20184

PostForum: General CCS C Discussion   Posted: Tue Sep 02, 2008 6:59 am   Subject: External adc 1110 with pic18f4550

spi_write(controlo);
//delay_ms(50); <<-- you need some delay here to let ADC convert!
RB2=spi_read(0); /*guarda os 1ºs 8 bits*/
delay_ms(25);
RB3=spi_ ...
  Topic: External adc 1110 with pic18f4550
SET

Replies: 19
Views: 20184

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 1:08 pm   Subject: External adc 1110 with pic18f4550
setup_spi(SPI_MASTER|SPI_H_TO_L|SPI_XMIT_L_TO_H|SPI_CLK_DIV_4);

You only need to do this once, not every time you read the ADC. Wont do any harm though.

return (MSB||RB3);

Th ...
  Topic: Filling Arrays??~??
SET

Replies: 5
Views: 5793

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 10:43 am   Subject: Filling Arrays??~??
What i need to accomplish is after every 250us int from tmr0 i must jump from case WAIT into SAMPLE then after SAMPLE store the value in the array and increment n when n == 32 i must print the array. ...
  Topic: Design Help
SET

Replies: 13
Views: 10969

PostForum: General CCS C Discussion   Posted: Wed Aug 20, 2008 11:57 am   Subject: Design Help
As treitmey says, some form of powerline sounds ideal. You only need communication from trailer to tractor. Tractor couples an AC signal onto the reverse wire which the trailer picks up and rectifies ...
  Topic: keypad to lcd4x20
SET

Replies: 7
Views: 7067

PostForum: General CCS C Discussion   Posted: Wed Jun 25, 2008 1:29 pm   Subject: keypad to lcd4x20
printf(lcd_putc("%2luC"),TEMP_IN);
lcd_gotoxy(14,1);
printf(lcd_putc("%2luC"),TEMP_OUT);

Dont you mean -

printf(lcd_putc, &q ...
 
Page 1 of 11 Goto page 1, 2, 3 ... 9, 10, 11  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group