1
NXPTM M522XX, KINETIS and i.MX RT / GPIO Pins and Pull-ups in MCF52233
« on: April 11, 2008, 07:48:46 PM »
Hi All !
I'm working in a custom board that uses MCF52233 and I'm having trouble to use PORTTA as GPIO input pin.
Look to my code so you could give your opinion:
Although it's disconnected electrically, the voltimeter always shows 0 volts in the pins, so I always read 0 from the port's register.
When I connect the 3.3 V supply directly to pins of the port, I can read high logic state from my code. I conclude there's a problem with the processor's pull-up resistors.
I've read the Processor's Reference Manual from Freescale and it says that all pins that are configured as GPIO have default enabled pull-up resistors internally, but it seems don't have.
Any tips ?
Best Regards
Eduardo
I'm working in a custom board that uses MCF52233 and I'm having trouble to use PORTTA as GPIO input pin.
Look to my code so you could give your opinion:
Code: [Select]
PTAPAR = 0x00; // First I configure the port for GPIO Mode
DDRTA &= 0x00; // Then I set the direction as input
MyVar = PORTIN_SETTA; // So I try to read the pin state
Although it's disconnected electrically, the voltimeter always shows 0 volts in the pins, so I always read 0 from the port's register.
When I connect the 3.3 V supply directly to pins of the port, I can read high logic state from my code. I conclude there's a problem with the processor's pull-up resistors.
I've read the Processor's Reference Manual from Freescale and it says that all pins that are configured as GPIO have default enabled pull-up resistors internally, but it seems don't have.
Any tips ?
Best Regards
Eduardo