Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | Initialization mode of the MSCAN module for MC9SDJ128B


Advertise Here

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Initialization mode of the MSCAN module for MC9SDJ128B - ecm_joe - Jun 10 18:30:00 2004

I've run into an interesting problem with trying to get the MSCAN
module out of initialization mode from startup. In my debugger
environment (Cosmic tools and debugger with BDM-Multilink) I can
bring the MSCAN module out of initialization mode after reset just
fine, but if I try that same piece of code after completely removing
and then reconnecting the power, it doesn't work. It will not bring
the MSCAN module out of initialization mode. I even wrote a loop
that check's the INITAK bit to see if it's set then I clear INITRQ
and loop again. It won't exit out of this loop.

I've scoured the Motorola site, but having found anything that might
help me. Let me know if anybody has any insight.

Thanks

Joe





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Initialization mode of the MSCAN module for MC9SDJ128B - ecm_joe - Jun 10 18:33:00 2004

I've run into an interesting problem with trying to get the MSCAN
module out of initialization mode from startup. In my debugger
environment (Cosmic tools and debugger with BDM-Multilink) I can
bring the MSCAN module out of initialization mode after reset just
fine, but if I try that same piece of code after completely removing
and then reconnecting the power, it doesn't work. It will not bring
the MSCAN module out of initialization mode. I even wrote a loop
that check's the INITAK bit to see if it's set then I clear INITRQ
and loop again. It won't exit out of this loop.

I've scoured the Motorola site, but having found anything that might
help me. Let me know if anybody has any insight.

Thanks

Joe



______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Initialization mode of the MSCAN module for MC9SDJ128B - ecm_joe - Jun 10 20:38:00 2004

Sorry to bother you all, but I figured it out. I was being a
moron. I was bringing the MSCAN out of listen mode and in the
following statement enabling the MSCAN module. Since I was writing
to the CANCTL1 register to bring it out of listen mode before I was
writing to enable the CAN module, I was effectively disabling the
CAN module until the next restart. It worked in Debug mode because
the CANE bit can be set multiple times in debug mode, but only once
in normal mode.

Joe

--- In , "ecm_joe" <jconnors@s...> wrote:
> I've run into an interesting problem with trying to get the MSCAN
> module out of initialization mode from startup. In my debugger
> environment (Cosmic tools and debugger with BDM-Multilink) I can
> bring the MSCAN module out of initialization mode after reset just
> fine, but if I try that same piece of code after completely
removing
> and then reconnecting the power, it doesn't work. It will not
bring
> the MSCAN module out of initialization mode. I even wrote a loop
> that check's the INITAK bit to see if it's set then I clear INITRQ
> and loop again. It won't exit out of this loop.
>
> I've scoured the Motorola site, but having found anything that
might
> help me. Let me know if anybody has any insight.
>
> Thanks
>
> Joe




(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )