254 is easy enough to explain...
This is what I suspect is happening:
Count of event is stored in an 8-bit address which can hold the values 0 to 255. However there is most likely a control single event in storage which means it never really gets to zero and this reduces the maximum value to 255 - 1 or 254. This could be because the first event logged is the clearing or connection of the unit and so it is ignored.
So once it gets to 254 its full up and thus logs a permanent fault.
There is a second and even more likely reason. Again assuming 8 bit storage with the first bit reserved for a higher purpose. Each time an event occurs a bit is set from 0 to 1. So you go from 00000000 to 11111110 meaning 7 events have been logged. When the 8th event is logged the last bit is set and the 3 lights come on.
If you want I can go into 2's compliment addition and binary shifting which may also explain this, but I suspect you don't want that so I'll go open a Pale Ale instead
MY15 Discovery 4 SE SDV6
Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]
Bookmarks