Sign in

username:

password:



Not a member?

Search m68hc11



Search tips

Subscribe to m68hc11



m68hc11 by Keywords

27c256 | 4K81H | 68HC11A1 | 68HC11P1 | 68hc24 | 68HC711E9 | 68HC811 | 8255 | A2D | ADC | ADC12138 | Am85C30 | BRCLR | Buffalo | CMOS | EEPROM | EPROM | Ethernet | EVB | EVBU | HC11E1 | HC11E9 | HC711E9 | Horray | ImageCraft | IRQ | Keypad | LCD | MC68HC11D0FN | MC68HC11E1CFU3 | MC68HC11F1 | MC68HC711E9 | MC68HC711E9CFN2 | Microcore11 | Microstamp11 | Minikit | NVRAM | PSD | PSD8xx | PSD9xx | PT1000 | RS232 | RTS | RXD | SPI | SRAM | TXD | Watchdogs | XIRQ

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | | reprogramming an OTP device

reprogramming an OTP device - Torgeir Veimo - Jun 23 19:17:00 2004

I have a legacy hc11 application in an 68hc711e9 with OTP ROM which has
at one point an instruction that is

(raw instruction bytes $20FE)

loc BRA loc

ie an infinite loop. What bytes can I reprogram these two bits to
function as to avoid this loop? NOP is out of the question as it is $21.
I can only turn bits to zero when (re)programming an OTP device, right?

--
-Torgeir






(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )


Re: reprogramming an OTP device - Robert Mitchell - Jun 23 20:04:00 2004

Have you considered $2000 - should branch to the next instruction, i.e.
behave as a 2 byte NOP.

On Thu, 2004-06-24 at 10:17, Torgeir Veimo wrote:
> I have a legacy hc11 application in an 68hc711e9 with OTP ROM which has
> at one point an instruction that is
>
> (raw instruction bytes $20FE)
>
> loc BRA loc
>
> ie an infinite loop. What bytes can I reprogram these two bits to
> function as to avoid this loop? NOP is out of the question as it is $21.
> I can only turn bits to zero when (re)programming an OTP device, right?
--
Bob Mitchell
PO Box 68 Phone (+61 2) 9449 4736
(21 Hudson Close) Fax (+61 2) 9449 1976
Turramurra, 2074 Mobile 0411554117
NSW, Australia Email





(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )

Re: reprogramming an OTP device - Tony Papadimitriou - Jun 24 3:07:00 2004

Turn the $20FE to $2000 to BRA to the next opcode, in effect making this a NOP.
----- Original Message -----
From: "Torgeir Veimo" <>
To: <>
Sent: Thursday, June 24, 2004 3:17 AM
Subject: [m68HC11] reprogramming an OTP device > I have a legacy hc11 application in an 68hc711e9 with OTP ROM which has
> at one point an instruction that is
>
> (raw instruction bytes $20FE)
>
> loc BRA loc
>
> ie an infinite loop. What bytes can I reprogram these two bits to
> function as to avoid this loop? NOP is out of the question as it is $21.
> I can only turn bits to zero when (re)programming an OTP device, right?
>
> --
> -Torgeir




(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )

Re: reprogramming an OTP device - Torgeir Veimo - Jun 24 3:22:00 2004

Robert Mitchell wrote:

> Have you considered $2000 - should branch to the next instruction, i.e.
> behave as a 2 byte NOP.

Thanks, this was what I was looking for.

Normally, only a reset or a nonmaskable interrupt can take regain
control of the hc11 in these cases, right?

--
-Torgeir





(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )

Re: reprogramming an OTP device - Tony Papadimitriou - Jun 24 3:28:00 2004

An infinite BRA loop is sometimes used after initialization to let some
interrupt take control periodically. It doesn't have to be non-maskable.
Often, the IDLE task in an RTOS is a BRA * loop.
----- Original Message -----
From: "Torgeir Veimo" <>
To: <>
Sent: Thursday, June 24, 2004 11:22 AM
Subject: Re: [m68HC11] reprogramming an OTP device > Robert Mitchell wrote:
>
> > Have you considered $2000 - should branch to the next instruction, i.e.
> > behave as a 2 byte NOP.
>
> Thanks, this was what I was looking for.
>
> Normally, only a reset or a nonmaskable interrupt can take regain
> control of the hc11 in these cases, right?
>
> --
> -Torgeir




(You need to be a member of m68hc11 -- send a blank email to m68hc11-subscribe@yahoogroups.com )