Author |
Message |
Topic: TX -RX indicator |
vpan
Replies: 5
Views: 4516
|
Forum: General CCS C Discussion Posted: Thu Jan 15, 2009 3:23 pm Subject: TX -RX indicator |
Is it possible to connect at TX and RX pin
one led and resistor ?
I want to see if led blinking when I send
or receive data. |
Topic: How can I connect 2 PIC to other one! |
vpan
Replies: 2
Views: 3356
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 4:04 am Subject: How can I connect 2 PIC to other one! |
Hello everybody
I want to communicate from 2 PIC (slave) to other one (master).
I will do A/D and the 10-bit result I'll send it to master.
This work will be doing for 2 PIC's.
Can I do that? ... |
Topic: Int_tbe communicate PC |
vpan
Replies: 1
Views: 3104
|
Forum: General CCS C Discussion Posted: Thu Dec 04, 2008 3:56 am Subject: Int_tbe communicate PC |
hi everybody
i want to ask you a simple question.
is it possible to communicate PIC-PC via
interrupts #int_tbe???
or the only way is to do with classic way printf()?? |
Topic: TIMER interrupt question |
vpan
Replies: 6
Views: 6632
|
Forum: General CCS C Discussion Posted: Sun Nov 30, 2008 9:10 am Subject: TIMER interrupt question |
Can I achieve smaller time for one interrupt
with these materials (same pic, same crystal) ? |
Topic: TIMER interrupt question |
vpan
Replies: 6
Views: 6632
|
Forum: General CCS C Discussion Posted: Sun Nov 30, 2008 8:45 am Subject: TIMER interrupt question |
Thanks for answer!!
Let's say I put prescaler=1 (and 20MHz XT).
That means the minimal time for 1 interrupt is 51.2usec ???
Correct me if I'm doing wrong! |
Topic: TIMER interrupt question |
vpan
Replies: 6
Views: 6632
|
Forum: General CCS C Discussion Posted: Sun Nov 30, 2008 6:41 am Subject: TIMER interrupt question |
hello to all...
I have an 16f877 and 20 MHZ XT.
I want to estimate the minimal time for 1 interrupt on TIMER0.
How can I do this?
There is a formula for this?
Thank you. |
Topic: communication problem |
vpan
Replies: 15
Views: 11077
|
Forum: General CCS C Discussion Posted: Thu Nov 20, 2008 3:34 pm Subject: communication problem |
Problem solved!! Thanks to all of you guys!
I change C1 and C2 to 15pf
re-warm some connections, shorted some wires
and now it's work! |
Topic: communication problem |
vpan
Replies: 15
Views: 11077
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2008 2:47 pm Subject: communication problem |
#include <16F628.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use RS232(baud=19200, xmit=PIN_b2, rcv=PIN_b1)
#byte PORTA=0x05
#byte PORTB= 0x06
//#by ... |
Topic: communication problem |
vpan
Replies: 15
Views: 11077
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2008 2:31 pm Subject: communication problem |
thanks both of you...
my compiler version is 4.057
i did all necessary corrections
when i connect 20MHz i have wrong results!
on 4 MHz everything is fine! |
Topic: communication problem |
vpan
Replies: 15
Views: 11077
|
Forum: General CCS C Discussion Posted: Wed Nov 19, 2008 2:04 pm Subject: communication problem |
I want to communicate with a pc through rs232 and pic 16f628 and crystal 4Mhz at 19200 and works fine. When I replace the crystal with one at 20Mhz it doesn't work. I put a pic 16f877 too and it has ... |
Topic: time to transmit and execute |
vpan
Replies: 7
Views: 6051
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 5:47 am Subject: time to transmit and execute |
let me say an example
with 16f877A and 20MHz XT will be ok? |
Topic: time to transmit and execute |
vpan
Replies: 7
Views: 6051
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 5:44 am Subject: time to transmit and execute |
if you were in my place
what PIC and clock (XT) will you choose?
i'm asking you because i'm confused
about how to calculate baud rate from datasheet
(tables,BRGH e.t.c) |
Topic: time to transmit and execute |
vpan
Replies: 7
Views: 6051
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 3:59 am Subject: time to transmit and execute |
thanks for answer
i want to send 7 values over 232.
can i send these values every 1ms?
i mean,do i have much time between printf() command
and UART (transmit) without PIC confuse?
if i have ... |
Topic: time to transmit and execute |
vpan
Replies: 7
Views: 6051
|
Forum: General CCS C Discussion Posted: Fri Oct 31, 2008 1:35 am Subject: time to transmit and execute |
hello everybody...
i try to estimate how long it takes to transmit
the following command
printf("A_%ld\n",value) where value 0-9999
and baud rate 9600
also,how long it takes ... |
|