Author |
Message |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 1:04 pm Subject: MUL88 MUL1616 Interrupts disabled |
Ok, I'll try that for the chronometers but the question still stands |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 12:57 pm Subject: MUL88 MUL1616 Interrupts disabled |
No that's something else. Every user has more than one chronometer. If one of them is working, the others are not. It's not about the users |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 10:41 am Subject: MUL88 MUL1616 Interrupts disabled |
@Ttelmah thank you for the suggestion.
I didn't understand what you mean exactly by switch tables, do you mean a switch statement where I check the users and break out of loop when one is found? Th ... |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 7:14 am Subject: MUL88 MUL1616 Interrupts disabled |
The overall program is 1200 lines. It's not going to be useful for anybody to copy the code here.
My main aim is, can also maybe understood from the function name, to make a chronometer, multiple c ... |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 6:24 am Subject: MUL88 MUL1616 Interrupts disabled |
Of course ISRs should be short codes, but the problem is I do have a menu system inside main(). There are a lot of submenus and branches and so on. Even if I just set a bit and check it, I should plac ... |
Topic: MUL88 MUL1616 Interrupts disabled |
albus
Replies: 13
Views: 14861
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 4:36 am Subject: MUL88 MUL1616 Interrupts disabled |
I'm writing a program where timer interrupts are vital. The code is long but the timer routine goes like this:
#int_timer2
void timer2_isr()
{
globalcounter++;
chronocall( ... |
Topic: Struct Array and Item not within memory block |
albus
Replies: 2
Views: 5372
|
Forum: General CCS C Discussion Posted: Thu Apr 18, 2013 5:28 am Subject: Struct Array and Item not within memory block |
Chill man,
I know that proteus is flawed. For starters, it doesn't even recognize int1 data type.
It's just that I'm using struct in struct and arrays in arrays. That's why I asked if this migh ... |
Topic: Struct Array and Item not within memory block |
albus
Replies: 2
Views: 5372
|
Forum: General CCS C Discussion Posted: Thu Apr 18, 2013 5:05 am Subject: Struct Array and Item not within memory block |
I'm using PCWHD 4.138 compiler and writing a program. I've had to define some structs in the code, which are this;
typedef struct
{
int hour;
int min;
int sec;
} chrono;
... |
|