Author |
Message |
Topic: RS232 |
dpmohne
Replies: 7
Views: 16591
|
Forum: General CCS C Discussion Posted: Mon Jun 07, 2004 1:30 pm Subject: RS232 |
Actually, it will. Look at this table in the 16F877 data sheet:
Serves me right for not looking at the datasheet and just going off what I was told. |
Topic: RS232 |
dpmohne
Replies: 7
Views: 16591
|
Forum: General CCS C Discussion Posted: Sun Jun 06, 2004 3:33 pm Subject: Re: RS232 |
#use delay(clock=4000000) //used for built-in delay functions
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#endif
Another thing to note is that 4mhz won't support 96 ... |
Topic: set_pwmX_duty() bug fixed in 3.202 |
dpmohne
Replies: 5
Views: 13920
|
Forum: General CCS C Discussion Posted: Sun Jun 06, 2004 3:31 pm Subject: set_pwmX_duty() bug fixed in 3.202 |
Well, it's Sunday afternoon here. I assumed you would answer
quickly on Friday afternoon and I would come up with a fix.
Since you'll be back in the shop Monday morning and have access
to a compi ... |
Topic: set_pwmX_duty() bug fixed in 3.202 |
dpmohne
Replies: 5
Views: 13920
|
Forum: General CCS C Discussion Posted: Sun Jun 06, 2004 9:33 am Subject: set_pwmX_duty() bug fixed in 3.202 |
Sorry about not being more specific
I am using both 16f877a's and 16f88's and both have this problem
the line of code in partiular is
set_pwm1_duty((long)100);
From what ... |
Topic: set_pwmX_duty() bug fixed in 3.202 |
dpmohne
Replies: 5
Views: 13920
|
Forum: General CCS C Discussion Posted: Fri Jun 04, 2004 4:13 pm Subject: set_pwmX_duty() bug fixed in 3.202 |
Is there a work around for this issue that I can use in 3.201?
This is the only version I have access to for at least the next couple of days as the holders of the software keys have left for the w ... |
Topic: 16f88 and Recieve Data Available Interupt |
dpmohne
Replies: 8
Views: 24894
|
Forum: General CCS C Discussion Posted: Fri May 28, 2004 5:19 am Subject: 16f88 and Recieve Data Available Interupt |
for 16F88 with 3.173, a simple fix for USART is
#use rs232( ... xmit=PIN_C6, rcv=PIN_C7 ...
then it will come out at PIN_B5 and PIN_B2,
I hope it also work for your 3.174
have fun !
I could d ... |
Topic: 16f88 and Recieve Data Available Interupt |
dpmohne
Replies: 8
Views: 24894
|
Forum: General CCS C Discussion Posted: Fri May 28, 2004 5:18 am Subject: 16f88 and Recieve Data Available Interupt |
I would also advise against placing printf statements inside interrupt handlers. They can take a lot of time and may result in loss of character reception.
Very true, I was just trying to demonstra ... |
Topic: 16f88 and Recieve Data Available Interupt |
dpmohne
Replies: 8
Views: 24894
|
Forum: General CCS C Discussion Posted: Thu May 27, 2004 5:20 pm Subject: 16f88 and Recieve Data Available Interupt |
We are using version 3.174 of the compiler which definitely has the error. I edited the chip in chipedit and the problem is corrected.
Duane |
Topic: 16f88 and Recieve Data Available Interupt |
dpmohne
Replies: 8
Views: 24894
|
Forum: General CCS C Discussion Posted: Thu May 27, 2004 4:48 pm Subject: 16f88 and Recieve Data Available Interupt |
I am attempting to use the Recieve Data Available interupt on an 16f88 with the following code. The RDA_isr() is not being entered as far as I can tell.
#include <16F88.h>
#use delay& ... |
|