EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Bootstrap Mode

Started by Huey Fen October 31, 2005
Huey Fen wrote:
> I've got the MCU runs in bootstrap mode. Special thanks to Tony Papadimitriou and and Mike McCarty for supplying me such precious information.
> But I've got another problem.
> I would like to increase the acc A from 1 to 10 and output the value of acc A at Port B. The
> program needs to wait for 1 sec for every increment of acc A.
> However, the Port B can only output acc A with value of 10. I wonder why the hardware was
> unable to output from value of 1 to 10.
> Can anyone tell me the trick? Thanks a lot.

This sounds very much like a homework problem. Be assured that,
if it is, your professor is reading this.

PORTB has no problem outputing the numbers you want. I can think
of one very obvious reason your program might be misbehaving.

I'm guessing that the technique you use for waiting a second
between outputs is not actually waiting, but that your whole
program is running in a few microseconds, and what you see is the
last output.

Try making the program run forever instead of stopping at 10,
and watch the most significant bit. Try using an oscilloscope
if possible. Lessee, what would the frequency be?

Suppose the code looks like this... loop:
staa PORTB
inca
<try to delay, but fail>
bra loop

Suppose the delay actually only uses 10 cycles instead of a second.
The rest of the code is 4+2+10+3 = about 20 cycles. Presuming 8MHz
crystal (2MHz clock) that's 10 microseconds. Multiplying by 256 for
the 8 bit accumulator, that would give you 2560 microseconds per
cycle. Too fast to see with a voltmeter. Yes, you need an oscilloscope.

Or connect the MSb to an amplifier and a speaker. You could hear it.
That would be 390 Hz. An easily heard tone.

Anyway, I suggest getting the delay function working first, then
change the program to stop.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!



----- Original Message -----
From: "Art Burke" <mathtutoring@math...>
To: <m68HC11@m68H... > I'm using Tx, Rx, and Ground on the DB9 serial cable.

> What am I doing wrong? Several years ago I think that I went through this
> same thing, but can't remember if I added a wire or ??
>
> Not sure.

Hmm, could it be that you needed to tie DB9 pins 1,4,6, and 8 together (you know
to fake RTS/CTS, etc.).

> Art

tonyp@tony...


You also need to tie Port E pin 1 to ground i.e.. PE0 =>0v.
The first lines of BUFFALO checks the status and either runs BUFFALO or
jumps to the start of EEPROM
Trev

-----Original Message-----
From: m68HC11@m68H... [mailto:m68HC11@m68H...] On Behalf
Of Tony Papadimitriou
Sent: Friday, November 04, 2005 5:40 AM
To: m68HC11@m68H...
Subject: Re: [m68HC11] Can't get Buffalo to run ----- Original Message -----
From: "Art Burke" <mathtutoring@math...>
To: <m68HC11@m68H... > I'm using Tx, Rx, and Ground on the DB9 serial cable.

> What am I doing wrong? Several years ago I think that I went through
> this same thing, but can't remember if I added a wire or ??
>
> Not sure.

Hmm, could it be that you needed to tie DB9 pins 1,4,6, and 8 together
(you know to fake RTS/CTS, etc.).

> Art

tonyp@tony... Yahoo! Groups Links



Well, got it to run. I think that I had a bad RS232 cable.
I'd like to have the talker reassembled so it will run on boot-up.

I guess I need to have the chip run in the expanded mode?
Also, does anyone know of any asm files for talkers for the A1FN that I can

Change the addresses of so I can run it in the EEPROM? What is the address
of the EPROM (EEPROM?)?
Thanks for all the help.
Art


> What is the address of the EPROM (EEPROM?)?

A1FN only consists of EEPROM, which is located at $B600-$B7FF (512bytes)

---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.



Isn't the first 255 bytes $0000 to $00FF ram space?

Isn't Buffalo located in the chip?
Thanks for the address of the EEPROM,
Art
_____

From: m68HC11@m68H... [mailto:m68HC11@m68H...] On Behalf Of
Huey Fen
Sent: Friday, November 04, 2005 10:03 AM
To: m68HC11@m68H...
Subject: Re: [m68HC11] Got the 68hc11A1 to run
> What is the address of the EPROM (EEPROM?)?

