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.

Driving 4 Wire Resistive touchscreen with AVR ATMEGA128(PORTF Problem)

Status
Not open for further replies.

nimra

Newbie level 5
Joined
Jul 31, 2011
Messages
9
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
Tehran
Activity points
1,349
hi all
because of 4Kb ram, 7 I/O ports and reasonable price of ATMEGA128 i've selected it
after creating smd to dip adapter and programming the MCU i faced a problem that i changed M103C fusebit,however problem solved but i found that PORTF cannot act as I/O
i read many topics in this forum about this issue but none of them gotten a logical result
i want to driving four wire resistive touch panel,this type of touchscreens needs two output pin and two input pin(reading ADC0 for coordinating x or y at a moment
unfortunately ADC pins are placed on PORTF
how can i use two pins of PORTF as output and two of them as input for reading adc???
my compiler is codevision 2.5.0
regard
 

I assume you have disabled the M103C compatibility mode so it it not a problem.
Have you disabled the JTAGEN fuse?
 

    V

    Points: 2
    Helpful Answer Positive Rating
thanks guy
yeah:-D
i had disbled jtag and m103 fusebits before
atmega128 has two sets of vcc and gnd pins,because of connecting only one set of them MCU was not working quite right (all the ports worked fine except F and G)
everyone please note that to connect both of them otherwise you will face some problems like this
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top