avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How 2 Program Lock Bits???


From: Jason Kyle
Subject: Re: [avr-gcc-list] How 2 Program Lock Bits???
Date: Sun, 24 Feb 2002 10:31:31 +1300

At 23:42 23/02/2002 +0700, Tinggo - Santoso wrote:
Hello, Folks,
I've been doing on Programming The AVR 20pin series like AT90S1200 & AT90S2313 but until now I can't reach the Lock Bits for them. For the Erase Chip & Write Fuse Bits I used the same Delay on the low pulse of WR\ that is 40ms, although the Datasheet told that they have a different Delay. So I try to change my WR\ low pulse Delay for Programming the Lock Bits from 50us to 40ms, but it's still not working.
So are there any recommend from anybody?
I've Interfaced them to AT89C51 as a Driver.
Here is my Programming Step in MCS51 asm:
.... ;From here the OE\,WR\ is High & BS,XTAL1 is Low
 SETB XA1
 CLR XA0
 MOV P0,#$20 ;Command for Erase Chip
 SETB XTAL1
 CLR XTAL1
 CLR XA1
 SETB XA0
 MOV P0,#%11111xy1 ;x=Lock Bit2 & y=Lock Bit1
 SETB XTAL1
 CLR XTAL1
 CLR WE

Is this a typo is it the line above meant to be CLR WR ???

 ACALL DELAY40ms
 SETB WR
....

Thanks be4,
---
 Tinggo S.
 Jl.Raya Manyar Tirtomoyo K-66
  Surabaya
  address@hidden / address@hidden
  / address@hidden
 Office: +62 031 5941045
 Home: +62 0271 647934
 HP: +62 8123153035 / +62 811295799

Jason Kyle


avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]