Solved

Serial I/O with a Motorola MC68HC11E1 MCU

Posted on 1998-05-20
7
647 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
ID: 1135484
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
ID: 1135485
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
ID: 1135486
I understand now why you want to write a Windows GUI.  Using PCBUG11 (or a modification of it) should be straightforward.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:beyondrob
ID: 1135487
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
ID: 1135488
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
ID: 1135489
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
ID: 1135490
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Looking for a network enabled locker remotely controlled like Amazon locker 2 91
NCR Printer 7156 1 35
Computer hardware speed units 9 59
S1200BTL Rack Mount Case 4 32
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 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