A1FN only consists of EEPROM, which is located at $B600-$B7FF (512bytes)

---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
SPONSORED LINKS Freescale
<http://groups.yahoo.com/gads?t=ms&k=Freescale+semiconductor+inc&w1=Freescal
e+semiconductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&c=3&s&.si
g=RqO56PcR1oI8JNE12-IAGw> semiconductor inc

Microcontrollers
<http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Freescale+semicondu
ctor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&c=3&s&.sig=dRA29rsWk
UumfRsxo6-RZA>

Pic
<http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Freescale+semic
onductor+inc&w2=Microcontrollers&w3=Pic+microcontrollers&c=3&s&.sigxOIQ
UqQxgw2ZVOBhmKOGw> microcontrollers
_____

> Terms of Service.
_____


I got my 68HC11A1FN to work, sometimes :-(

It seems that I can get it to work, maybe 50% of the time.
Using the exact same program, PCBUG11, and a program named Moslo (to slow
the PC down),

I can get the talker to come up about the time.
The other half I get communication timeouts, memory read fail errors, and
such.
What would cause this? I cant find any loose wires.
Thanks,
Art

PSCan I get JBUG11 to work with this? If so, how would I get the right
talker downloaded to the processor, and what commands would I use?


Hi Art --

I was thinking about you this A.M. when I realized I hadn't heard from you for a while.
----- Original Message -----
From: Art Burke
To: m68HC11@m68H...
Sent: Friday, November 04, 2005 8:52 AM
Subject: [m68HC11] Got the 68hc11A1 to run Well, got it to run. I think that I had a bad RS232 cable.

> Well, shit happens to all of us!!!!!!!!!!!!!!!


I'd like to have the talker reassembled so it will run on boot-up.

I guess I need to have the chip run in the expanded mode?

Look at John Beaty's manual for the JBug11. I think he permits reassembly of the talker and burning it into eeprom. Also, does anyone know of any asm files for talkers for the A1FN that I can

Change the addresses of so I can run it in the EEPROM? What is the address
of the EPROM (EEPROM?)?

> You need to get yourself into the E family of parts to get EPROM (E9K EPROM or E20= 20K). The A family parts are obsolete as are the E2 parts.
Bob Smith
Thanks for all the help.
Art ------
YAHOO! GROUPS LINKS

a.. ------



----- Original Message -----
From: Art Burke
To: m68HC11@m68H...
Sent: Friday, November 04, 2005 11:17 AM
Subject: RE: [m68HC11] Got the 68hc11A1 to run-sometimes works, sometimes doesn't I got my 68HC11A1FN to work, sometimes :-(

It seems that I can get it to work, maybe 50% of the time.
Using the exact same program, PCBUG11, and a program named "Moslo" (to slow
the PC down),

I can get the talker to come up about the time.

Forget PCBUG11!!!!!!!!!!!! The other half I get communication timeouts, memory read fail errors, and
such.
What would cause this? I can't find any loose wires.
Thanks,
Art

PS.Can I get JBUG11 to work with this? If so, how would I get the right
talker downloaded to the processor, and what commands would I use?

I should work fine. See John's documentation for proper installation under Windows and selection of the right talker.
Bob Smith ------
YAHOO! GROUPS LINKS

a.. ------



>Isn't the first 255 bytes $0000 to $00FF ram space?
There are in total 256 bytes of internal RAM.

>Isn't Buffalo located in the chip?
A1 family does not provide internal Buffalo ROM. You need to download the Buffalo into external memory.

>How would I get the right talker downloaded to the processor, and what commands would I use?
The talker file can be obtained from the JBug11 sub-folder. You need to select the correct talker file. For A1 family, if i am not mistaken, the RAM talker should be Jbug_Talk_A.Boo or Jbug_Talk_A.XOO depending on your hardware configuration. Once you select the correct talker, the JBug11 will automatically download the RAM talker into the internal RAM when your MCU is powered up.
You may need to read the JBug11 manual for details. I obtained the manual from this website:
http://freespace.virgin.net/john.beatty/Jbug11_main.html

I am new in this field as well. Currently doing my final year project using A1 family. Hopefully these information would help. =) ---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.




The 2024 Embedded Online Conference