Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] PortC problem

2004-01-11 by Larry Barello

PC2-5 are the JTAG port.  You need to disable that feature in the fuse
settings (programmer, fuse page) to enable those bits as normal i/o bits.

Cheers!

-----Original Message-----
From: Dave VanHorn [mailto:dvanhorn@cedar.net]
Sent: Sunday, January 11, 2004 8:44 AM
To: AVR-Chat@yahoogroups.com; AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] PortC problem


At 11:36 AM 1/11/2004 -0500, Dave and Connie wrote:
>My son is trying to use a Mega16 to drive LEDs on PortC using Bascom.  Bits
>0,1,6,7 work but 2,3,4,5 do not.  The port is set up with Config Portc =
>output.  The same code works on PortA but he does not want to use that port
>as it is the A/D converters.  The LED code will eventually become stepper
>code.  He has tried the code on two chips with the same result.

Have you tried replacing the chip?

It's odd that only the end bits are working.
I don't have a M16 sheet handy, but the M128 lists only address for SRAM as
alternate functions for port c.

Alternatively, maybe the byte being output is being masked or otherwise
corrupted somewhere?





Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/AVR-Chat/

To unsubscribe from this group, send an email to:
 AVR-Chat-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.