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?
Message
Re: [AVR-Chat] PortC problem
2004-01-11 by Dave VanHorn
Attachments
- No local attachments were found for this message.