Motorola 68HC11 explained

Motorola MC68HC11
Manuf1:Motorola, Freescale, NXP
Application:Embedded
Data-Width:8
Address-Width:16
Arch:68HC11
Pack1:48-pin DIP, 52-pin PLCC
Predecessor:6801
Successor:Freescale 68HC16, Freescale 68HC12

The 68HC11[1] (also abbreviated as 6811 or HC11) is an 8-bit microcontroller family introduced by Motorola Semiconductor in 1984 (later from Freescale then NXP).[2] [3] It descended from the Motorola 6800 microprocessor by way of the 6801. The 68HC11 devices are more powerful and more expensive than the 68HC08 microcontrollers and are used in automotive applications, barcode readers, hotel card key writers, amateur robotics, and various other embedded systems. The MC68HC11A8 was the first microcontroller to include CMOS EEPROM.[4]

Architecture

Internally, the HC11 instruction set is backward compatible with the 6800 and features the addition of a Y index register. It has two eight-bit accumulators, A and B, two sixteen-bit index registers, X and Y, a condition code register, a 16-bit stack pointer, and a program counter. In addition, there is an 8 x 8-bit multiply (A x B), with full 16-bit result, and fractional/integer 16-bit by 16-bit divide instructions. A range of 16-bit instructions treat the A and B registers as a combined 16-bit D register for comparison (X and Y registers may also be compared to 16-bit memory operands), addition, subtraction and shift operations, or can add the B accumulator to the X or Y index registers. Bit test operations have also been added, performing a logical and function between operands, setting the correct conditions codes, but not modifying the operands.

Different versions of the HC11 have different numbers of external ports, labeled alphabetically. The most common version has five ports, A, B, C, D, and E, but some have as few as 3 ports (version D3). Each port is eight bits wide except for D, which is six bits (in some variations of the chip, D also has eight bits). It can be operated with an internal program and RAM (1 to 768 bytes) or an external memory of up to 64 kilobytes. With external memory, B and C are used as address and data bus. In this mode, port C is multiplexed to carry both the lower byte of the address and data.

Implementations

In the early 1990s Motorola produced an evaluation board kit for the 68HC11 with several UARTs, RAM, and an EPROM. The cost of the evaluation kit was $68.11.[5]

The standard monitor for the HC11 family is called BUFFALO, "Bit User Fast Friendly Aid to Logical Operation". It can be stored in on-chip ROM, EPROM, or external memory (also typically EPROM). BUFFALO is available for most 68HC11 family derivatives as it generally only depends upon having access to a single UART (SCI, or Serial Communications Interface, in Motorola parlance). BUFFALO can also run on devices that do not have internal non-volatile memory, such as the 68HC11A0, A1, E0, E1, and F1 derivatives.

Other versions

The Freescale 68HC16 microcontroller family is intended as a 16-bit mostly software-compatible upgrade of the 68HC11.

The Freescale 68HC12 microcontroller family is an enhanced 16-bit version of the 68HC11.

The Handy Board robotics controller by Fred Martin is based on the 68HC11.[6]

A MC68HC24 port replacement unit is available for the 68HC11D, which lacks ports B and C. When placed on the external address bus, it replicates the original functions of B and C. This chip was also used in the evaluation board to be used as an In-Circuit Emulator. Port A has input capture, output compare, pulse accumulator, and other timer functions; port D has serial I/O, and port E has an analog-to-digital converter (ADC).

Further reading

Datasheets and manuals
Books

External links

Simulators / Emulators
Boards
FPGA

Notes and References

  1. https://www.nxp.com/docs/en/data-sheet/M68HC11E.pdf Official 68HC11 Reference Manual
  2. https://www.motorolasolutions.com/content/dam/msi/docs/en-xw/static_files/1984_Motorola_Annual_Report.pdf Motorola Annual Report 1984
  3. Hambley, Allan R.(2011). Electrical Engineering: Principles and Applications, Pearson Higher Education. p. 417. Digitized by Google. Retrieved on May 17, 2012.
  4. Web site: M68HC11 Reference Manual . 2020-04-08 . https://web.archive.org/web/20171110031827/http://www.68bits.com/ . 2017-11-10 . dead .
  5. https://groups.google.com/forum/#!topic/comp.dsp/4uquwRWrFno comp.dsp. 1 Oct. 1996
  6. http://www.handyboard.com/hardware/ Handy Board Hardware