EPORT and GPIO

cancel
Showing results for 
Search instead for 
Did you mean: 

EPORT and GPIO

1,395 Views
TheEmbeddedGuy
Contributor I
Has anyone had any trouble using EPORT as GPIO? I'm using an MCF5213 and trying to use the EPORT to function as an interrupt driven SPI Slave device. I have IRQ1 setup as the SS pin, IRQ2 as the SPI Clk interrupt triggered on Rising Edge, IRQ3 as an GPIO input MOSI, and IRQ4 as an output MISO. I can interrupt on the Chip Select and all 8 Clocks for each byte however when I read the EPDR and write to EPPDR to read the data in and write the data out I never see changes on the Pin states.
Labels (1)
0 Kudos
1 Reply

26 Views
TheEmbeddedGuy
Contributor I
Nevermind I figured out what I was doing wrong. I was using the EPORT registers for the GPIO reads and writes to IRQ3 and IRQ4. The GPIO functions are mapped to PORTNQ. When I read:
"
• EPORT data register (EPDR)—holds the data to be driven to the pins.
• EPORT pin data register (EPPDR)—reflects the current state of the pins.
"

in the manual I assumed the registers were for both pins configured as GPIO and Interrupts.
0 Kudos