28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Ports Module<br />

Functional Description<br />

11.5 Functional Description<br />

The initial pin function is determined during reset configuration. The pin<br />

assignment registers (PCDPAR and PEPAR) allow the user to select<br />

between digital I/O or another pin function after reset.<br />

In single-chip mode, all pins are configured as digital I/O by default.<br />

Every digital I/O pin is individually configurable as an input or an output<br />

via a data direction register (DDRx).<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

Every port has an output data register (PORTx) and a pin data register<br />

(PORTxP/SETx) to monitor and control the state of its pins. Data written<br />

to PORTx is stored and then driven to the corresponding PORTx pins<br />

configured as outputs.<br />

Reading PORTx returns the current state of the register regardless of<br />

the state of the corresponding pins.<br />

Reading PORTxP returns the current state of the corresponding pins,<br />

regardless of whether the pins are input or output.<br />

Every port has a set register (PORTxP/SETx) and a clear register<br />

(CLRx) for setting or clearing individual bits in PORTx.<br />

In master mode and emulation mode, ports A and B function as the<br />

upper external data bus, D[31:16]. When the PCDPA bit is set, ports C<br />

and D function as the lower external data bus, D[15:0]. Ports E–I are<br />

configured to support external memory and emulation functions.<br />

In master mode, the function of EB[3:2] is determined by the PCDPA bit.<br />

The function of CS[3:0] is determined by the individual chip select enable<br />

(CSENx) bits.<br />

<strong>MMC2107</strong> – Rev. 2.0<br />

Technical Data<br />

MOTOROLA Ports Module 257<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!