Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button MAC7200 Datasheet HTML 921Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 922Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 923Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 924Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 925Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 926Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 927Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 928Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 929Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 925 / 976 page
background image
Initialization/Application Information
MAC7200 Microcontroller Family Reference Manual, Rev. 2
Freescale Semiconductor
847
This gives a CONFIG register value of 0x0040
5. Intended use for Port B1: an input interrupt/wakeup signal with the following characteristics:
— Active high interrupt with pull-down
This gives us a CONFIG register value of 0x000B
(Write ’1’ to the PIFR register to ensure that any pending interrupts are cleared)
6. Write 0x0040 to ’Base + 0x040’ and 0x000B to ’Base + 0x042’. Use the following example code
to do this:
In File registers.h:
#define PIM_BASE_ADDRESS
0xFC0E8000/* Example only ! */
/* Following example assumes short is 16-bits */
volatile unsigned short *CONFIG_B0 = (volatile unsigned short *)
(PIM_BASE_ADDRESS+0x0040);
volatile unsigned short *CONFIG_B1 = (volatile unsigned short *)
(PIM_BASE_ADDRESS+0x0042);
In File main.c:
#include "registers.h"
:
:
*CONFIG_B0 = 0x0040;
*CONFIG_B1 = 0x000B;
34.8.2.2
Accessing Data
For maximum flexibility, the value of signals may be driven or sampled both on a pin basis and a port
(16-pin) basis, by the processor core or via a DMA. This section details how to drive and sample pins, as
well as several examples.
34.8.2.2.1
Driving/Sampling an Entire Port
To drive or sample and entire port (16 pins), you must first configure the pins, following the steps outlined
in Section 34.8.2.1, “Initialization.” Once this is done, you may drive a value onto the pins (output mode)
or sample values from the pins (input mode) by writing or reading the appropriate PORTDATA register.
Note that writing to pins that are specified as inputs will have no effect. Conversely, reading from pins that
are specified as outputs will simply return the last value written into the PORTDATA register. In this
manner, it is possible to use the PORTDATA register to drive or sample less than the full 16 pins in a port.
The following example illustrates this point.
Example 34-3. Configure Port B to use the IIC Module, 10 outputs and 4 inputs. Sample the 4 inputs and
drive 0x3FF onto the 10 outputs.
In File registers.h:
#define PIM_BASE_ADDRESS
0xFC0E8000/* Example only ! */
/* Following example assumes short is 16-bits */
volatile unsigned short *CONFIG_B0 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x0040);
volatile unsigned short *CONFIG_B1 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x0042);
volatile unsigned short *CONFIG_B2 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x0044);
volatile unsigned short *CONFIG_B3 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x0046);
volatile unsigned short *CONFIG_B4 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x0048);
volatile unsigned short *CONFIG_B5 = (volatile unsigned short *) (PIM_BASE_ADDRESS+0x004A);



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