ArticleslgStudy

science

Motorola 68HC12

Motorola 68HC12 is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Motorola 68HC12 rather than just read about it. In short: The 68HC12 (also abbreviated as 6812 or HC12) is a microcontroller family from Motorola Semiconductor (later from Freescale then NXP). Originally introduced in the mid-1990s, the architecture is an enhancement of the Freescale 68HC11.

Motorola 68HC12 — main illustration
Motorola 68HC12 — illustration

Key takeaways

  • Motorola 68HC12 belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Motorola 68HC12 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Motorola 68HC12 from memory before moving on to harder problems.

Reference excerpt

The 68HC12 (also abbreviated as 6812 or HC12) is a microcontroller family from Motorola Semiconductor (later from Freescale then NXP). 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. The first 68HC12 derivatives had a maximum bus speed of 8 MHz and flash memory sizes up to 128 KB.

Architecture Like the 68HC11, the 68HC12 has two 8-bit accumulators A and B (referred to as a single 16-bit accumulator, D, when A and B are combined so as to allow for operations involving 16 bits), two 16-bit processor registers X and Y, a 16-bit program counter, a 16-bit stack pointer and an 8-bit Condition Code Register. Unlike the 68HC11 the processor has 16bit internal data paths. The 68HC12 adds to and replaces a small number of 68HC11 instructions with new forms that are closer to the 6809 processor. More significantly it changes the instruction encodings to be far more dense and adds many 6809 like indexing features, some with even more flexibility. The net result is that code sizes are typically 30% smaller.

HCS12/MC9S12 derivatives Beginning in 2000 the family was extended with the introduction of the MC9S12 derivatives which have bus speeds of up to 25 MHz and flash sizes up to 512 KB. The MC9S12NE64 was introduced by Freescale in September 2004, claiming to be the "industry's first single-chip fast-Ethernet Flash microcontroller." It features a 25 MHz HCS12 CPU, 64 KB of FLASH EEPROM, 8 KB of RAM, and an Ethernet 10/100 Mbit/s controller.

MC9S12X derivatives The MC9S12XDP512 which was introduced in 2004 has a bus speed of 40 MHz and a peripheral co-processor known as the XGATE which allows for some tasks to be offloaded from the CPU. The CPU of the S12X derivative also features several new instructions to increase performance. Freescale announced the MC9S12XEP100 in May 2006 to further extend the S12X family to 50 MHz bus speed and add a Memory protection unit (based on segmentation) and a hardware scheme to provide emulated EEPROM. HCS12 products contain a single processor, the HCS12X feature the additional XGATE peripheral processor. The S12X family offer two main methods to address more than 64KBytes.

Paged memory regions in the 64 KB local map: PPAGE for paged program data, RPAGE for paged RAM, EPAGE for paged EEPROM/flash Global addressing permits access to any addresses in the 8 MB address space. GPAGE is used in conjunction with special opcodes. (gldaa etc.)

XGATE The XGATE co-processor is a 16-bit RISC processor operating at twice the main bus clock. It offloads work from the S12X core by handling interrupts only and does not run a background loop. The first versions of the XGATE do not allow for higher priority interrupts to pre-empt a currently handled interrupt, but the "XGATEV3" as featured in the 9S12XEP100 (and others) does allow this. The S12X can trigger software interrupts on the XGATE core and vice versa. A semaphore system is implemented to allow the S12X and XGATE cores to synchronize access to peripherals. Typically the XGATE code is copied to RAM at device startup and then executed from RAM for a speed benefit. The XGATE has a partial 64KByte address space with no paging. The registers share addresses, but the flash and RAM appear at different addresses between the cores. (See the datasheet for more details.)

References

Further reading Embedded Systems - Design and Applications with the 68HC12 and HCS12; Steven Barrett & Daniel Pack; 645 pages; 2005. Motorola 68HC12 Reference Manual; Motorola; 1996.

External links Free real-time kernel source code for HCS12 with sample apps Freescale's official OpenTCP project on SourceForge for MC9S12NE family DRAGON12-light HCS12/9S12 Trainer, EVB and Development Board MiniIDE development environment that works with both 68HC11 and 68HC12 68HC12 Discussion Group

Illustrations

Motorola 68HC12: Dragon12-P microcontroller evaluation board running on 68HC12
Dragon12-P microcontroller evaluation board running on 68HC12

Worked examples

Example 1 — a first encounter with Motorola 68HC12

Start with the simplest possible case. Write down what Motorola 68HC12 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Motorola 68HC12 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Motorola 68HC12 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Motorola 68HC12

In research
Motorola 68HC12 appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Motorola 68HC12 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Motorola 68HC12 is common in secondary-school and first-year university syllabi. It links to neighbouring topics Freescale Semiconductor microcontrollers, Motorola microcontrollers, so understanding it makes those chapters shorter.
In everyday life
Look for Motorola 68HC12 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Motorola 68HC12” →

How to study Motorola 68HC12 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Motorola 68HC12 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Motorola 68HC12 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Motorola 68HC12 in simple terms?

The 68HC12 (also abbreviated as 6812 or HC12) is a microcontroller family from Motorola Semiconductor (later from Freescale then NXP). Originally introduced in the mid-1990s, the architecture is an enhancement of the Freescale 68HC11.

Why does Motorola 68HC12 matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Motorola 68HC12?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Motorola 68HC12.

Tags

  • Freescale Semiconductor microcontrollers
  • Motorola microcontrollers

Keep exploring