I checked the voltage on the pins and they were all 4.87-4.98V, the same as the outputs. Activating pull-ups didn't make any difference. This code: sensors = PINA; sensors &= 0xF0; didn't compile any differently to: sensors = PINA & 0xF0; Jack. ----- Original Message ----- From: Dave VanHorn To: AVR-Chat@yahoogroups.com ; AVR-Chat@yahoogroups.com Sent: Saturday, August 28, 2004 8:15 AM Subject: Re: [AVR-Chat] PORTA input problems 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. Yahoo! Groups Sponsor ADVERTISEMENT 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 the Yahoo! Terms of Service.
Message
Re: [AVR-Chat] PORTA input problems
2004-08-27 by Jack Valmadre
Attachments
- No local attachments were found for this message.