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 55 matches
CCS Forum Index
Author Message
  Topic: Simple math questions
iw2nzm

Replies: 0
Views: 2785

PostForum: General CCS C Discussion   Posted: Tue Jan 08, 2008 10:20 am   Subject: Simple math questions
Please, consider this short code:

signed int8 x, y;

y = ...
x = ...
y = x - (x - y) / 8;
x = y;


Should I cast something in the formula?

Marco / iw2nzm
  Topic: Bootloader doesn't work anymore
iw2nzm

Replies: 5
Views: 5446

PostForum: General CCS C Discussion   Posted: Thu Oct 18, 2007 3:40 am   Subject: Bootloader doesn't work anymore
I can't figure out what may be the differences of this installation versus the previous one. Mad

I figured out.

It's my fault. I included the "bootloader.h" CCS default header in ...
  Topic: Bootloader doesn't work anymore
iw2nzm

Replies: 5
Views: 5446

PostForum: General CCS C Discussion   Posted: Thu Oct 18, 2007 12:45 am   Subject: Bootloader doesn't work anymore
If you don't specify the OSC mode in the #FUSES directive, you are going to get a default and that may not agree with your hardware. MPLAB will also choose a default if it isn't specified. MPLAB al ...
  Topic: Bootloader doesn't work anymore
iw2nzm

Replies: 5
Views: 5446

PostForum: General CCS C Discussion   Posted: Thu Oct 18, 2007 12:40 am   Subject: Bootloader doesn't work anymore

If your application code hasn't changed, then what have you been
programming into the PIC for several months ? Your statements
above seem to contradict each other.


Of course my application ...
  Topic: a new IDE for CCS C compiler
iw2nzm

Replies: 15
Views: 18738

PostForum: General CCS C Discussion   Posted: Wed Oct 17, 2007 3:38 am   Subject: a new IDE for CCS C compiler
Idea seems that everybody is happy with the actual IDE

Me, I'm not happy at all. It's the worst IDE I ever seen. The undo/redo doesn't work, sometimes it hang-up or crashs.

I use the Programm ...
  Topic: Bootloader doesn't work anymore
iw2nzm

Replies: 5
Views: 5446

PostForum: General CCS C Discussion   Posted: Wed Oct 17, 2007 3:31 am   Subject: Bootloader doesn't work anymore
Hello,

today is happened a strange thing.

I have a PIC18F4520 on a remote board and for months (literally) I programmed it through the CCS bootloader on a RS485 link.
Yesterday I formatted the ...
  Topic: spi headache
iw2nzm

Replies: 6
Views: 10345

PostForum: General CCS C Discussion   Posted: Sun Oct 14, 2007 4:28 am   Subject: spi headache
Razz I want to say you a BIG thank you. Razz

It works like a charm. The problem was the bad CCS code.
Furthermore, I've just killed the CCS IDE and I'm using the PN as editor.

Thanks ...
  Topic: spi headache
iw2nzm

Replies: 6
Views: 10345

PostForum: General CCS C Discussion   Posted: Sun Oct 14, 2007 3:41 am   Subject: spi headache
UPDATE

So I solved the reset problem. Don't ask me how I did. I just cut & paste the same code in the same place and the reset gone away. I guess the CCS IDE is quite buggy, sometimes it crashe ...
  Topic: spi headache
iw2nzm

Replies: 6
Views: 10345

PostForum: General CCS C Discussion   Posted: Fri Oct 12, 2007 8:40 am   Subject: spi headache
Thank for your complete answer Ttelmah. I completely misunderstood the spi behavior and the manual explanation too.

Despite your suggestion the slave continues to reset itself.

Let's see what I ...
  Topic: spi headache
iw2nzm

Replies: 6
Views: 10345

PostForum: General CCS C Discussion   Posted: Fri Oct 12, 2007 6:12 am   Subject: spi headache
Hello,

I'm puzzling over a simple problem. I have two PIC18F4025 with an SPI link (SDI <-> SDO and SCK). I use spi_read / spi_write function to exchange data. The spi is working: the slave re ...
  Topic: strcpy and write_eeprom
iw2nzm

Replies: 3
Views: 4129

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 9:21 am   Subject: strcpy and write_eeprom
Well, let me say I'm too tired to code today... It's better I stop and go out for a walk... Laughing

Thanks for the quick answer!
Marco / iw2nzm
  Topic: strcpy and write_eeprom
iw2nzm

Replies: 3
Views: 4129

PostForum: General CCS C Discussion   Posted: Thu Oct 11, 2007 8:50 am   Subject: strcpy and write_eeprom
Hi,

please consider this short code:


char *sPassword[9];

void main() {
int8 i;

...
strcpy(sPassword, "0000");
for (i = 0; i < 8 ...
  Topic: General questions about serial
iw2nzm

Replies: 13
Views: 9232

PostForum: General CCS C Discussion   Posted: Mon Sep 03, 2007 12:32 am   Subject: Re: General questions about serial
When you say that the communication fails "after a while", is the time until failure always about the same?

No, sometimes it hangs after few seconds, others immediately.

What evidence ...
  Topic: General questions about serial
iw2nzm

Replies: 13
Views: 9232

PostForum: General CCS C Discussion   Posted: Sat Sep 01, 2007 7:00 am   Subject: Re: General questions about serial
When acting as a repeater, are you still checking the transmit buffer empty bit before loading a new character from the receiver?

Nope. I do this in the rda and ext isr:

char rcv;

rcv = fgetc ...
  Topic: General questions about serial
iw2nzm

Replies: 13
Views: 9232

PostForum: General CCS C Discussion   Posted: Fri Aug 31, 2007 4:03 pm   Subject: General questions about serial

I would use ONLY the hardware USART.

compass --> PIN_C7 (PIC) PIN_C6-->remote link
Only 1 hardware UART is needed!!(I think)

It's a great idea! But unfortunately I need to forward data ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group