ArticleslgStudy

science

Hitachi 6309

Hitachi 6309 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 Hitachi 6309 rather than just read about it. In short: The 6309 is Hitachi's CMOS version of the Motorola 6809 microprocessor, with preliminary data available in 1985. It was initially marketed as a low-power version of the 6809, without reference to its many internal improvements.

Hitachi 6309 — main illustration
Hitachi 6309 — illustration

Key takeaways

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

Reference excerpt

The 6309 is Hitachi's CMOS version of the Motorola 6809 microprocessor, with preliminary data available in 1985. It was initially marketed as a low-power version of the 6809, without reference to its many internal improvements. While in "Emulation Mode" it is fully compatible with the 6809. To the 6809 specifications, it adds higher clock rates, enhanced features, new instructions, and additional registers. Most of the new instructions were added to support the additional registers, as well as up to 32-bit math, hardware division, bit manipulations, and block transfers. The 6309 is generally 30% faster in native mode than the 6809. This information was never published by Hitachi. The April 1988 issue of Oh! FM, a Japanese magazine for Fujitsu personal computer users, contained the first description of the 6309's additional capabilities. Later, Hirotsugu Kakugawa posted details of the 6309's new features and instructions to comp.sys.m6809. This led to the development of NitrOS-9 for the Tandy Color Computer 3.

Programming model

Differences from the Motorola 6809 The 6309 differs from the 6809 in several key areas.

Process technology The 6309 is fabricated in CMOS technology, while the 6809 is an NMOS device. As a result, the 6309 requires less power to operate than the 6809. Although it is a dynamic design (the datasheet specifies a 500 kHz minimum clocking frequency and it will lose its state when the clock speed is too low), it can be paused for up to 15 cycles. This is useful for direct memory access as it allows external devices to pause the CPU to release the memory bus, read or write small amounts of memory, and then unpause the CPU again. No other logic is required.

Clock speed The 6309 has B (2 MHz) versions as the 6809 does. However, a "C" speed rating was produced with either a 3.0 or 3.5 MHz maximum clock rate, depending on which datasheet is referenced. (Several Japanese computers had 63C09 CPUs clocked with a 3.58 MHz color burst crystal, so the 3.5 rating seems most likely). Anecdotal and individual reports indicate that the 63C09 variant can be clocked at 5 MHz with no ill effects. Like the 6809, the Hitachi CPU comes in both internal and external clock versions (HD63B/C09 and HD63B/C09E respectively)

Computational efficiency When switched into 6309 Native Mode (as opposed to the default 6809-compatible mode) many key instructions will complete in fewer clock cycles. This often improves execution speeds by up to 30%.

Additional registers Two 8-bit accumulators: 'E' and 'F'. These can be concatenated to form 16-bit accumulator 'W'. The existing 6809 16-bit accumulator D can be concatenated with W to form 32-bit accumulator 'Q'. It is likely that D is short for 'Double' and Q for 'Quad', the number of bytes they hold. Transfer register 'V' for inter-register instructions. Its value is unaffected by a hardware reset so it can retain a constant Value, hence 'V'. 8/16-bit Zero register '0' to speed up operations using a zero constant. This register always reads zero and writes to it are ignored. Mode register 'MD', a secondary Condition Code register that controls the operating mode. Only 4 bits of this register are defined.

Additional instructions Most of the new instructions are modifications of existing instructions to handle the existence of the additional registers, such as load, store, add, and the like. Genuine 6309 additions include inter-register arithmetic, block transfers, hardware division, and bit-level manipulations. Further, 16 bit registers D and W can be target of 16 bit arithmetic with carry and 16 bit shift and rotate operations. On 6809, these operations are limited to 8 bit operands. Despite the user-friendliness of the additional instructions, analysis by 6809 programming gurus indicates that many of the new instructions are actually slower than the equivalent 6809 code, especially in tight loops. Most of new instructions use opcode prefixes that makes them slower by one cycle when compared to similar 6809 instruction. On other side, 6309 native mode executes many instructions faster by one or more cycles. Here is a timing comparison of an 8 bit LD instruction for 'A' register and 'E' register on 6809 and 6309:

Also inter-register operations and new 16 bit operations are somewhat mixed bag. Depending on addressing mode and 6309 mode, equivalent 6809 code can be faster. For illustration, let us look on timing of exclusive or instruction.

As table above indicates, exclusive or of 16 bit register D with immediate parameter can be replaced by two 8 bit instructions EORA imm, EORB imm and it will execute faster when 6309 runs in emulation mode. Though one should realize that sequence of 8 bit instructions EORA imm, EORB imm is not exact equivalent of 16 bit EORD imm instruction as condition code CC register is set according result of 8 bit operation in first case and according result of 16 bit operation in second case. Similar issue is with inter-register EORR instruction. It accepts both 8 bit and 16 bit operands and it always executes within 4 cycles. However, for 8 bit operands, it is faster to use EORA imm or EORB imm instructions when appropriate. Further, when 6309 is running in native mode, instructions EORA direct, EORB direct take only 3 cycles, one cycle less than inter-register operation.

Additional hardware features It is possible to change the mode of operation for the FIRQ interrupt. Instead of stacking the PC and CC registers (normal 6809 behavior) the FIRQ interrupt can be set to stack the entire register set, as the IRQ interrupt does. In addition, the 6309 has two possible trap modes, one for an illegal instruction fetch and one for division by zero. The illegal instruction fetch is not maskable, and many TRS-80 Color Computer users reported that their 6309's were "buggy" when in reality it was an indicator of enhanced and unknown features.

Undocumented features There is an additional register, called M, used for temporary storage that is available to use as well.

References

… excerpt ends here. Continue reading the full article.

Illustrations

Hitachi 6309 illustration
Hitachi 6309: 6309 programming model, showing register layout. Additions to the 6809 are shown with blue type.
6309 programming model, showing register layout. Additions to the 6809 are shown with blue type.

Worked examples

Example 1 — a first encounter with Hitachi 6309

Start with the simplest possible case. Write down what Hitachi 6309 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 Hitachi 6309 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 Hitachi 6309 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 Hitachi 6309

In research
Hitachi 6309 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 Hitachi 6309 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
Hitachi 6309 is common in secondary-school and first-year university syllabi. It links to neighbouring topics 8-bit microprocessors, Hitachi products, so understanding it makes those chapters shorter.
In everyday life
Look for Hitachi 6309 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 “Hitachi 6309” →

How to study Hitachi 6309 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Hitachi 6309 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 Hitachi 6309 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Hitachi 6309 in simple terms?

The 6309 is Hitachi's CMOS version of the Motorola 6809 microprocessor, with preliminary data available in 1985. It was initially marketed as a low-power version of the 6809, without reference to its many internal improvements.

Why does Hitachi 6309 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 Hitachi 6309?

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 Hitachi 6309.

Tags

  • 8-bit microprocessors
  • Hitachi products

Keep exploring