I'm trying to read the status of PA5 pin. I configured the PADR & PAOR to input-pullup, but i can't get the pin's status on the PADR.. when i do the same thing with PA7 - it works ok... Does any one know why?! thanks Itamar p.s. I work with the inDart evaluation board
Be aware that there is a series resistor between your application and the ISP ports. This may change your signal levels. PA5 is an ISP input and therefore does have a 4k7 resistor in series. Check 'InDart User's Manual' page 6.
In case of debugging with inDART, the ICCCLK and ICCDATA lines are used for communication between the PC and device. For Lite29 these are on port A. I am guessing that when you are manipulating port A you are changing PA6 and PA5 by mistake.(You should not touch even the corresponding PADDR/PAOR bits for these two lines) This could be corrupting data and causing the problem. Hope this helps...