Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button MAC7200 Datasheet HTML 429Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 430Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 431Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 432Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 433Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 434Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 435Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 436Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 437Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 433 / 976 page
background image
FlexBus Application Usage
MAC7200 Microcontroller Family Reference Manual, Rev. 2
Freescale Semiconductor
355
17.7.5
How to Use the External Bus in Single Chip Unsecured Mode
It is possible to use the external bus in Single Chip Unsecured Mode, but the PIM must be setup first. To
do so, set the MODE bits (i.e.-Set Peripheral Mode) in the CONFIG register for each of the following pads:
•
PA0-PA15
•
PC0-PC15
•
PD0-PD2
•
PD5-PD15
and enable the clock to the FlexBus module by setting the EIMCLKEN bit in the PIMCONFIG register
in the PIM. The following code example illustrates this:
#include <stdarg.h>
#include "addr_map_defines.vrh"
#include "pim_registers.h"
void main()
{
typedef volatile unsigned char * REG8;
typedef volatile unsigned short * REG16;
volatile unsigned char
*pim_pointer;
volatile unsigned short *flexbus_pointer;
int i;
// Turn on the FlexBus clock
pim_pointer = (REG8) (PIM_REGISTER_MAP_OFFSET+0x3C2);
*pim_pointer = 0x002;
// Set PIM base address for Port A CONFIG registers
pim_pointer = (REG8) (PIM_REGISTER_MAP_OFFSET+0x01);
for (i=0; i<=15; i++) {
*pim_pointer = 0x80;
pim_pointer=pim_pointer+2;
}
// Set PIM base address for Port C CONFIG registers
pim_pointer = (REG8) (PIM_REGISTER_MAP_OFFSET+0x81);
for (i=0; i<=15; i++) {
*pim_pointer = 0x80;
pim_pointer=pim_pointer+2;
}
// Set PIM base address for Port D CONFIG registers
pim_pointer = (REG8) (PIM_REGISTER_MAP_OFFSET+0xC1);
for (i=0; i<=2; i++) {
*pim_pointer = 0x80;
pim_pointer=pim_pointer+2;
}
pim_pointer=pim_pointer+2;
pim_pointer=pim_pointer+2;
for (i=5; i<=15; i++) {
*pim_pointer = 0x80;
pim_pointer=pim_pointer+2;
}



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