|
Hi, im working with sam7x for 3 years but now i have problems with the PIO which i never had before. I'm using the GCC C Compiler in my design environment with Exclipse. The problem is, port pins which are configured as input are still driving to vcc. Connectet to externial signal sources it looks like two outputs are driving against each other. If i measure the input pins voltage when it is not connectet to an signal source, the voltage is about 2.8V not the full 3.3 (the pullups are disabled) But the Problem only appears on X128 and X256 devices, the X512 works well.
I watched the PIO status registers, the values are ok.
My init code is quite simple. After the ASM based init, i jump to my main function. The first function call is my IO init function. First i configure the reset pin. After that i configure the power manager for the pio. Then i set the io directions. After that, the input ports are still driving. The configuration is done with the include files from atmel.
Any idea what could happen?
I want to test the mpu's with a trail version of the IAR compiler but i had no time yet to do this.
Regards
Florian
|