Electronic Components Datasheet Search
  English  ▼

X  

MAC7200 Datasheet(PDF) 608 Page - Freescale Semiconductor, Inc

Part # MAC7200
Description  MAC7200 Microcontroller Family Reference Manual
PDF  976 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MAC7200 Datasheet(HTML) 608 Page - Freescale Semiconductor, Inc

Back Button MAC7200 Datasheet HTML 604Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 605Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 606Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 607Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 608Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 609Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 610Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 611Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 612Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 608 / 976 page
background image
The Generic FlexCAN2 Module
MAC7200 Microcontroller Family Reference Manual, Rev. 2
530
Freescale Semiconductor
is transmitted according to the CAN protocol rules. FlexCAN transmits up to eight data bytes, even if the
DLC (Data Length Code) value is bigger.
28.2.7.4
Receive Process
To be able to receive CAN frames, the CPU must prepare one or more Message Buffers for reception by
executing the following steps:
•
Write ‘0000’ to the Code field of the Control and Status word to keep the MB inactive
•
Write the ID word
•
Write ‘0100’ to the Code field of the Control and Status word to activate the MB
The first and last steps are mandatory. The first write to the Control and Status word is important in case
there was a pending reception or transmission. The write operation immediately deactivates the MB,
removing it from any currently ongoing arbitration or matching process, giving time for the CPU to
program the rest of the MB (see Section 28.2.7.6.1, “Message Buffer Deactivation”). Once the MB is
activated in the third step, it will be able to receive CAN frames that match the programmed ID. At the end
of a successful reception, the MB is updated by the MBM as follows:
•
The value of the Free Running Timer is written into the Time Stamp field
•
The received ID, Data (8 bytes at most) and Length fields are stored
•
The Code field in the Control and Status word is updated (see Table 28-7 and Table 28-8 in Section
Section 28.2.6.2, “Message Buffer Structure”)
•
A status flag is set in the Interrupt Flag Register and an interrupt is generated if allowed by the
corresponding Interrupt Mask Register bit
Upon receiving the MB interrupt, the CPU should service the received frame using the following
procedure:
•
Read the Control and Status word (mandatory – activates an internal lock for this buffer)
•
Read the ID field (optional – needed only if a mask was used)
•
Read the Data field
•
Read the Free Running Timer (optional – releases the internal lock)
Upon reading the Control and Status word, if the BUSY bit is set in the Code field, then the CPU should
defer the access to the MB until this bit is negated. Reading the Free Running Timer is not mandatory. If
not executed the MB remains locked, unless the CPU reads the C/S word of another MB. Note that only a
single MB is locked at a time. The only mandatory CPU read operation is the one on the Control and Status
word to assure data coherency (see Section 28.2.7.6, “Data Coherence”).
The CPU should synchronize to frame reception by the status flag bit for the specific MB in one of the
IFLAG Registers and not by the Code field of that MB. Polling the Code field does not work because once
a frame was received and the CPU services the MB (by reading the C/S word followed by unlocking the
MB), the Code field will not return to EMPTY. It will remain FULL, as explained in Table 28-7. If the
CPU tries to workaround this behavior by writing to the C/S word to force an EMPTY code after reading
the MB, the MB is actually deactivated from any currently ongoing matching process. As a result, a newly
received frame matching the ID of that MB may be lost. In summary: never do polling by reading directly
the C/S word of the MBs. Instead, read the IFLAG registers.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com