Discussion Title | Created date |
---|---|
How to get a 4-bit ADC potVal? When I want an 8-bit value from the ADC I set ADLAR = 1, but how can I get the 4 bit result? The 8-bit result are bits 9 to 2. Which bits do I need for 4 bit? 9 to 6 or 5 to 2? Or... |
Tuesday, 3 February 2009 - 11:43 |
How to blind repeating functions in table? Is there a way to not show the repeated T/2- part in front of each value in this table? INTENS: .dw T/2-0,T/2-1,T/2-2,T/2-4,T/2-7,T/2-13,T/2-20,T/2-33,T/2-70,T/2-100 .dw T/2-120... |
Monday, 2 February 2009 - 22:31 |
How to decrement a 24 bit value? (ASM) I wonder, how can I decrement a 24 bit value in ASM? subi WL, low(1) sbci WH, high(1) sbci XL, low(1) :?: |
Thursday, 29 January 2009 - 17:56 |
How to prevent LED flicker when using ADC? How can I prevent flickering of LED when ADC is free running? I generate a PWM signal by software only, and poll the ADC just before PWM signal goes into pause period. When I turn... |
Tuesday, 13 January 2009 - 13:12 |
Using PA2 as toggle bit safe? Is using PA2 as a toggle bit in an ATtiny2313 safe, because it's also the reset pin, but PA2 not used when it's a reset pin? |
Saturday, 15 November 2008 - 15:46 |
Convert value to MSBits I try to convert a value to most significant bits. For example, when value is 2, outcome must be 11000000. ldi temp, 0x80 genNext:asr temp dec value brne genNext lsl temp A... |
Saturday, 25 October 2008 - 21:33 |
What means packed BCD? Want to convert bin2bcd (3 digits), but what means packed BCD? bin2bcd8: clr tBCDH ;clear result MSD bBCD8_1:subi fbin,10 ;input = input - 10 brcs bBCD8_2 ;abort if carry set... |
Tuesday, 21 October 2008 - 17:28 |
KS0108 LCD probs Try to run the AVR @ 8 MHz, and now this problem occurs. What is the problem? Why left chip works, and right not? (have tried individually init, does not matter.) Looks like the... |
Thursday, 16 October 2008 - 23:29 |
PWM sound in Lego motor How can I get rid of the digital PWM sound in a Lego motor controlled by an AVR ATmega8-16PU? PWM frequency is about 2kHz. Do I need lower or higher frequency? It's software... |
Wednesday, 15 October 2008 - 16:27 |
255-(value-1), (value-255)+1 will not work subi temp, 1 ;value - 1 mov data, temp ;save value - 1 ser temp ;temp = 255 sub temp, data ;255 - value When I try. (value-255)+1 Will not work. Have to fill the upper... |
Saturday, 11 October 2008 - 22:54 |
Cannot clear 384 bytes SRAM I try to clear 384 bytes of SRAM ATmega8-16PU, but the second 128 bytes are not cleared. Is it the code, or a hw bug? clr YH ldi YL, SRAM ldi XH, high(384) ldi XL, low(384... |
Tuesday, 30 September 2008 - 21:06 |
How high is impedance i/o and capacitance LED? How high is input impedance of an i/o of an ATtiny13? And how much capacitance had a transparent 3mm red LED? I wonder how much time does it take to discharge the LED (biased) on... |
Thursday, 14 August 2008 - 21:26 |