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 38 matches
CCS Forum Index
Author Message
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Fri Apr 01, 2011 11:29 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
Hi Ttelmah,

Now I already use both tbe and rda interrupt in the both MCU program already.

So I trying to display the data on the LCD in each of the MCU while each of them is keep transmitting da ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Wed Mar 30, 2011 9:50 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
may i know can my rda_isr routine write as this?

#int_rda
void rcv_isr()
{
if(fgetc(x_data)==0xAA) // when first byte = to the header byte
c_data = fgetc ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Wed Mar 30, 2011 8:42 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
Hi,

i try in many ways, but my full duplex really cant work.
sometimes maybe my question is silly, but i'm really not so understand to this... I'm sorry...

as Ttelmah reply before,

for full ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Tue Mar 29, 2011 11:38 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
== means is equal to...

!= means is NOT equal to....


I know this but just...

In if (fgetc(data)=='0xBB')...i juz proceed to implement things that i want when the data is '0xBB'...

but in ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Tue Mar 29, 2011 11:17 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
Hi Ttelmah,

in PIC 16f877A, the int_rda is it mean i already set the RCIE. then when RCIF also be set, then the int_rda will be trigger, am i right?

1 more things,
i wanna ask that when i repla ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Mon Mar 28, 2011 12:14 pm   Subject: DUPLEX COMMUNICATION for PIC16F877A
Hi, the code below is work well in half duplex, but when come to full duplex it is super super lag and slow response...I'm guessing because the while_loop at the read_packet function there.

But log ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Sun Mar 27, 2011 12:54 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
Hi,

can anyone tell me what is hardware uart and software uart?

i am using pin rc6 and rc 7 of 16f877a uart port...then that mean im controlling them with software, right?
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Sat Mar 26, 2011 12:29 pm   Subject: DUPLEX COMMUNICATION for PIC16F877A
Eventually, it is work...

but i wonder why the full duplex communication will make all the things become lag... juz like many packet lost ....

in default mode(when i press ntg), i send 'U', but ...
  Topic: DUPLEX COMMUNICATION for PIC16F877A
sysysy

Replies: 13
Views: 16655

PostForum: General CCS C Discussion   Posted: Sat Mar 26, 2011 10:56 am   Subject: DUPLEX COMMUNICATION for PIC16F877A
I'm using 2 set of RF module 315Mhz and 433Mhz for communication between the control board (MCU1) and the small car board (MCU2).

For 1 way communication, it work very well, I can just simply wirel ...
  Topic: Ultrasonic timer or counter (CCP capturing time?)
sysysy

Replies: 7
Views: 12930

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 11:29 pm   Subject: Ultrasonic timer or counter (CCP capturing time?)
Hi,

From the Pulse width post, it shows how to capture the pulse width within 500ms from the CCP pin. hmm..i think i did digest the code.

But may i know how about to use it in capture the time s ...
  Topic: Ultrasonic timer or counter (CCP capturing time?)
sysysy

Replies: 7
Views: 12930

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 12:52 pm   Subject: Ultrasonic timer or counter (CCP capturing time?)
Thanks for the suggestion. i will read through the details and try it.


Hi PCM Programmer,

You didn't say where you got your range finder module

Actually i build the circuit by my own. i did ...
  Topic: Ultrasonic timer or counter (CCP capturing time?)
sysysy

Replies: 7
Views: 12930

PostForum: General CCS C Discussion   Posted: Thu Mar 17, 2011 6:22 am   Subject: Ultrasonic timer or counter (CCP capturing time?)
Hi,

Knowing that speed of sound is around 340m/s or (34000cm/s)
that mean sound take around 1/34000= 29.4us to travel 1 cm.

Now, the ultrasonic range finder use for finding the short range dist ...
  Topic: CCS USART SETUP --> 16F877A
sysysy

Replies: 8
Views: 21171

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2011 4:59 am   Subject: CCS USART SETUP --> 16F877A
Hello,
i know i am weak in programming, this is just a only code that i can come out with. i don't know how to transmit and receive part.

I just want to simply send a signal from MCU1 to MCU2 whil ...
  Topic: CCS USART SETUP --> 16F877A
sysysy

Replies: 8
Views: 21171

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2011 3:40 am   Subject: CCS USART SETUP --> 16F877A
Thanks for the fast reply.

Hmmm, so in the #use232(...)

example
#use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B1, stream=PC)

i see there is a lot of parameter, but the common use always ...
  Topic: CCS USART SETUP --> 16F877A
sysysy

Replies: 8
Views: 21171

PostForum: General CCS C Discussion   Posted: Wed Mar 09, 2011 3:16 am   Subject: CCS USART SETUP --> 16F877A
Hi,

I need a help from you guys.
Anyone know how to write the setup code for USART without RS232?

I found that all the ccs built-in also involving #use232(...). I don't know how to apply thi ...
 
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