Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | FlexCAN msg buffer Control/Status register initial values:

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

FlexCAN msg buffer Control/Status register initial values: - Corey, Rick - Aug 2 15:18:00 2005



FlexCAN msg buffer Control/Status register initial values:

Hi All

How are people initializing the 56F8300/E  FlexCan Control/Status register "CODE" field for mailboxes that are not in use? 

I have been setting these to "1000" , meaning "Transmit Buffer, but not ready for Transmit".  I had no problems I was aware of.  I reasoned that an empty Transmit mailbox was somehow "safer" and "less busy" than a Receive mailbox that was marked inactive. 

Now a phrase in the manual makes me think that maybe "0000" would be a better way to initialize unused mailboxes.
Would anyone venture a guess?

(I have set FCMAXMB to "3" which seems to mean "0..3" not "0..2", since my Mailbox#3 can be made active.)

BACKGROUND:

I happen to be chasing some bug that looks like random changes of a Receive message filter.
(It is probably a rouge pointer overwriting the filter FCMB2_ID_LOW, until I learn differently.)

While searching for clues, I noticed a phrase in the Freescale Peripheral Manual for 56800/E:

The Control/Status word of all MBs must be written either as active or inactive MB

I'm guessing that "inactive" means CODE value "RX NOT ACTIVE".

Has anyone used a "CODE" value in the
FlexCAN message Buffer Control/Status register of either
"1000" (TX but not Ready") or "0000" (RX but not active)? 

Would anyone guess which one is "better"?

Thanks in advance.


Msg Buffer registers:  Figure 7.3
        the field "CODE"  is bits 4-7               &n bsp;               & nbsp;      page 7-6 or PDF page 200

CODE values:  Table 7-2 and 7-3               &n bsp;               & nbsp;        page 7-7 or PDF page 201

Section 7.6.10:  FlexCAN Initialization / Reset Sequence        page 7-17  or PDF page 211


Rick Corey
Sr. Software Engineer





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