Author |
Message |
Topic: pwm weird output |
pwhitey86
Replies: 2
Views: 3632
|
Forum: General CCS C Discussion Posted: Mon Jan 22, 2007 5:40 pm Subject: should have searched more |
this post helped
i forgot the while(1) at the end so it wouldn't sleep
http://www.ccsinfo.com/forum/viewtopic.php?t=17729&highlight=pwm+middle |
Topic: pwm weird output |
pwhitey86
Replies: 2
Views: 3632
|
Forum: General CCS C Discussion Posted: Mon Jan 22, 2007 3:27 pm Subject: pwm weird output |
hi i setup my pwm as such
EDIT: reposted code
#include <18F2680.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7 ... |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 5:19 pm Subject: ex_crc.c question |
ya .. humberto i took the statements out .. yes my reasoning was flawed
anyhow .. another question
currently I use pins b0 and b1 for RX TX .. is it possible to us b2 as say another RX pin sin ... |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 7:49 am Subject: ex_crc.c question |
ya .. i edited it bc the pull down did not work .. and rather what i put above did |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 7:09 am Subject: ex_crc.c question |
I added output_low(pin_B0) and output_low(pin_B1) to both RX and TX chips and that seems to solve the issue .. pin B0 went high on the RX chip at turn on and caused the int on the TX |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 6:50 am Subject: ex_crc.c question |
2) ya .. my question is why did the interrupt trigger in the transmitting pic when it is the only one sending characters
Does the receiver is echoing something while receiving ?
Humberto
... |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Tue Jan 16, 2007 6:47 am Subject: ex_crc.c question |
What is the #USE_RS232 defintion for the getc?...
Best Wishes
From the ex_crc.c example in the example folder the #use rs232 line for pic to pic comm is
#use rs232(baud=9600, xmit=PIN_B ... |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Mon Jan 15, 2007 7:02 pm Subject: ex_crc.c question |
my TX PIC will hang at the interrupt at the getc()
1) How did you determine that the program hang in getc ?
2) To stay in getc implies that the interrupt was triggered by a falling signal b ... |
Topic: ex_crc.c question |
pwhitey86
Replies: 14
Views: 12411
|
Forum: General CCS C Discussion Posted: Mon Jan 15, 2007 5:28 pm Subject: ex_crc.c question |
Hi,
I am implementing this example verbatim. I am using a 18F2680 but pin assignments are the same for this example.
In main .. interrupts are enabled :
ext_int_edge(H_TO_L); ... |
|