Author |
Message |
Topic: Error compilation when trying write an interrupt handler |
ElectronPIC
Replies: 6
Views: 16506
|
Forum: General CCS C Discussion Posted: Sun Dec 03, 2017 3:03 pm Subject: Error compilation when trying write an interrupt handler |
and (important to understand), the only reason to do this, is if you have a handler that must be handled really quickly. In this case you only save the registers that are used in this handler, and get ... |
Topic: Error compilation when trying write an interrupt handler |
ElectronPIC
Replies: 6
Views: 16506
|
Forum: General CCS C Discussion Posted: Sun Dec 03, 2017 2:56 pm Subject: Error compilation when trying write an interrupt handler |
It means you can't have #int_global and #int_rda (for example) at the
same time. If you use #int_global, ALL interrupt handling must be done
by you in the #int_global routine.
Do a forum search ... |
Topic: Error compilation when trying write an interrupt handler |
ElectronPIC
Replies: 6
Views: 16506
|
Forum: General CCS C Discussion Posted: Sun Dec 03, 2017 9:20 am Subject: Error compilation when trying write an interrupt handler |
Hi everyone!
I want to write my own interrupt dispatcher. To start I've just copied the dispatcher generated automatically by CCS:
#INT_GLOBAL
void InterruptDispatcher(void)
{
... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Thu Dec 29, 2016 4:43 pm Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
Hi ElectronPIC, the reason you don't want to disable the RDA Interrupt is basically, you have no control over when bytes of data will arrive at the receiver input and if you don't read in and process ... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Thu Dec 29, 2016 4:36 pm Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
re: WDT
WDT should be disabled until you're 100% confident your code is correct and 'market ready' THEN enable the WDT and see what happens....
WDT testing could easily take another week or 2.... ... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Thu Dec 29, 2016 3:12 pm Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
Thank you all for your answers!
I didn't actually look at your program before. I just read your symptoms
and thought of the usual solution.
I didn't look closely at your code, but here are s ... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2016 3:39 pm Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
Well, I've looked at the post and I think I'm doing the same thing to clear the buffer before enabling it. The problem persists. When I send a long string of commands, when I start receiving character ... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2016 11:13 am Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
The UART has a 2-deep receive fifo and the incoming shift-register.
It will still load up with characters, even if you shut off interrupts.
To clear the buffer, see the clear_uart() macro by Ttelmah ... |
Topic: Problem using #INT_RDA and #INT_TBE for RS232 communication |
ElectronPIC
Replies: 17
Views: 33045
|
Forum: General CCS C Discussion Posted: Mon Dec 26, 2016 10:56 am Subject: Problem using #INT_RDA and #INT_TBE for RS232 communication |
Hello everybody!
I'm relatively new on C programming on PICs and I'm having problems in getting RS232 communication working right. So any help I can get would be appreciated.
What I want to do i ... |
|