Hello!
I'm starting out with MCUs ( i have a TI MSP430, because it was the cheapest).
I think I'm getting along fine, but i don't really know how to do multiplexing right code wise.
I have a working program, but i think there are more elegant ways to do it.
I tried to look at other peoples multiplexing code, but usually i couldn't make out anything useful, sometimes because a lot of definition trick me, or sometimes the lack of comment and i couldn't even make out which part is doing the multiplexing.
Can anyone point me in the right direction?
I attached the source code (although the formatting doesn't look that nice as in Code Composer Studio)
One (first strange) problem is that in the debugger the 32Khz crystal does not start, but i guess the debugger is on the same ports, (It's got to be)
Any comment and advice is very welcome!
I'm starting out with MCUs ( i have a TI MSP430, because it was the cheapest).
I think I'm getting along fine, but i don't really know how to do multiplexing right code wise.
I have a working program, but i think there are more elegant ways to do it.
I tried to look at other peoples multiplexing code, but usually i couldn't make out anything useful, sometimes because a lot of definition trick me, or sometimes the lack of comment and i couldn't even make out which part is doing the multiplexing.
Can anyone point me in the right direction?
I attached the source code (although the formatting doesn't look that nice as in Code Composer Studio)
One (first strange) problem is that in the debugger the 32Khz crystal does not start, but i guess the debugger is on the same ports, (It's got to be)
Any comment and advice is very welcome!
Attachments
-
3.2 KB Views: 17
-
7.3 KB Views: 40