Electronic Components Datasheet Search
  English  ▼

X  

MAC7200 Datasheet(PDF) 572 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) 572 Page - Freescale Semiconductor, Inc

Back Button MAC7200 Datasheet HTML 568Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 569Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 570Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 571Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 572Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 573Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 574Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 575Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 576Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 572 / 976 page
background image
Initialization/Application Information
MAC7200 Microcontroller Family Reference Manual, Rev. 2
494
Freescale Semiconductor
counter = 1) or the PINDATAxx registers (with a minor counter > 1). Note that if a pin is
configured as either Peripheral Mode or General Purpose Input mode, then writing to the
PORTDATA register will have no effect on that particular pin. In this manner, it is possible to
simultaneously write to less than 16 pins in a port, using the PORTDATA register. If, however,
you have General Purpose Output pins in the port that you do not wish to change, you must use the
PINDATAxx registers. In this case, the pins must be contiguous (i.e.-PA3,PA4,PA5,PA6 for
instance)
6. If any interrupt or error handling needs to be configured for the DMA Channel, do this by writing
the appropriate registers in the DMA
7. Write the appropriate DMASERQ register in the DMA to enable the channel
8. Enable the DMA Channel in the DMA Channel Mux (with triggering) by setting the ENBL and
TRIG bits in the appropriate CHCONFIGxx register in the DMA Channel Mux. Choose an
“Always Enabled” source (i.e.-$25 to $2C). This can be done by writing $E5...$EC to the
CHCONFIGxx register. You should only use an “Always Enabled” source for a single DMA
Channel. It is recommended to use $25 for Channel #0, $26 for Channel#1, etc.
27.7.5
Enabling and Configuring Sources
27.7.5.1
Enabling a Source with Periodic Triggering
1. Determine with which DMA channel the source will be associated. Remember that only DMA
channels 0–7 have periodic triggering capability
2. Clear the ENBL and TRIG bits of the DMA channel
3. Ensure that the DMA channel is properly configured in the DMA. The DMA channel may be
enabled at this point
4. In the PIT, configure the corresponding timer
5. Select the source to be routed to the DMA channel. Write to the corresponding CHCONFIG
register, ensuring that the ENBL and TRIG bits are set
Example 27-2. Configure DSPI_B Transmit for use with DMA Channel 2, with periodic triggering capability
1. Write 0x00 to CHCONFIG2 (Base Address + 0x02)
2. Configure Channel 2 in the DMA, including enabling the channel
3. Configure Timer 3 in the Periodic Interrupt Timer (PIT) for the desired trigger interval
4. Write 0xC5 to CHCONFIG2 (Base Address + 0x02)
The following code example illustrates steps #1 and #4 above:
In File registers.h:
#define DMAMUX_BASE_ADDR
0xFC084000/* Example only ! */
/* Following example assumes char is 8-bits */
volatile unsigned char *CHCONFIG0 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0000);
volatile unsigned char *CHCONFIG1 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0001);
volatile unsigned char *CHCONFIG2 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0002);
volatile unsigned char *CHCONFIG3 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0003);
volatile unsigned char *CHCONFIG4 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0004);
volatile unsigned char *CHCONFIG5 = (volatile unsigned char *) (DMAMUX_BASE_ADDR+0x0005);



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