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.

Can I use PORTF of ATmega128 as output?

Status
Not open for further replies.

tictac

Full Member level 5
Joined
Oct 22, 2006
Messages
297
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Polland
Activity points
3,572
hi
I use ATMEGA128 in my project,I connect PORTF of atmega128 to a GRAPHICS LCD for command.
I want to know that can I use PORTF as output,I use CODEVISION for programming in C .

by this command in CODEVISION I want to have +5v at pin 0 and 7 .but when I measure this pin's
voltage I see 1 volt over pin 0,7.I turn off THE JTAG of this micro.

DDRF=0xff;
PORTF=PORTF|0x81;

PLEASE HELP ME.
BY REGARDS.
 

atmega128 programming jtag disabled

what is the version number of CVAVR? i remember that there was a wrong define in the mega128.h file in early versions.
The code you wrote should work, double check that the ADC is also disabled, it can also overrule the PORTF as GPIO.

Good luck
 

    tictac

    Points: 2
    Helpful Answer Positive Rating
portf atmega128

I try code similar to the code that I wrote in C, in the BASCOM 1.11.8.3 full version,but I get this response.I dont know why??

by regards

Added after 2 minutes:

I connect pin 1(PEN) of atmega128 to VCC.is it correct?
 

<mega128.h>

Hi,
check the jtag enable tag before programming.
port F doesnt work normally,if u enable jtag programming.disable jtag fusebit and test again.
BR
 

    tictac

    Points: 2
    Helpful Answer Positive Rating
atmega128 adc and jtag

thank you
I disable jtag before
how Can I know that which port is damage and not work?

by regards
 

mega128 port f

How about turning all port to output 1 using the wizard. any strange output voltage might indicate a problem. I have a problem like that before, and it is because the pad is shorted.

Anyway, If you have the *.h or *.lib for the graphic LCD, would you share? Thanx. Ow, dont forget to mention the graphic lcd type.
 

    tictac

    Points: 2
    Helpful Answer Positive Rating
atmega portf jtag

this code is for MG240x128 lcd.
t6963
good luck
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top