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 16 matches
CCS Forum Index
Author Message
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Tue May 09, 2006 9:18 am   Subject: 485 comm, problem found
im using regular c in hitide, so there is no premade delay_ms function. but if my pulse/bits are correct (correct width in seconds), there isnt a need to do a delay check to see if my clock is correct ...
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Tue May 09, 2006 6:30 am   Subject: 485 comm, problem found
If TX9 (9-bit Transmit enable bit) and RX9 (9-bit Receive Enable bit) are both set to zero = Selects 8-bit transmission/reception. How could I be sending 9-bits, and how would that 9th bit be set high ...
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 12:58 pm   Subject: 485 comm, problem found
I have been looking at my tx and rx lines on the scope. I am comparing the readings from the 18f4610 to the ones on its predecesor, the 17c756(which is proven communication). On the transmit, either ...
  Topic: i2c...arrgghh....help!!!
new2pic

Replies: 3
Views: 6152

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 11:18 am   Subject: i2c...arrgghh....help!!!
i dont know if this helps but this works for me:


SEN = 1;
while(comm_not_finished);

bit comm_not_finished (data passed to function)

while(!SSPIF);
SSPIF = 0;
switch (x)
{
case 0: ...
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 9:19 am   Subject: 485 comm, problem found
is the code in assembly?
also
delay_ms(10000) is a function right? wouldnt i need the function definition and prototype?
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 8:28 am   Subject: 485 comm, problem found
still I dont have an accurate way to tell time. I have not been able to find a solid delay routine. I have checked my clock chip and its frequency is correct, if I transmit 1010 1010 with a leading lo ...
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 8:09 am   Subject: 485 comm, problem found
I think the long 'high' stretch is 8 long, not 7 becuase it has the stop bit, is this correct?
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 8:03 am   Subject: 485 comm, problem found
I dont understand what is meant by this? Toggle a pin on and off to make a square wave? how do you toggle it, from a timer interrupt program? I do not know how to create an accurate delay program unle ...
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Mon May 08, 2006 6:46 am   Subject: 485 comm, problem found
are there any other things that could cause this, perhaps with the chip configuration, not a hardware problem or scope problem or osillator problem or any other external problem?
  Topic: 485 comm, problem found
new2pic

Replies: 15
Views: 18344

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 3:18 pm   Subject: 485 comm, problem found
I am swapping out a 17C756 with a 18F4610. There are no errors with the 17C756. With the 18F4610 I will however get "comm errors" about 10% of the time. The other 90% of the time everything works fine ...
  Topic: 485 communication:gettin started
new2pic

Replies: 10
Views: 12095

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 12:56 pm   Subject: 485 communication:gettin started
what does that mean
  Topic: 485 communication:gettin started
new2pic

Replies: 10
Views: 12095

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 12:30 pm   Subject: 485 communication:gettin started
i dont see anything in the data sheet about CRC or checksum errors?
  Topic: 485 communication:gettin started
new2pic

Replies: 10
Views: 12095

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 10:33 am   Subject: 485 communication:gettin started
How can i get rid of framing errors?
  Topic: 485 communication:gettin started
new2pic

Replies: 10
Views: 12095

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 9:13 am   Subject: 485 communication:gettin started
i think this is the just of the 485 com in the 17. There is a timer that if exceeded sets "clear_485_fault" so that the transmission is repeated. "asynch_485_rec_busy" and "asynch_485_timeout_ ...
  Topic: 485 communication:gettin started
new2pic

Replies: 10
Views: 12095

PostForum: General CCS C Discussion   Posted: Fri May 05, 2006 8:27 am   Subject: 485 communication:gettin started
this is the config for the 17c756, is this what you meant?

SYNC2 = 0; // port 2 asynchronous mode
SPEN2 = 1; // serial port 2 enable
TX2IE = 0; // disable asynch TX int ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group