Author |
Message |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 9:52 am Subject: Question about ext_int_edge use ! |
Ok...so i've modified the timer1 ISR by including the second IF statement in the ELSE of the first, and i get over the serial "10 80 41 02" in hex over and over again..but this time, only wh ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 8:37 am Subject: Question about ext_int_edge use ! |
Here is the transmitter code :
#include <16f877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=10000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
char sla ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 8:35 am Subject: Question about ext_int_edge use ! |
The output for printf("%s",buffer); is :
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
PPP ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 8:28 am Subject: Question about ext_int_edge use ! |
Here is today's code :
#include <18f452.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=10000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#define tsop p ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 10, 2009 7:09 am Subject: Question about ext_int_edge use ! |
So...i've tested the program and it still doesn't work !
In the hyperterminal window it outputs an endless row of "P".
It seems to be stuck in the WHILE in the main().
The program e ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Mon Feb 09, 2009 2:04 pm Subject: Question about ext_int_edge use ! |
Hello Ttelmah !
Thank you for answering my post and sorry i didn't aswer it.
I didn't get a chance to actualy test the code posted below...so if you can take a look over it and see if it makes ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Thu Feb 05, 2009 12:59 pm Subject: Question about ext_int_edge use ! |
Where should i put the FOR LOOP ?
Without the FOR loop the program kind'a works, but I need to printf the result to the serial port, and for this I need a string ( BUFFER[10]).
Hmm...I don't kno ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Thu Feb 05, 2009 12:56 pm Subject: Question about ext_int_edge use ! |
Hello Ttelmah !
Based on your last post, the following implementation is my latest shot at sloving this problem, but unfortunately it is still not working.
#include <18f452.h>
#fuses ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 2:24 pm Subject: Question about ext_int_edge use ! |
Basically ... I'm retaining the value of the last bit.
Or so it should be !
Hmm...i'm confused ....pls give me a hand in solving this ! |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 2:08 pm Subject: Question about ext_int_edge use ! |
Hello Ttelmah !
Thak you for your response.
You are right about the transmitter code ... point taken !
Now...about the receiver code :
Let's take an example so i can understand w ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Wed Feb 04, 2009 3:35 am Subject: Question about ext_int_edge use ! |
Hello PCM Programmer !
Thank you 4 your answer.
The code is inspired by this loginway article : The "ext_int_edge" work's like this (please corect me if i'm wrong) :
- when ... |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 9:33 am Subject: Question about ext_int_edge use ! |
Any ideas ? Anyone ? |
Topic: Question about ext_int_edge use ! |
Andrew83
Replies: 19
Views: 29044
|
Forum: General CCS C Discussion Posted: Tue Feb 03, 2009 7:58 am Subject: Question about ext_int_edge use ! |
Hello everybody !
I have a problem with a program.
First of all, as usual, I'm using pic18f452 @ 10 MHz and CCS C compiler version 4.057.
PROBLEM : the output of the next code should be 11101 ... |
Topic: Serial translation question ! |
Andrew83
Replies: 4
Views: 3657
|
Forum: General CCS C Discussion Posted: Tue Jan 27, 2009 12:41 pm Subject: Serial translation question ! |
Thank you 4 your quick answer ! ;) |
Topic: Serial translation question ! |
Andrew83
Replies: 4
Views: 3657
|
Forum: General CCS C Discussion Posted: Tue Jan 27, 2009 4:58 am Subject: Serial translation question ! |
Here is a small test code that isn't working:
#include <18f452.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=10000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) ... |
|