473,396 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Program LCD HD44780 with 68HC11 in Handyboard

Hello,

for a school project i need to program the Motorola 68HC11 to use the
HD44780 LCD controller, and this must be done in C lang plus maybe a
bit of assembly.
The 68HC11 uC is embedded in a HandyBoard (www.handyboard.com).

The Handyboard gives the following problem:

The Handyboard has different modes, Expanded mode and Singe chip mode.
In Expanded mode the peripheral databus is connected to the external
ram. The same databus which connects the uC to the LCD.
In Single chip mode the uC is connected to the LCD but the external
cannot be reached. In fact, as far as the 68H11 is concerned, there is
no external memory anymore. So it can no longer execute a program from
its external RAM. It only can use its internal RAM.

So the solution must something like this:

- Start in Expanded mode and launch main program.
- Copy LCD-program from external to internal RAM (routine that
includes initialisation).
- Switch to Single chip mode.
- Execute LCD program which initializes the LCD
- Switch back to Expanded mode
- Copy the string or char I want to print to the internal ram.(Method
with parameter?)
- Switch to Single chip mode
- Write string or char to LCD
- Switch to Expanded mode.
- Continue with main.

The problem is that i dont know how to send the LCD program to the
internal RAM when I'm in Expanded mode.

So the question is: "How do I load a piece of the C code, which
includes the initialisation and later the function with parameter,
into the internal ram?

I hope you understand my problem! If not, please tell me and i will
try to clear things out.

Thanks in advance :)

P.S. I'm dutch so my english is not fluently, sorry for that!

Oct 26 '07 #1
2 4271
On Fri, 26 Oct 2007 05:50:01 -0700, r_**********@hotmail.com wrote in
comp.lang.c:
Hello,

for a school project i need to program the Motorola 68HC11 to use the
HD44780 LCD controller, and this must be done in C lang plus maybe a
bit of assembly.
The 68HC11 uC is embedded in a HandyBoard (www.handyboard.com).

The Handyboard gives the following problem:

The Handyboard has different modes, Expanded mode and Singe chip mode.
In Expanded mode the peripheral databus is connected to the external
ram. The same databus which connects the uC to the LCD.
In Single chip mode the uC is connected to the LCD but the external
cannot be reached. In fact, as far as the 68H11 is concerned, there is
no external memory anymore. So it can no longer execute a program from
its external RAM. It only can use its internal RAM.

So the solution must something like this:

- Start in Expanded mode and launch main program.
- Copy LCD-program from external to internal RAM (routine that
includes initialisation).
- Switch to Single chip mode.
- Execute LCD program which initializes the LCD
- Switch back to Expanded mode
- Copy the string or char I want to print to the internal ram.(Method
with parameter?)
- Switch to Single chip mode
- Write string or char to LCD
- Switch to Expanded mode.
- Continue with main.

The problem is that i dont know how to send the LCD program to the
internal RAM when I'm in Expanded mode.

So the question is: "How do I load a piece of the C code, which
includes the initialisation and later the function with parameter,
into the internal ram?

I hope you understand my problem! If not, please tell me and i will
try to clear things out.

Thanks in advance :)

P.S. I'm dutch so my english is not fluently, sorry for that!
I need to tell you that you are asking in the wrong place. This group
discusses the standard C language, defined by an ISO standard, that is
completely independent of hardware. It says nothing about LCD,
internal RAM, or Expanded mode.

Ask this question in the group news:comp.arch.embedded, where this is
exactly the type of thing they discuss, and there will be people there
who are familiar with the 68Hcii and the HD44780 controller.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Oct 27 '07 #2
On Fri, 26 Oct 2007 05:50:01 -0700, in comp.lang.c ,
r_**********@hotmail.com wrote:
>Hello,

for a school project i need to program the Motorola 68HC11 to use the
HD44780 LCD controller, and this must be done in C lang plus maybe a
bit of assembly.
....
>The problem is that i dont know how to send the LCD program to the
internal RAM when I'm in Expanded mode.

So the question is: "How do I load a piece of the C code, which
includes the initialisation and later the function with parameter,
into the internal ram?
You don't load C code, you load the result of compiling this into an
executable format for your platform.

Unfortunately however the mechanism that a given h/w platform uses to
load something into memory, including how you copy it from another
platform such as a PC or switch between operating modes on the chip,
is entirely offtopic in this group. You are likely to have better luck
in a group specialising in embedded software development.

--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Oct 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
11
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >>...
1
by: Eric Whittaker | last post by:
hi all, im trying to write my first c++ program. a success, but i can't get the window to stay open after user enters input. it just automatically closes. right now the end of my program looks...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the hand’s first card, and...
2
Banfa
by: Banfa | last post by:
Posted by Banfa The previous tutorial discussed what programming is, what we are trying to achieve, the answer being a list of instructions constituting a valid program. Now we will discuss how...
0
amitpatel66
by: amitpatel66 | last post by:
There is always a requirement that in Oracle Applications, the Concurrent Program need to be execute programatically based on certain conditions/validations: Concurrent programs can be executed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.