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 15 matches
CCS Forum Index
Author Message
  Topic: Why wont pin toggle???
arloedx

Replies: 1
Views: 2880

PostForum: General CCS C Discussion   Posted: Fri Jun 04, 2010 10:18 am   Subject: Why wont pin toggle???
I am trying to make PIN_A4 of a PIC18F252 toggle from low to high but it will not work. I try the same code on PIN_A3 and it works perfectly. What am I doing wrong???


#include <18f252.h> ...
  Topic: Keeping data in order
arloedx

Replies: 1
Views: 3358

PostForum: General CCS C Discussion   Posted: Wed May 26, 2010 11:04 am   Subject: Keeping data in order
Question: Whether I am communicating in RS232, RS485, or I2C between a master and a slave both of which have a buffer to store data, how can I ensure that the data from buffer[0] of the slave ends up ...
  Topic: how to tell if done receiving chars
arloedx

Replies: 9
Views: 8411

PostForum: General CCS C Discussion   Posted: Thu Apr 08, 2010 9:18 am   Subject: how to tell if done receiving chars
Ok. Thanks. Smile

-Alex
  Topic: how to tell if done receiving chars
arloedx

Replies: 9
Views: 8411

PostForum: General CCS C Discussion   Posted: Thu Apr 08, 2010 8:50 am   Subject: how to tell if done receiving chars
Hi Ben,

Thanks for the quick reply. In my app, data is being processed by an external A/D Converter then saved on the PIC. That part is easy enough. I then need to send the data from one PIC t ...
  Topic: how to tell if done receiving chars
arloedx

Replies: 9
Views: 8411

PostForum: General CCS C Discussion   Posted: Wed Apr 07, 2010 3:45 pm   Subject: how to tell if done receiving chars
bkamen: I'm also looking into sending & receiving 16-bit data via RS-232. Do you have a sample I may use as a foundation to my code. It would save me a lot of time. I would appreciate any help. ...
  Topic: How can I send and receive 16 bits of data between two PICs
arloedx

Replies: 2
Views: 3246

PostForum: General CCS C Discussion   Posted: Mon Oct 05, 2009 10:01 am   Subject: How can I send and receive 16 bits of data between two PICs
I would like to send and receive 16 bits of data from one PIC to another but I'm not sure how to go about doing this. I was thinking of using fputc from rs232 but I only see in the options the abilit ...
  Topic: 9th bit interrupt
arloedx

Replies: 3
Views: 6122

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2009 2:13 pm   Subject: 9th bit interrupt
I see from the driver the following line which I think sets the 9th bit.


fputc((int16)0x100|rs485_id, RS485_CD);


I'm not entirely sure how that works, nor do I see how the re ...
  Topic: 9th bit interrupt
arloedx

Replies: 3
Views: 6122

PostForum: General CCS C Discussion   Posted: Tue Sep 08, 2009 1:38 pm   Subject: 9th bit interrupt
Hi,

I am communicating between two PIC18f252 uControllers. They are connected together with two max485 chips. I can send and receive data without problems. Right now the slave is simply oscillati ...
  Topic: Receiver problem in RS 485 communication
arloedx

Replies: 2
Views: 7482

PostForum: General CCS C Discussion   Posted: Fri Aug 28, 2009 8:49 am   Subject: Receiver problem in RS 485 communication
Hi,

You are having a similar problem to what I am having. I was unable to get the rs485_get_message to work properly, but I was able to receive the data I was transmitting using this:


#includ ...
  Topic: RS485 Transmitter sending extra data
arloedx

Replies: 1
Views: 4233

PostForum: General CCS C Discussion   Posted: Wed Aug 26, 2009 10:30 am   Subject: RS485 Transmitter sending extra data
Hello,

I am using the rs485.c library to send data. I have two PIC18f252 and two MAX485 chips. I can send data but additional data is being sent. For example if I send the character 'A', the cha ...
  Topic: Help with RS485_get_message
arloedx

Replies: 13
Views: 34023

PostForum: General CCS C Discussion   Posted: Tue Aug 25, 2009 9:33 am   Subject: Help with RS485_get_message
I think i have isolated the problem.

From the RS485.c file I am calling two routines: rs485_init() and rs485_get_message(). When simulating my code I have discovered that it is getting stuck at th ...
  Topic: Help with RS485_get_message
arloedx

Replies: 13
Views: 34023

PostForum: General CCS C Discussion   Posted: Tue Aug 25, 2009 8:09 am   Subject: Help with RS485_get_message



while(true)
{
if(rs485_get_message(msg, FALSE))
printf(lcd_putc, "%d ", msg[1]);
}




When I try th ...
  Topic: Help with RS485_get_message
arloedx

Replies: 13
Views: 34023

PostForum: General CCS C Discussion   Posted: Mon Aug 24, 2009 2:26 pm   Subject: Help with RS485_get_message
PCM Programmer,

Thank you for responding. I tried your suggestions but that still does not solve the problem. I don't understand if my problem is with the way i'm transmitting, the way the HW is ...
  Topic: Help with RS485_get_message
arloedx

Replies: 13
Views: 34023

PostForum: General CCS C Discussion   Posted: Mon Aug 24, 2009 10:37 am   Subject: Help with RS485_get_message
I added the "enable = pin_c5" PCM programmer suggested but still I have problems. I will provide my transmitter source code, the reciever source code and the schematics to show the entire p ...
  Topic: Help with RS485_get_message
arloedx

Replies: 13
Views: 34023

PostForum: General CCS C Discussion   Posted: Fri Aug 21, 2009 4:16 pm   Subject: Help with RS485_get_message
Hi,

I am trying to set up a simple communication between two PIC18f252 using two MAX487. I was able to transmit data but I am unable to receive it using the RS485_get_message function from the RS ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group