Format will be the last two digits of the yearechase wrote:
1) What is format of years? Years in bytes since 1990?
so 2012 = 12 retrieved.
Not sure sure, some one different ot me..i.e clever would be able to answer that one.echase wrote: 2) Mousing over the MIAC LCD window (without clicking) under simulation can cause the LCD numbers to change. Why?
Full stop is automatically generated if your using local variables.echase wrote: 3) Please can you explain the purpose of the full stop and MOD (looks like “do this till counted up to this number”) in the following syntax from Ben’s underfloor programme?
Local variables save precious memory since space taking variables are destroyed one the macro is exited.
With MOD as soon as the variable reaches the MOD number a 0 is returned.
so you will get
0
1
2
0
1
2
0
etc
echase wrote: 4) If I want this expression to be true
IF C<A or B
if byte C is less than byte A or byte B do I use OR or || ?
Recommended format is:
(C < A) || (C < B)
How the expansion modules work is the CAN side is totally transparent.echase wrote: 5) When complied I get 37 errors like
MIAC_v1.0.c(516): Illegal redefinition of symbol: CAN_CHIPSEL
MIAC_v1.0.c(544): Illegal redefinition of symbol: TXB1DB7_VAL
Looks like some CAN function is not initializing even though I did use the CAN Init function but none of the CAN send/TX/Rx ones.
There is no need to initialize the can component at all!
When you initialize the expansion module the CAN part is then automatically initialized for you.
Hope this helps
Martin