Return to site

How To Program 68hc11 Microcontroller

broken image


The 68HC12 (6812 or HC12 for short) is a microcontroller family from Freescale Semiconductor. Originally introduced in the mid-1990s, the architecture is an enhancement of the Freescale 68HC11. Programs written for the HC11 are usually compatible with the HC12, which has a few extra instructions.

Active4 years, 6 months ago

1) Show a scenario if a 6-element table is copied from address 007f to 009d (you may arbitrarily enter the values of the 6 elements).

2) Revise the program so the TST Count on line 13 will not be needed. (i.e., the BEQ branch instruction on line 14 will examine the right status of program execution to determine the branch condition.)

3) Revise the program so the 'Ptr RMB 2' on line 6 will not be used. Instead, Register X points to the element in Table 1, and Register Y points to the element in Table 2.

Hey All, I'm stumped on this question..For the third one, my specific question has to do with the Tables..Does X point to Space and Y point to Length? I have no clue what table is being referred to..

To download this fantastic game, find the text 'Link here, ' and we can find it manually and automatically as well. I am talking about the searching dialog. 😛 The source is in kickass or torrent and can Download Hangaroo Game For PC Full Version. Zoo Tycoon PC Game Screen Shots. How to Install Zoo Tycoon Free Game For PC. Download zoo tycoon 3 full free. Zoo Tycoon 2 Free Download. Zoo Tycoon 2 Free Download PC Game setup in single direct link for Windows. It is an awesome Strategy and Simulation game. Zoo Tycoon 2 PC Game 2016 Overview. Zoo Tycoon 2 is the sequel to Zoo Tycoon. The sequel updates the graphics, but keeps much of the original gameplay the same.

For the second one, does that mean that i completely remove the TST line along with the rest of the loop at line 23? What does it mean to examine the 'right status' of the program?

Any help would be very nice..Thanks.

user3562847user3562847

1 Answer

68hc11

Regarding (2):Certain instructions (including all LOAD and STORE instructions) modify the Condition Code Register (CCR) according to the result of the operation. So, if you place your conditional branch after such instructions, an explicit TST instruction becomes redundant.

Regarding (3):This is a copy routine. Jmicron usb to ata atapi bridge driver download. You're copying from a source location (beginning at $7F) to a destination location (beginning at $9D). You can think of these as arrays or tables. So, you have a source table and a destination table.

And here's a possible implementation after all modifications:

[I bet next your instructor is going to ask you to convert this into a general purpose subroutine where you pass source pointer (X), destination pointer (Y), and length (B) as parameters.]

tonypdmtrtonypdmtr
2,29011 gold badge1313 silver badges2323 bronze badges
Got a question that you can't ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged assemblymicrocontroller68hc11 or ask your own question.

Active1 year, 4 months ago
$begingroup$

What is the difference between an Arduino, a microprocessor, and a microcontroller? I'm trying to determine what is best to operate a cheap resistive touch screen.

Martin MarinoMartin Marino
$endgroup$

5 Answers

$begingroup$

A microprocessor:

is typically found in a desktop PC or laptop and contains a CPU and an external memory interface plus various I/O buses to connect to the outside world such as SPI, I2C, UART, USB, LCD and others. A microprocessors will also have an external crystal to provide a clock.

Most microprocessors have no read-only memory on the chip; instead there is an external chip on the motherboard where the initial boot code is located. On Intel-based PC's, this is called the Basic Input/Output System (BIOS) and also contains I/O routines in addition to the initial boot code. The boot code starts by doing a Power-On Self Test (POST) and then looks to see where to load the next stage of the boot code -- from a hard drive, CD (or in olden days) a floppy disk. This second level boot then loads the operating system. (There may even be three levels of boot code in some systems.)

Some microprocessors (usually ones targeted for smart phones and tablets, which have limited boot options) have a small amount of read-only memory that contains the initial boot code.

I refer to the boot code as read-only; actually on some systems, it can be updated. However this is fairly risky; if something goes wrong the system may no longer boot.

Unlike microcontrollers, which execute their programs out of read-only memory, after booting up microprocessors load their programs into external RAM and execute it from there.

A microcontroller:

on the other hand is a standalone single-chip IC that contains a CPU, read-only memory to store the program, RAM to store variables used in the execution of the program, and various I/O buses to connect to the outside world such as SPI, I2C, UART and others. By itself, it cannot execute any programs without being programmed via an external interface to a PC. A microcontroller may also need an external crystal to provide a clock, however some have an internal clock.

