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 8 matches
CCS Forum Index
Author Message
  Topic: Changing baud rates, parity, etc. at run time?
Joe Porthouse

Replies: 14
Views: 27821

PostForum: General CCS C Discussion   Posted: Fri Apr 22, 2005 6:54 pm   Subject: Changing baud rates, parity, etc. at run time?
Are you using the Hardware or Software UART?

set_uart_speed(9600); and set_uart_speed(300); would change your baud rates, but would not change your parity.

The #use RS232 statements actually do ...
  Topic: PCH problem with *ptr++ = '0' + (*ptr);
Joe Porthouse

Replies: 5
Views: 8159

PostForum: General CCS C Discussion   Posted: Thu Mar 03, 2005 8:50 pm   Subject: PCH problem with *ptr++ = '0' + (*ptr);
I would guess not. I received the following from CCS Support.

"The problem has been confirmed. We evaluate the right side of the = before the left side even though you have ( ) on the left side. ...
  Topic: RS232_erros
Joe Porthouse

Replies: 2
Views: 6320

PostForum: General CCS C Discussion   Posted: Wed Mar 02, 2005 12:33 pm   Subject: RS232_erros
From the #USE RS232 in the help file....

The definition of the RS232_ERRORS is as follows:

No UART:
� Bit 7 is 9th bit for 9 bit data mode (get and put).
� Bit 6 set to one indicates a put ...
  Topic: PCH problem with *ptr++ = '0' + (*ptr);
Joe Porthouse

Replies: 5
Views: 8159

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 7:29 pm   Subject: PCH problem with *ptr++ = '0' + (*ptr);
I didn't know that. I just sent my post on to CCS. Thanks...
  Topic: Changing baud rates, parity, etc. at run time?
Joe Porthouse

Replies: 14
Views: 27821

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 7:21 pm   Subject: Changing baud rates, parity, etc. at run time?
The set_uart_speed only helps for baud rate, not parity.

Looking at my listing for the multiple #use RS232 shows no code generated other then the one RS232 stub at the beginning of the listing.

...
  Topic: Changing baud rates, parity, etc. at run time?
Joe Porthouse

Replies: 14
Views: 27821

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 1:23 pm   Subject: Changing baud rates, parity, etc. at run time?
Thanks for the info. I did not see the SET_UART_SPEED() functon before.

I knew you could use multiple #use RS232 statements to use more then one serial port, but when I attempt to use multiple #us ...
  Topic: Changing baud rates, parity, etc. at run time?
Joe Porthouse

Replies: 14
Views: 27821

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 12:37 pm   Subject: Changing baud rates, parity, etc. at run time?
#use rs232(baud= 38400,xmit=PIN_C6,rcv=PIN_C7, errors)

This allows a single set of communication parameters to be configured. My problem is that our project uses dip switchs to select the communica ...
  Topic: PCH problem with *ptr++ = '0' + (*ptr);
Joe Porthouse

Replies: 5
Views: 8159

PostForum: General CCS C Discussion   Posted: Mon Feb 28, 2005 12:10 pm   Subject: PCH problem with *ptr++ = '0' + (*ptr);
PCH seems to have a hard time with expressions that reference a pointer, assign to the same pointer and increment the pointer.

*ptr++ = '0' + (*ptr);
While this does increment ptr correctly, it s ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group