Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Problem During ISP Programming

Re: [AVR-Chat] Problem During ISP Programming

2008-03-07 by rakesh modi

Thanks for ur reply. But the main Problem is if  i write code more than given below. I  cannot downnload the code. So plz tell me the solution

.include "m16def.inc"
LDI R16, 0X07
OUT SPL, R16
LDI R16, 0X00
OUT SPH, R16
//LDI R16, 0X5F
//OUT SPL, R16
//LDI R16, 0X08
//OUT SPH, R16
HERE:
LDI R17, 0XFF
OUT DDRA, R17
LDI R17, 0XFf
OUT PORTA,R17
CALL DELAY
//CALL DELAY
nop

//cpi r17, 0x00
LDI R17, 0XFF
OUT DDRA, R17
LDI R17, 0XFe
OUT PORTA,R17
CALL DELAY
//CALL DELAY

nop

//h:rjmp h
RJMP HERE
//DELAY1:
//ldi R20,0x01
//ZX:CALL DELAY
//DEC R19
//CPI R19, 0X00
//BRNE ZX
//RET
DELAY:
//ldi R20,0x01
LDI R19, 0X14
w:ldi R18, 0X01
XY:DEC R18
CPI R18, 0X00
BRNE XY
cbi PORTA, 0
SBI PORTA, 1
DEC R19
CPI R19, 0X00
BRNE W
cbi PORTA,1
sbi PORTA,0
//DEC R20
//CPI R20, 0X00
//BRNE zx
RET

 
R.P.Modi
Show quoted textHide quoted text
----- Original Message ----
From: John Samperi <samperi@ampertronics.com.au>
To: AVR-Chat@yahoogroups.com
Sent: Friday, 7 March, 2008 2:33:55 AM
Subject: Re: [AVR-Chat] Problem During ISP Programming

At 08:43 PM 6/03/2008, you wrote:
> It gives me an error of clock frequency.

This has NOTHING to do with your code. You have the ISP
frequency set too high. Set it for 250KHz and WRITE it.

Regards

John Samperi

************ ********* ********* ********* ********* ********
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495 Fax (02) 9674-8745
Email: john@ampertronics. com.au
Website http://www.ampertro nics.com. au
*Electronic Design * Custom Products * Contract Assembly
************ ********* ********* ********* ********* ********


 


      5, 50, 500, 5000 - Store N number of mails in your inbox. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html

[Non-text portions of this message have been removed]

Re: [AVR-Chat] Problem During ISP Programming

2008-03-07 by John Samperi

At 03:45 PM 7/03/2008, you wrote:
>  So plz tell me the solution



>This has NOTHING to do with your code. You have the ISP
>frequency set too high. Set it for 250KHz and WRITE it.


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.