| Electronic Components Datasheet Search |
|
MAC7200 Datasheet(PDF) 433 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MAC7200 Datasheet(HTML) 433 Page - Freescale Semiconductor, Inc |
|
433 / 976 page ![]() 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; } |
|
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 |
| 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 |