Author |
Message |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 1:27 pm Subject: Software RS232 that is not disturbed by Interrupt |
Got it working with 2400baud using fast io |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 12:45 pm Subject: Software RS232 that is not disturbed by Interrupt |
I've tested it with the real hardware and it works very good. |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 12:10 pm Subject: Software RS232 that is not disturbed by Interrupt |
OK,
thanks,
I got it working with 1200 baud in my simulator.
At 2400 baud I had a problem with the length of the interrupt routine.
I missed 3 us to get in sync.
Maybe I can optimize the ... |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Mon Aug 24, 2009 1:36 am Subject: Software RS232 that is not disturbed by Interrupt |
Did anybody try this on a 12F629.
i tried to do this with the #int_global bt then i'm out of rom |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Fri Aug 21, 2009 2:05 am Subject: Software RS232 that is not disturbed by Interrupt |
I'm using a 12F629.
The 16F877 is just my debug device.
and the desired clock for the 12f629 is the internal 4mhz.
No HW UART.
My code contains some german comments:
The "accurateinte ... |
Topic: Software RS232 that is not disturbed by Interrupt |
chaertl1
Replies: 12
Views: 9316
|
Forum: General CCS C Discussion Posted: Fri Aug 21, 2009 1:30 am Subject: Software RS232 that is not disturbed by Interrupt |
Hi,
Does anyone have an example for using software RS232 where an interrupt does not affect the getchar() function.
CLOCK = 8Mhz
My TIMER0 interrupt fires at 6400 Hz for pwm generation. every ( ... |
Topic: Accurate timer interrupt programming |
chaertl1
Replies: 8
Views: 12302
|
Forum: General CCS C Discussion Posted: Tue Aug 18, 2009 10:55 pm Subject: Accurate timer interrupt programming |
Is it possible to prevent the compiler to implement its own interrupt code. |
Topic: Accurate timer interrupt programming |
chaertl1
Replies: 8
Views: 12302
|
Forum: General CCS C Discussion Posted: Mon Aug 17, 2009 12:08 pm Subject: Accurate timer interrupt programming |
@ckielstra
the set_timer_x(get_timer_X + Y) is only possible if you are not to close to
the rollover point (256). |
Topic: Accurate timer interrupt programming |
chaertl1
Replies: 8
Views: 12302
|
Forum: General CCS C Discussion Posted: Mon Aug 17, 2009 6:15 am Subject: Accurate timer interrupt programming |
HI,
I discovered a problem, nobody explained in this forum.
If you need an interrupt frequency of 6400Hz at 4Mhz clock frequency,
someone might get in trouble with the accuracy of the interru ... |
|