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: USART multiprocessors
agreement

Replies: 11
Views: 13520

PostForum: General CCS C Discussion   Posted: Mon Mar 14, 2011 1:16 am   Subject: USART multiprocessors
Since you've made a few changes, repost the program, it'll be easier to follow....
Yes, this is my code:
For master:

#include <16F877A.h>

#device adc=8

#FUSES NOWDT ...
  Topic: USART multiprocessors
agreement

Replies: 11
Views: 13520

PostForum: General CCS C Discussion   Posted: Sun Mar 13, 2011 12:31 pm   Subject: USART multiprocessors

void Init_UART(void)
{
TXSTA|=(1<<TX9); //select 9-bit transmission.
TXSTA&=~(1<<SYNC);

RCSTA|=(ADDEN<<1); //enable address detection.
PIE1|=(RCIE <& ...
  Topic: USART multiprocessors
agreement

Replies: 11
Views: 13520

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2011 7:05 pm   Subject: USART multiprocessors
Also put a delay in your xmt forever loop to give your rcv units time to process what's being sent.
Thanks! That's good idea! but slave still not go to interrupt service to receive data. :(
  Topic: USART multiprocessors
agreement

Replies: 11
Views: 13520

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2011 7:03 pm   Subject: USART multiprocessors
I strongly suggest that you use CCS functions. Example of why:

Here, you have defined GIE and PEIE as their bit numbers instead of
their bitmasks.

#define GIE 7
#define PEIE 6

INTCON| ...
  Topic: USART multiprocessors
agreement

Replies: 11
Views: 13520

PostForum: General CCS C Discussion   Posted: Sat Mar 12, 2011 1:43 am   Subject: USART multiprocessors
Hi! I'm going to setup a small network with 1 master and 2 slave .
I use 9th bit mode with address detect.
In slave chip, data will be received when interrupt be called by 9th bit =1 , RCIF bit=1 a ...
  Topic: How do putc() work?
agreement

Replies: 6
Views: 13834

PostForum: General CCS C Discussion   Posted: Thu Mar 03, 2011 7:35 am   Subject: How do putc() work?
i see. thanks so much!
  Topic: How do putc() work?
agreement

Replies: 6
Views: 13834

PostForum: General CCS C Discussion   Posted: Wed Mar 02, 2011 9:29 pm   Subject: How do putc() work?
Hi everyone! Although I have look for this function in PICC folder but I can't find this function. Can you tell me how to see inside this function? Thanks!
  Topic: measure pulse width use timer1
agreement

Replies: 5
Views: 11280

PostForum: General CCS C Discussion   Posted: Sat Oct 09, 2010 2:56 am   Subject: measure pulse width use timer1
Describe the input signal. What is the frequency ? What device makes
the signal ? What's the manufacturer and part number ? What is the
expected duration of the pulses (high level time duration ...
  Topic: measure pulse width use timer1
agreement

Replies: 5
Views: 11280

PostForum: General CCS C Discussion   Posted: Fri Oct 08, 2010 8:29 pm   Subject: measure pulse width use timer1
thanks, but i have tryed the example but it still not work.:(
  Topic: measure pulse width use timer1
agreement

Replies: 5
Views: 11280

PostForum: General CCS C Discussion   Posted: Fri Oct 08, 2010 7:13 pm   Subject: measure pulse width use timer1
Hi. I want to measure pulse width use timer1, but I have a problem.
Pulse at pin CCP1, CCP2 then result be shown in LCD. But the result is 0.
Code as below:

#include <16F877.h>
#use delay& ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group