Solved

Serial I/O with a Motorola MC68HC11E1 MCU

Posted on 1998-05-20
7
641 Views
Last Modified: 2008-02-01
I've got a Motorola MC68HC11E1 microcontroler with a small program on it. What I need to do is write a GUI interface to upload config data to certain memory locations and download stored data from other memory locations. I can do serial I/O in MFC but I need to know how to read/write to memory locations on the Microcontroler through the Serial Communications Interface. Even more basically will the MCU do this or do the upload/download routines need to be written into the onboard program?

Answers, references, suggestions, and/or comments appreciated.
0
Comment
Question by:beyondrob
  • 3
  • 3
7 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 150 total points
Comment Utility
The 68HC11 has a programmable UART (i.e. serial port interface) implemented in it's hardware.  In order to do what you want, however, you must write a program that runs on the 68HC11 that will watch for and accept commands from your Windows program to read/write memory locations and do whatever other tasks you want it to.  Rather than spend a lot of time writing a custom Windows application to do this, why not just use Hyperterminal (which is included with Windows)?  
0
 

Author Comment

by:beyondrob
Comment Utility
We've got a program (PCBUG11) that interfaces with the microcontroler already. From the documentation it uses motorola's S-records. We are planning on doing it this way right now and emulating the basic program that came with the documentation to upload the data. Do you see any problem with approach?

I'm doing the Windows program since the config will be being used by not technical people who need a simple UI to work with.
0
 
LVL 32

Expert Comment

by:jhance
Comment Utility
I understand now why you want to write a Windows GUI.  Using PCBUG11 (or a modification of it) should be straightforward.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:beyondrob
Comment Utility
The problem is is that I don't (didn't) have an Idea of how PCBUG11 did what it did. I'm hoping the S-Records are the key. I'm going to give you the points I just wanted to get in some comments while I could to make sure I wasn't going about it all wrong.
0
 
LVL 32

Expert Comment

by:jhance
Comment Utility
There is nothing magic about Motorola S record format.  It's been around since the original MC6800 development kit.  It is supported by almost all embedded processor compiler/linkers and also my almost all EPROM programmers.  If you need details on the format, I'm sure I can dig something up for you.  Im sure that the PCBUG11 program is just a simple debug monitor program that is designed to help debug a 68HC11 embedded system.  Since these systems don't typically have any kind of UI or console, a tool like PCBUG can help you out a lot.  It just watches for commands on a serial line and does what you tell it to do.  Usually you can do things like examine memory, set locations, toggle IO ports, set breakpoints, and start a program executing.

I haven't used PCBUG11 myself, but I have used many other similar tools.  Even wrote one for the 6502 when I worked for Rockwell Intl. back in the 1980's.
0
 

Author Comment

by:beyondrob
Comment Utility
If you've got any info on S-Records, the MCU, or how PCBUG controls the MCU over the serial port it'd be much appreciated. I need to know what the commands over the serial line are so I can make my program do them.
0
 

Expert Comment

by:attar
Comment Utility
ok I have the same kit
we first faced the problem of uploading your assembly program via kermit from win95
the solusion was to reboot and start this from dos

as a result I was not encouraged to make any interface for the kit on win95


0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Hello to users to the new age of computers. There are so many products to choose from nowadays that you maybe confused to understand which product is the correct product for you. Let me explain briefly what should be the idea product for your best n…
Upper back Pain: My back hurt for months. Upper back, mostly my neck, spine and across my shoulder blades. I was getting headaches too, that felt like they were caused by tension in my shoulders, but now I feel fine! I'm sharing this hoping someone…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now