<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>You can only set the Mask and Filter in a Configuraton Mode.</div><div><br></div><div>From Datasheet:</div><div>
<div class="page" title="Page 327">
<div class="layoutArea">
<div class="column"><p><span style="font-size: 10.000000pt; font-family: 'Arial'">23.3.1 CONFIGURATION MODE
</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'">The CAN module has to be initialized before the
activation. This is only possible if the module is in the
Configuration mode. The Configuration mode is
requested by setting the REQOP2 bit. Only when the
status bit, OPMODE2, has a high level can the initial-
ization be performed. Afterwards, the Configuration
registers, the Acceptance Mask registers and the
Acceptance Filter registers can be written. The module
is activated by setting the REQOP control bits to zero.
</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'">The module will protect the user from accidentally
violating the CAN protocol through programming
errors. All registers which control the configuration of
the module can not be modified while the module is on-
line. The CAN module will not be allowed to enter the
Configuration mode while a transmission or reception
is taking place. The Configuration mode serves as a
lock to protect the following registers:
</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'">• ConfigurationRegisters<br>
• FunctionalModeSelectionRegisters
• BitTimingRegisters<br>
• IdentifierAcceptanceFilterRegisters
• IdentifierAcceptanceMaskRegisters
• FilterandMaskControlRegisters<br>
• MaskSelectionRegisters
</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'">In the Configuration mode, the module will not transmit
or receive. The error counters are cleared and the
interrupt flags remain unchanged. The programmer will
have access to Configuration registers that are access
restricted in other modes.</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'">-----------</span></p><p><span style="font-size: 9.000000pt; font-family: 'Arial'"> I don't believe that it will work without bad sideeffects.</span></p><div><br></div><div>Bye</div><div>michael</div><div><br></div><div><br></div>
</div>
</div>
</div><div><div>Am 21.09.2013 um 11:32 schrieb Matt Beard OVMS <<a href="mailto:smvo@mxf.org.uk">smvo@mxf.org.uk</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">I may also try modifying the RX0 mask during the 1-second poll so that it cycles through filtering a single SID each time, meaning that it will take 4 seconds for a full update. I don't think this will be an issue as none of this data is fast changing.</span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "></blockquote></div><br></div></body></html>