Type in the full discussion title or a part of it.
Discussion Title Created date
how to #define an asm loop
I want to do something like this. #define DELAY_1US asm("ldi r19, 3\n oneUS: \n dec r19\n brne oneUS\n"); but using my define more than once gives me the oneUS is already...
Friday, 11 June 2010 - 14:38
section of code to asm
Anyone know of a tool to convert a C file or section of code to asm?
Saturday, 15 May 2010 - 18:18
good resource for ATMEGA168 or 328's ?
I have seen ebay get as low as 3.50 a pcs for 168's and mouser get as low as 2.80 but never in stock. So far no-one carries 328's that I can find. Does anyone here know of a place...
Sunday, 11 April 2010 - 19:23
using port d as ADC, not going to work, right? atmega168
I just wanted to ask before I create an adapter. I have a device that connects to a db9 that is fixed on my board. In this case I need to check a pot connected to Pd3 on my...
Wednesday, 10 March 2010 - 03:27
Can pull a pin low?
I seem to have a predicament I cant solve. I have a atmega168 and I'm running some code like so. while(1) { PORTB &= ~0x3f;// DDRB |= 0x3f; } PORTB &= ~0x3f;// DDRB |= 0x3f;...
Monday, 8 March 2010 - 22:23
help with math
I have code that is trying to make a curve. My product in this case is a usb device. I dont have any form of out put other then that. The results are always 0, and I;m stuck...
Monday, 1 February 2010 - 21:30
reading atari pot, not getting linear
I'm using a 555 timer to read an atari paddle. I get a vary radical exponential reading. Like 12:0 to 9:00 is a difference of 300us, 9:00 to 6 is 100us, and 6:00 to 3 is 50us. I...
Wednesday, 27 January 2010 - 04:15
an invention
I was not really sure where to ask this but I figure a few of the members here may have done this. I have designed a USB device I'm working on producing in large volume. My...
Tuesday, 22 December 2009 - 18:06
Error: illegal opcode jmp for mcu atmega8
really? Is there another way to jump with 3 ticks? sbic PINx,SCKA jmp analog_nextBit jmp analog_nextBit I guess this is the same.. but its read in at the wrong time.. nop...
Friday, 27 November 2009 - 16:08
ASM questsion.
I have this sbic PINx,PIN5;( skip if 0 ) 1 or 2 rjmp nextBit; 2 rjmp nextBit; 2 nextBit: sbic PINx,PIN4 sec st X+,r18 clr r18 rol r18 This gives me 4 or 5 clocks before...
Saturday, 24 October 2009 - 15:38
need a little bit of help with sbic
I have never really had trouble using skip conditionals before but I'm really confused here.. I have PINx defined as PORTC and PIN5 as 5. As I understand it, it will do the debug...
Friday, 23 October 2009 - 17:58
help with asm and a global var.
I didn't think this was going to be as tricky as its is for me. But I just want to set a variable to zero. I have it declared in my S files as .extern rejected ans tried a few...
Thursday, 22 October 2009 - 20:51