Been a while since I used these little devices, I wanted to use an attiny to condition a signal in a project, however the pullup has me stumped.
I am only getting 2.5V when measured with a meter on an input line with pullup and nothing connected to it.
A external resistor would take care of the issue ofcause, but the PCB is made :)
Is this a know issue with attiny having very weak pullups, or am I doing this the wrong way ?
#include <avr/io.h>
#include <util/delay.h>
#include <avr/wdt.h>
#include "AVR035.h"int main(void)
{// wdt_reset();
// wdt_enable(WDTO_15MS);CLEARBIT(DDRA,0); //Input
SETBIT(PORTA,0); //Pullup/* commented out code */
}
.lss
0000004e <main>:
int main(void)
{
// wdt_reset();
// wdt_enable(WDTO_15MS);
CLEARBIT(DDRA,0); //Input
4e: d0 98 cbi 0x1a, 0 ; 26
SETBIT(PORTA,0); //Pullup
50: d8 9a sbi 0x1b, 0 ; 27
CLEARBIT(PORTA,7);_delay_ms(1);
}
*/
52: 80 e0 ldi r24, 0x00 ; 0
54: 90 e0 ldi r25, 0x00 ; 0
56: 08 95 ret00000058 <_exit>:
58: f8 94 cli0000005a <__stop_program>:
5a: ff cf rjmp .-2 ; 0x5a <__stop_program>