Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ATMEGA128 PORTC malfunctioning

Status
Not open for further replies.

saurabh.s

Newbie level 4
Joined
May 22, 2009
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
portc

Hi
I tried to send the step signlas to the driver of stepper motor using PORTC of ATMEGA128. The driver does not consume much current(less than 2m A).
The stepper didnot run. After analysis I figured out that the pins 2,3 of PORTC are not working as intended. Following are the observations.
1.When only one of the PIN2,3 is made High ( PORTC is o/p and I'm writing(via code) 1 to any one of PIN2,3) , the output voltage at both the pins is 2.02V.
2. The logical zero is o/p at both PINC2,3 when I write 0 to both pins.
3. Logical 1 is o/p at both pins when I write 1 to both pins.

I have not used PORTC as external memory interface and hence have released all the pins of PORTC from functioning of extended address.
Why could this have happened?
 

atmega128 porta

dear friend
make sure you are disabled the jtage from fusebits.
if jtage enabled the portc did not work correctly.
 

portc not working

As per given in the datasheet of atmega 128, the alternate function of PORTC or any of its pins is not jtage interfacing but to provide the address to connect to connect to external memory.
I am confused because of this type of behavior!

Pls reply to following query as well..

If possible, please post the code to do external memory interfacing using atmega 128 PORTA.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top