Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button MAC7200 Datasheet HTML 919Page - Freescale Semiconductor, Inc MAC7200 Datasheet HTML 920Page - Freescale Semiconductor, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 923 / 976 page
background image
Initialization/Application Information
MAC7200 Microcontroller Family Reference Manual, Rev. 2
Freescale Semiconductor
845
34.8
Initialization/Application Information
34.8.1
Using a Pin in Peripheral Mode
To use a pin in Peripheral Mode, follow these steps:
1. Using Table 34-6, determine the Port number(s) for the desired peripheral pin(s). Note that, in most
cases, all pins associated with a peripheral should be switched to Peripheral Mode for proper
operation of the peripheral.
2. Using Table 34-11, determine the correct CONFIG register(s) for the selected port number(s).
3. Determine whether a pull-up or pull-down is required.
4. Write 0x80, 0x88 or 0x8C to the selected CONFIG register(s). Note that, in Peripheral Mode, the
values of all bits except the MODE and PULL[1:0] bits are unused.
5. If required, enable the peripheral. See the documentation for the peripheral for more information
on how to do this.
Example 34-1. Enable the IIC module
1. For the IIC module, enable both the SDA and SCL pins. Using Table 34-6, determine that these
pins are located on Port B0 and B1, respectively.
2. Using Table 34-11, determine the addresses for Port BO and B1 to be ’Base + 0x0040’ and ’Base
+ 0x0042’, respectively.
3. Write 0x008C to ’Base + 0x0040’ and 0x008C to ’Base + 0x0042’. Alternatively, it is possible to
write 0x0080 to both addresses (no Pull-up functionality). 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 = 0x008C;
// Pull-up enabled
*CONFIG_B1 = 0x008C;
// Pull-up enabled
4. If required, enable the IIC module by writing to the appropriate register in the IIC register map.



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