protostack USBasp programmer and avrdude problems... I suspect, your USBasp contains old firmware version, which is not quite compatible with current Avrdude.
You can either try to use older Avrdude (not newer than ver. 5.6) or...
Saturday, 29 May 2010 - 14:00
Parsing a String Slightly different version:
#include
char test_string[] = {
"$GPRMC,161229.487,A,3723.2475,N,12158.3416,W,CHKSUM" };
char *parts[15];
int main(void) {
char *last;
char...
Friday, 11 July 2008 - 18:59
Macros defining defines... I was also looking for something like that. Thanks for ideas.
However, what about "plan c"?
#define BIT(name,pin,dir) \
((*(volatile struct bits*)...
Friday, 23 May 2008 - 14:33
Outsourcing PWM comtrol :idea: So, what about some extra AVRs? Tiny25s for example. Let them do the PWM.
Help with asm loop Well, I'm still a little afraid to give any advice after clawson's last advice :D, however:
If you still use gcc's assembler - you need to "fix up" IO addresses with _SFR_IO_ADDR...
Friday, 14 December 2007 - 23:21
Difference between OUT and SBI No.
Use this, if you want to set PD0 bit, keeping/setting other PORTD bits to 0:
ldi r17, 1<<PD0
out PORTD, r17
Or this, if you want to set PD0 and keep other bits in...
Wednesday, 12 December 2007 - 10:56
Difference between OUT and SBI clawson wrote:Presumably that was a complete waste of my time?
Not completely. I learnt a thing or two :) Thanks!
ATmega16 and 16Mgz Oscillator Check out online fuse calculator. You need to change CKSELx and possibly CKOPT fuse bits.
Which programming software you use? In case of AVRDUDE, command line looks like this:...
I suspect, your USBasp contains old firmware version, which is not quite compatible with current Avrdude. You can either try to use older Avrdude (not newer than ver. 5.6) or...
Slightly different version: #include char test_string[] = { "$GPRMC,161229.487,A,3723.2475,N,12158.3416,W,CHKSUM" }; char *parts[15]; int main(void) { char *last; char...
I was also looking for something like that. Thanks for ideas. However, what about "plan c"? #define BIT(name,pin,dir) \ ((*(volatile struct bits*)...
:idea: So, what about some extra AVRs? Tiny25s for example. Let them do the PWM.
I feel so young here. Vilnius BASIC, 1994
Well, I'm still a little afraid to give any advice after clawson's last advice :D, however: If you still use gcc's assembler - you need to "fix up" IO addresses with _SFR_IO_ADDR...
No. Use this, if you want to set PD0 bit, keeping/setting other PORTD bits to 0: ldi r17, 1<<PD0 out PORTD, r17 Or this, if you want to set PD0 and keep other bits in...
clawson wrote:Presumably that was a complete waste of my time? Not completely. I learnt a thing or two :) Thanks!
'out' changes all bits, 'sbi' and 'cbi' - just one.
You need to buy or build something like this. USBasp's firmware doesn't support UART yet, AFAIK.
Check out online fuse calculator. You need to change CKSELx and possibly CKOPT fuse bits. Which programming software you use? In case of AVRDUDE, command line looks like this:...
Have you configured those pins as output? Looks like input mode with pull-ups.
Pages