Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] PORTA input problems

2004-08-27 by Dave VanHorn

At 04:46 PM 8/27/2004, Jack Valmadre wrote:

>I forgot to mention that I tested pins 0-3 on PORT A as outputs and they
>worked fine.
>I have also tried connecting an LED to the output of the comparator where it
>would usually be connected to the Atmel and it went on/off as expected.
>Jack.

Sounds like you've done all the basics.  
Have you checked that you're actually getting the signals on the chip pins, as opposed to the socket pins, or PCB traces? I've been fooled before, with bad socket pins.

In assembler, I would set the appropriate bits in DDRA as 0 for input, set the PORTA bits high for pullups, and then IN TEMP,PINA and mask as appropriate.

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.