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 10 matches
CCS Forum Index
Author Message
  Topic: communicate two board over RS232
red_one

Replies: 2
Views: 3511

PostForum: General CCS C Discussion   Posted: Sun Jan 06, 2008 4:08 am   Subject: communicate two board over RS232
At the most simple level, this is the same as sending data to a PC. Just use PUTC and GETC on both PICs.

Also, have a look at EX_PBUSM.C. That is a example on how to do one wire serial communicati ...
  Topic: communicate two board over RS232
red_one

Replies: 2
Views: 3511

PostForum: General CCS C Discussion   Posted: Sat Jan 05, 2008 6:49 am   Subject: communicate two board over RS232
I have 2 boards :
- CCS software prototyping board and
- PICDEM 2 Plus Demo board

both with PIC16F877A mcu and 10MHz clock oscillator

I want to send chars between these 2 boards over RS232 por ...
  Topic: rtos_msg_read and rtos_msg_send : used with a float number
red_one

Replies: 4
Views: 4621

PostForum: General CCS C Discussion   Posted: Wed Jan 02, 2008 9:02 am   Subject: rtos_msg_read and rtos_msg_send : used with a float number
I have two task with message send and read.

#include <16f877A.h>
#fuses HS, NOWDT, NOPROTECT, NOLVP
#use delay(clock = 10000000)
#use rs232 (baud = 9600, xmit = PIN_C6, rcv = P ...
  Topic: issue with unsigned 16 bits integer
red_one

Replies: 14
Views: 17200

PostForum: General CCS C Discussion   Posted: Wed Dec 19, 2007 5:11 am   Subject: issue with unsigned 16 bits integer
typedef unsigned int16 uint16_t;
uint16_t x = 0xFFFF;


well.
I still have 255 instead of 65535 when wathching in the debugger
  Topic: issue with unsigned 16 bits integer
red_one

Replies: 14
Views: 17200

PostForum: General CCS C Discussion   Posted: Mon Dec 17, 2007 7:55 pm   Subject: issue with unsigned 16 bits integer
type def.
typedef unsigned int uint16_t;

declaration
uint16_t x;

initialization
x = 0xFFFF;

test
if (x == 0x00FF)
printf("oops\r\n");
if (x == 0xFFFF) ...
  Topic: shift_left/right use
red_one

Replies: 5
Views: 10382

PostForum: General CCS C Discussion   Posted: Mon Dec 17, 2007 4:18 am   Subject: shift_left/right use
see the compiler reference manual : http://ccsinfo.com/downloads/CReferenceManual.pdf
shift_left (address, bytes, value)
address is a pointer to memory, bytes is a count of the number of bytes to wo ...
  Topic: shift_left/right use
red_one

Replies: 5
Views: 10382

PostForum: General CCS C Discussion   Posted: Mon Dec 17, 2007 3:22 am   Subject: shift_left/right use
Hello All;

If I want to shift 32-bits integer left or right by one bit what to put as byte count ?

bit_out = shift_left(number32, ??, bit_in);


Thanks
  Topic: Help with RS232 issue on CCS proto. board
red_one

Replies: 3
Views: 3462

PostForum: General CCS C Discussion   Posted: Sat Dec 01, 2007 3:22 pm   Subject: Re: Settings ?
What you are displaying, is 'classic' for the baud rate being wrong somewhere. Check that the com port in your PC, is set to 9600baud 8bits no parity, and that the crystal on the board you are using, ...
  Topic: Help with RS232 issue on CCS proto. board
red_one

Replies: 3
Views: 3462

PostForum: General CCS C Discussion   Posted: Sat Dec 01, 2007 3:13 pm   Subject: Settings ?
What you are displaying, is 'classic' for the baud rate being wrong somewhere. Check that the com port in your PC, is set to 9600baud 8bits no parity, and that the crystal on the board you are using, ...
  Topic: Help with RS232 issue on CCS proto. board
red_one

Replies: 3
Views: 3462

PostForum: General CCS C Discussion   Posted: Sat Dec 01, 2007 5:04 am   Subject: Help with RS232 issue on CCS proto. board
Hello
I have a CCS Prototyping Board with a PIC16F877A MCU. I'm testing example on the exercise book using rs232 port (ex10 )
ex10.c code:
#include "protoalone.h"
#include <stdlib.h& ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group