Some microcontrollers (such as Microchip's PIC32) have two sections of flash memory; one to hold initialization (boot) code, and another to store the application. This makes it easier to update the application code in-place.

Microcontroller

Regarding (2):Certain instructions (including all LOAD and STORE instructions) modify the Condition Code Register (CCR) according to the result of the operation. So, if you place your conditional branch after such instructions, an explicit TST instruction becomes redundant.

Regarding (3):This is a copy routine. Jmicron usb to ata atapi bridge driver download. You're copying from a source location (beginning at $7F) to a destination location (beginning at $9D). You can think of these as arrays or tables. So, you have a source table and a destination table.

And here's a possible implementation after all modifications:

[I bet next your instructor is going to ask you to convert this into a general purpose subroutine where you pass source pointer (X), destination pointer (Y), and length (B) as parameters.]

tonypdmtrtonypdmtr
2,29011 gold badge1313 silver badges2323 bronze badges
Got a question that you can't ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged assemblymicrocontroller68hc11 or ask your own question.

Active1 year, 4 months ago
$begingroup$

What is the difference between an Arduino, a microprocessor, and a microcontroller? I'm trying to determine what is best to operate a cheap resistive touch screen.

Martin MarinoMartin Marino
$endgroup$

5 Answers

$begingroup$

A microprocessor:

is typically found in a desktop PC or laptop and contains a CPU and an external memory interface plus various I/O buses to connect to the outside world such as SPI, I2C, UART, USB, LCD and others. A microprocessors will also have an external crystal to provide a clock.

Most microprocessors have no read-only memory on the chip; instead there is an external chip on the motherboard where the initial boot code is located. On Intel-based PC's, this is called the Basic Input/Output System (BIOS) and also contains I/O routines in addition to the initial boot code. The boot code starts by doing a Power-On Self Test (POST) and then looks to see where to load the next stage of the boot code -- from a hard drive, CD (or in olden days) a floppy disk. This second level boot then loads the operating system. (There may even be three levels of boot code in some systems.)

Some microprocessors (usually ones targeted for smart phones and tablets, which have limited boot options) have a small amount of read-only memory that contains the initial boot code.

I refer to the boot code as read-only; actually on some systems, it can be updated. However this is fairly risky; if something goes wrong the system may no longer boot.

Unlike microcontrollers, which execute their programs out of read-only memory, after booting up microprocessors load their programs into external RAM and execute it from there.

A microcontroller:

on the other hand is a standalone single-chip IC that contains a CPU, read-only memory to store the program, RAM to store variables used in the execution of the program, and various I/O buses to connect to the outside world such as SPI, I2C, UART and others. By itself, it cannot execute any programs without being programmed via an external interface to a PC. A microcontroller may also need an external crystal to provide a clock, however some have an internal clock.

Some microcontrollers (such as Microchip's PIC32) have two sections of flash memory; one to hold initialization (boot) code, and another to store the application. This makes it easier to update the application code in-place.

For your purpose, you would want to use a microcontroller, not a microprocessor. To use a microcontroller, you would either have to design your own board, or buy some sort of development board.

An Arduino:

is such a board, and contains a microcontroller, typical an 8-bit AVR such as the ATmega8, ATmega168, ATmega328, ATmega1280, and ATmega2560, plus power supplies, crystal, and female headers to interface with various peripheral boards.

These peripheral boards are called shields, and are designed to stack on top of each other (there are male pins on the bottom of the boards to connect to the Arduino itself or another shield, and female headers on the top to accept the male pins of a shield stacked on top of it).

Example shields are motor control boards, general I/O boards, relay boards, Ethernet boards, and LCD's, typically with a touch-screen. However I don't know of any resistive touch screens that would be used just for detection (without an LCD).

In addition to the hardware described above, Arduino also come with a cross-platform Integrated Development Environment (IDE) written in Java. It was designed to introduce programming to artists and other beginners, much as the BASIC language did 50 years ago. A program for Arduino is called a sketch.

Arduino programs are written in C or C++, however many of the details are hidden from the user: only two functions (called by the system) need to be defined to make a program that continually loops (which is typically for embedded programs)

The IDE comes with a software library called 'Wiring' which can be used for common input/output operations.

Passerby
58.3k44 gold badges5656 silver badges157157 bronze badges
tcrosleytcrosley
43.3k55 gold badges8080 silver badges142142 bronze badges
$endgroup$$begingroup$

Arduino

An Arduino is a PCB containing an Atmel AVR microcontroller and usually providing a set of connectors in a standard pattern. The microcontroller is typically preprogrammed with a 'bootloader' program that allows a program (called a 'sketch') to be loaded into the microcontroller over a TTY serial connection (or virtual serial over USB connection) from a PC.

Microprocessor

A microprocessor is an IC that contains only a central processing unit (CPU). The IC does not contain RAM, ROM or other peripherals. The IC may contain cache memory but it is not designed to be usable without any external memory.

Microprocessors cannot store programs internally and therefore typically load software when powered on, this usually involves a complex multi-stage 'boot' process where 'firmware' is loaded from external ROM and eventually an operating system is loaded from other storage media (e.g. hard disk).

It is typically found in a personal computer.

Microcontroller

A microcontroller is an IC that contains a CPU as well as some amount or RAM, ROM and other peripherals. Microcontrollers can function without external memory or storage.

My life organized activation code. Normally, microcontrollers are either programmed before being soldered to a PCB or are programmable using In-System-Programming (ISP or ICSP) connectors via a special 'programmer' device attached to a personal computer.

Typical microcontrollers are much simpler and slower than typical microprocessors but I believe the distinction is mostly one of scale and application.

It is found, for example, in simple appliances such as basic washing machines.

RedGrittyBrickRedGrittyBrick
12.9k44 gold badges3131 silver badges6262 bronze badges
$endgroup$$begingroup$

'Arduino' is a software development environment and any of several microcontroller boards that the software environment can develop programs for. Most of the boards use Atmel AVR microcontrollers.

Peter BennettPeter Bennett
39.5k11 gold badge3131 silver badges7474 bronze badges
$endgroup$$begingroup$

Arduino is a microcontroller based platform (ATMEGA 328 for the UNO). In general a Micro-controller is better suited than a microprocessor to anything the requires sensing of inputs. That's because micro-controllers like the ATMEGA 328 have analogue to digital converters (ADCs) to sense voltages and also have PWM outputs as well as digital I/Os.

Motorola 68hc11 Microcontroller

With Arduino you also have the Arduino Dev system which is easier to program for novices and has a good community for support and libraries.

A resistive touch screen behaves like potentiometers; one for x and one for y. So you can put those into Arduino analogue inputs. See here for details.

Another option is to convert to SPI or I2C with something like this, and read with Arduino.

Find great deals on eBay for naruto xbox 360. Shop with confidence. Skip to main content. EBay: Shop by category. 71 product ratings - NARUTO RISE OF A NINJA Xbox 360 Complete CIB w/ Box, Manual Good. $5 off every 5 items. Free Shipping. 4 new & refurbished from $9.99. 1-16 of 448 results for 'naruto games for xbox 360' Naruto Shippuden: Ultimate Ninja Storm Revolution - Xbox 360 Sep 16, 2014. ESRB Rating: Teen. By BANDAI NAMCO Games. Platforms Price New/Used; Xbox 360. 4.2 out of 5 stars 148. $33.28 $ 33 28 Prime. $11.49: PlayStation 3. 4.3 out of 5 stars 201. Download download game naruto mobile figjter ukuran kecil APK download game naruto mobile figjter ukuran kecil, MOD download game naruto mobile figjter ukuran kecil Update 2016. Toggle navigation. Cara Memainkan Emulator Xbox 360 Live(Gloud Games) For Android Terbaru. Video Games PS4 Xbox One Switch Wii U PC 3DS PS3 Xbox 360 Accessories Virtual Reality Trade-In Deals Best Sellers More Gaming Search results 1-12 of 398. Naruto xbox 360 ukuran kecil.

Microcontroller Programming Software

Either way I think Arduino is a good choice.

akellyirlakellyirl
3,94911 gold badge1212 silver badges3030 bronze badges
$endgroup$

68hc11 Datasheet

$begingroup$

The Arduino consist of a microcontroller (the ATmega328on the UNO version). So the Arduino is a PCB with the pins of the microcontroller nicly separated, a powersuply, a crystal and the FTDI for the USB connection with a on-board firmware so you can easly programm it with its own IDE.Here is a list about the arduino components: http://learn.adafruit.com/arduino-tips-tricks-and-techniques/arduino-uno-faq

kimlivkimliv
46611 gold badge1010 silver badges2222 bronze badges
$endgroup$

Not the answer you're looking for? Browse other questions tagged arduinomicrocontrollermicroprocessorterminology or ask your own question.





broken image