Programmin a motorola MC68HC11 using THRsim11

  • Thread starter aaaaa
  • Start date
In summary, to program a Motorola MC68HC11 using THRsim11, you will need a basic understanding of assembly language and the instruction set, as well as the THRsim11 software installed on your computer. Assembly language is a human-readable low-level programming language, while machine code is the actual binary code executed by the processor. THRsim11 is only compatible with the MC68HC11 microcontroller and has a built-in simulator for debugging. No additional hardware is required, but a compatible development board and programming cable are needed for testing on a physical microcontroller.
  • #1
aaaaa
2
0
I am trying to develop a program, for the Motorola MC68HC11, that will transmit a string of text to the
THRSim11 serial receiver. The string of text will include the words ‘My student number is’
followed by your student number. You must use the THRSim11 simulator software for this
assignment.
Your program must include subroutines to:
• initialize the SCI register
• convert hexadecimal numbers to ASCII
• poll the SCI transmitter.

Any guru's got any good hints etc.
please pm me
 
Computer science news on Phys.org
  • #2
Try this link.
http://www.usq.edu.au/business/policies/acadmisconduct.htm"






















lol, pwn3d.
 
Last edited by a moderator:
  • #3
Hi there,

Programming a Motorola MC68HC11 using THRsim11 can be a challenging task, but with the right approach and resources, it can be done efficiently. In order to transmit a string of text to the THRSim11 serial receiver, you will need to follow a few steps.

Firstly, you will need to initialize the SCI register. This can be done by accessing the SCI control register and setting the necessary bits to enable transmission and set the baud rate. You can refer to the MC68HC11 datasheet for more information on how to do this.

Next, you will need to convert your student number from hexadecimal to ASCII. This can be done by using a subroutine that will take in the hexadecimal number as input and output the corresponding ASCII characters. You can refer to online resources or textbooks for algorithms on how to perform this conversion.

Finally, you will need to poll the SCI transmitter to ensure that the data is being transmitted successfully. This can be done by checking the status register and waiting for the transmit buffer to be empty before sending the next character.

As for hints, it is always a good idea to break down your program into smaller subroutines to make it more manageable and easier to debug. Also, make sure to thoroughly test your program before running it on the actual hardware.

I hope this helps and good luck with your programming! If you need any further assistance, feel free to reach out to me through private message.
 

FAQ: Programmin a motorola MC68HC11 using THRsim11

How do I program a Motorola MC68HC11 using THRsim11?

To program a Motorola MC68HC11 using THRsim11, you will need to have a basic understanding of assembly language and the MC68HC11 instruction set. You will also need to download and install the THRsim11 software on your computer. Once the software is installed, you can use the built-in editor to write your program and then use the simulator to test and debug your code.

What is the difference between assembly language and machine code?

Assembly language is a low-level programming language that is human-readable and uses mnemonics to represent machine instructions. Machine code, on the other hand, is the actual binary code that is executed by the processor. Assembly language is converted into machine code by an assembler before it can be executed by the processor.

Can I use THRsim11 to program other microcontrollers?

No, THRsim11 is specifically designed for programming the Motorola MC68HC11 microcontroller. It is not compatible with other microcontrollers.

How do I debug my program using THRsim11?

THRsim11 has a built-in simulator that allows you to step through your code and monitor the values of registers and memory locations. You can also set breakpoints in your code to pause the execution and inspect the state of the microcontroller at a specific point in your program.

Do I need any additional hardware to use THRsim11?

No, THRsim11 is a software simulator, so you do not need any additional hardware to use it. However, if you want to test your code on a physical MC68HC11 microcontroller, you will need to have a compatible development board and programming cable.

Similar threads

Replies
7
Views
5K
Replies
2
Views
8K
Replies
5
Views
2K
Replies
13
Views
2K
Replies
3
Views
2K
Replies
3
Views
983
Replies
13
Views
3K
Replies
5
Views
3K
Back
Top