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 33 matches
CCS Forum Index
Author Message
  Topic: RS485 half duplex communication
funmix

Replies: 17
Views: 26176

PostForum: General CCS C Discussion   Posted: Mon Apr 30, 2007 7:47 am   Subject: RS485 half duplex communication
By the way, your code cannot be compiled. There are errors in slave and master main loop. Can you please verify again?

Thanks for your sharing code.
  Topic: RS485 half duplex communication
funmix

Replies: 17
Views: 26176

PostForum: General CCS C Discussion   Posted: Mon Apr 30, 2007 7:35 am   Subject: RS485 half duplex communication
how you verify that the two PICs able to communicate with each other?

What ICs you use for communication? I hope your code is working. I am testing it

anyway, thanks for your code.
  Topic: Some weird character in rs232
funmix

Replies: 4
Views: 4604

PostForum: General CCS C Discussion   Posted: Sun Apr 29, 2007 12:25 am   Subject: Some weird character in rs232
I solved the problem!! i able to transmit what i want now.

modified code:

void putc_buffer(int8 cmd)
{
int restart = 0;
while (tx_counter>(TX_SIZE - 1)); ...
  Topic: Some weird character in rs232
funmix

Replies: 4
Views: 4604

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2007 9:11 pm   Subject: Some weird character in rs232

//VARIABLES GLOBALS

//Receive Variables*************************************************************
static int8 char_rcved,data_valid,rx_in;
static int8 buffer_overflow,stream_complete;
//*** ...
  Topic: Some weird character in rs232
funmix

Replies: 4
Views: 4604

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2007 8:07 am   Subject: Some weird character in rs232
output in terminal:

1070-1-110 100-1-11070-1-110 100-1-11070-1-110 100-1-110100-1-
11070-1-110 100-1-11070-1-110 100-1-11070-1-110 100-1-11070-1-1
10 100-1 ...
  Topic: Some weird character in rs232
funmix

Replies: 4
Views: 4604

PostForum: General CCS C Discussion   Posted: Sat Apr 28, 2007 6:41 am   Subject: Some weird character in rs232
i would like to transmit certain amount of character act like a communication protocol.


protocol format:||BUFFER
#int_TBE
void Serial_TX_isr(void)
{
if(tx_counter!=0)/ ...
  Topic: RS485 half duplex communication
funmix

Replies: 17
Views: 26176

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2007 10:10 pm   Subject: RS485 half duplex communication
Can you post your complete code for master and slave?

How about your hardware configuration? the H/F is 0 for full duplex, half duplex for 1
  Topic: need help in protocol implementation
funmix

Replies: 3
Views: 4617

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2007 6:17 pm   Subject: need help in protocol implementation
Hi PCM,

Thanks for reply. Any example code to refer? i have read the thread, but i got no idea how to start.
  Topic: need help in protocol implementation
funmix

Replies: 3
Views: 4617

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2007 10:30 am   Subject: need help in protocol implementation
Hi everyone,

I wish to design a network with 485 network(rs232 function). I am facing difficulty to design the protocol.

protocol format : <start><address><dataLength><data& ...
  Topic: USART address detect
funmix

Replies: 2
Views: 5930

PostForum: General CCS C Discussion   Posted: Thu Apr 26, 2007 2:05 am   Subject: USART address detect
I have modifed the code..

below is the #int_rda routine, please comment


#include <18F4520.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP

#define FREQ_OSC 20000000
#define BAUD_RATE 19200
# ...
  Topic: USART address detect
funmix

Replies: 2
Views: 5930

PostForum: General CCS C Discussion   Posted: Wed Apr 25, 2007 10:33 am   Subject: USART address detect
Any comment for the code? I am going to implement 9 bit addressable mode USART.

#case
#include <18F4520.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP

#define FREQ_OSC 20000000
#define BAUD_RATE ...
  Topic: Enabling/Disabling Hardware USART on the fly?
funmix

Replies: 10
Views: 14582

PostForum: General CCS C Discussion   Posted: Wed Apr 25, 2007 6:50 am   Subject: Enabling/Disabling Hardware USART on the fly?
Ya..I am going to design simple 485 protocol

<start><node addr><length><data><checksum>

Do you have sample code that i can refer to design the 485 protocol?

I ha ...
  Topic: Enabling/Disabling Hardware USART on the fly?
funmix

Replies: 10
Views: 14582

PostForum: General CCS C Discussion   Posted: Wed Apr 25, 2007 6:28 am   Subject: Enabling/Disabling Hardware USART on the fly?
To JimJ

Do you mind to share your working code? communication between multiple slaves via USART.

Appreciate if you are sharing
  Topic: RS232 and RS485 working together ?
funmix

Replies: 5
Views: 8277

PostForum: General CCS C Discussion   Posted: Sun Apr 22, 2007 8:55 pm   Subject: RS232 and RS485 working together ?
HI cookie,

do you mind to share your working code?
  Topic: Request Ex_rs485.c
funmix

Replies: 1
Views: 4211

PostForum: General CCS C Discussion   Posted: Thu Apr 19, 2007 7:30 pm   Subject: Request Ex_rs485.c
Hi guys, Can someone post ex_rs485.c here? My compiler 3.222 doesn't provide this file in example folder...appreciate if someone can post it here...

Thanks
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group