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 68 matches
CCS Forum Index
Author Message
  Topic: EX_PCD_Bootloader.c not working on PIC24FJ256DA206
notbad

Replies: 0
Views: 4027

PostForum: General CCS C Discussion   Posted: Thu Oct 23, 2014 5:14 am   Subject: EX_PCD_Bootloader.c not working on PIC24FJ256DA206
I compiled "EX_PCD_Bootloader.c" for PIC24FJ256DA206 and programmed it into the chip.
It works normally but when I press the reprogram push button upon reset, I can't reprogram the device. ...
  Topic: A better substitute for bit_set, bit_clear
notbad

Replies: 11
Views: 17157

PostForum: General CCS C Discussion   Posted: Fri Jul 11, 2014 3:31 pm   Subject: A better substitute for bit_set, bit_clear
Thanks guys
Ttelmah's first solution is exactly what I was looking for.

Thanks Smile
  Topic: A better substitute for bit_set, bit_clear
notbad

Replies: 11
Views: 17157

PostForum: General CCS C Discussion   Posted: Fri Jul 11, 2014 1:31 pm   Subject: A better substitute for bit_set, bit_clear
Thanks for your answer asmboy.
arbitrary offset is what I need.
and what's the problem with the ccs function?
Nothing. I just wanted to be able to assign the return value of a Boolean function to a ...
  Topic: A better substitute for bit_set, bit_clear
notbad

Replies: 11
Views: 17157

PostForum: General CCS C Discussion   Posted: Fri Jul 11, 2014 10:11 am   Subject: A better substitute for bit_set, bit_clear
Is there a function or a macro to write a Boolean variable to a bit in another variable? If not, how can I write one?

like this:
a.7 = f_boolean();
or
func(a , 7 ,f_boolean() ...
  Topic: RS485 Need some help
notbad

Replies: 16
Views: 18664

PostForum: General CCS C Discussion   Posted: Thu Jun 05, 2014 12:19 am   Subject: RS485 Need some help
Dear "nasr". You are the reason we can't have nice things.
  Topic: Second instance of printf function?
notbad

Replies: 4
Views: 6145

PostForum: General CCS C Discussion   Posted: Sun Jun 01, 2014 6:33 am   Subject: Second instance of printf function?
Hi Ttelmah. Thanks.
I tested your code and it works goodly. I disabled GIE after buffer is all out.
  Topic: Second instance of printf function?
notbad

Replies: 4
Views: 6145

PostForum: General CCS C Discussion   Posted: Sun Jun 01, 2014 2:41 am   Subject: Second instance of printf function?
Thanks Mike
The Interrupt is simply an INT_TIMER2 and counts a timeout variable and if code is stuck somewhere (in an external eeprom routine) it prints something and halts(while(true);) right there ...
  Topic: Second instance of printf function?
notbad

Replies: 4
Views: 6145

PostForum: General CCS C Discussion   Posted: Sun Jun 01, 2014 1:16 am   Subject: Second instance of printf function?
Hi
As you know, there is a solution for stopping the compiler from disabling interrupts for delay functions(
#use rs232(BAUD=9600,UART1,ERRORS)
#int_xxx
void xxx_ISR(void)
{ ...
  Topic: Half display on LCD with flex_lcd.c
notbad

Replies: 5
Views: 8774

PostForum: General CCS C Discussion   Posted: Wed May 14, 2014 1:12 am   Subject: Half display on LCD with flex_lcd.c
There is a similar problem with some 16x1 LCDs. Maybe it has something to do with that.
Some 16x1 LCDs have to be configured as 8x2. Take a look at PCM_Programmer's driver for 16x1 LCDs (flex_lcd_16x ...
  Topic: MSD (Mass storage device) class using PIC18F47J53
notbad

Replies: 11
Views: 11342

PostForum: General CCS C Discussion   Posted: Tue May 06, 2014 2:38 pm   Subject: MSD (Mass storage device) class using PIC18F47J53
Do you think it's possible to port that project to CCS?
Like how many hours will it take for a beginner who knows some stuff about CCS C but nothing about C18 C?
Is there any info on porting code fr ...
  Topic: MSD (Mass storage device) class using PIC18F47J53
notbad

Replies: 11
Views: 11342

PostForum: General CCS C Discussion   Posted: Tue May 06, 2014 10:37 am   Subject: MSD (Mass storage device) class using PIC18F47J53
I too have searched about this a couple of weeks ago and came across [url=http://direction.scene-double.com/2008/07/08/usb-msd-bootloader-for-pic-microcontrollers.aspx]the scene double project.
I was ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
notbad

Replies: 23
Views: 25400

PostForum: General CCS C Discussion   Posted: Thu Apr 24, 2014 8:11 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
I'm not an expert but I suggest you test with a simple setup.
Let modbus library use hardware UART.
Use ASCII mode and if you can, use another 485 receiver and a PC to see whats going on the bus.
...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
notbad

Replies: 23
Views: 25400

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 2:25 pm   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
i am using MAX3843 to use 485
here is schematic
...
and in code i have defined in this way

#define MODBUS_SERIAL_ENABLE_PIN PIN_B12 // Controls DE pin for RS485
#define ...
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
notbad

Replies: 23
Views: 25400

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 4:57 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004
I get those warning too. I don't know exactly what problems they might cause, but my circuit works.
BTW, I use hardware UART and ASCII mode. I don't know if that makes a difference.
  Topic: Communicating with energy meter on MODBUS with P24FJ64GA004
notbad

Replies: 23
Views: 25400

PostForum: General CCS C Discussion   Posted: Wed Apr 23, 2014 4:46 am   Subject: Communicating with energy meter on MODBUS with P24FJ64GA004

then some thing like this will work?
modbus_read_holding_registers(0x08, 4000, 1)

Yes. But make sure the register address' base is correct. You may have to use 0x4000. Your spec sheet didn't men ...
 
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