|
Re: Atmega32 port c pins
Quote:
Originally Posted by neha
my team has designed a programmer for atmega32. all ports can be programmed successfully however pins 2,3,4,5(starting with 0) of portc cannot be programmed. we wrote a flash led programmer however these mentioned pins do not show any variation. they are showing a constant high. pls help us at the earliest.. thanks
|
How are you programing the device? There are multiple methods. These methods are ISP, JTAG, DebugWire, Parallel, and High Voltage. Im suspicious of the fact that pins 2,3,4, and 5 form the basis of JTAG programing.
EDIT:
I think I figured it out. You have JTAG programing enabled. The datasheet says:
Quote:
If the JTAG interface is enabled,
the pull-up resistors on pins PC5(TDI), PC3(TMS) and PC2(TCK) will be activated even if a reset
occurs.
|
Hence the reason why the pins don't change value. Try disabling it through the fuse settings.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
Last edited by Adam Y. : 18-01-2008 at 12:02.
|