Documentation
 Datasheet 
 Presentation 
Application Notes D68HCXX development boards Development Tools Products Summary
D68HC08

8-bit Microcontroller


The D68HC08 is a advanced 8-bit MCU IP Core with highly sophisticated, on chip peripheral capabilities. The D68HC08 soft core is binary and cycle - compatible with the industry standard Motorola 68HC08 8-bit microcontroller. The Core in standard configuration has integrated on chip major peripheral functions.
The D68HC08 Microcontroller Core contains full-duplex UART- Asynchronous Serial Communication Interface (SCI), and the Synchronous Serial Peripheral Interface (SPI).
Two 16-bit, flexible timing systems with input capture lines, output-compare lines and PWM functionality
Self-monitoring circuitry is included on-chip to protect against system errors. A computer operating properly (COP) watchdog system protects against software failures. An illegal opcode detection circuit provides a non-maskable interrupt if illegal opcode is detected.
Two software-controlled power-saving modes, WAIT and STOP, are available to conserve additional power. These modes make the D68HC08 IP Core especially attractive for automotive and battery-driven applications.
D68HC08 is fully customizable, which means it is delivered in the exact configuration to meet users’ requirements. It includes fully automated testbench with complete set of tests allowing easy package validation at each stage of SoC design flow.


Each DCD's D68XX Core has built in support for DCD Hardware Debug System called DoCDTM. It's a real-time hardware debugger provides debugging capability of a whole System on Chip (SoC).
In contrast to other on-chip debuggers DoCDTM provides non-intrusive debugging of running application. It can halt, run, step into or skip an instruction, read/write any contents of microcontroller including all registers, SFRs including user defined peripherals, data and program memories. More details about DCD on Chip Debugger...




CPU Features

Peripherals

  • Standard architecture, cycle compatible with original implementation
  • Software compatible with industry standard 68HC08
  • Up to 64K bytes of Data Memory
  • Up to 64K bytes of Code Memory
  • De-multiplexed Address/Data Bus to allow easy memory connection
  • Two power saving modes: STOP, WAI
  • Ready pin allows Core to operate with slow program and data memories.
  • Fully synthesizable
  • Static synchronous design
  • No internal reset generator or gated clock
  • Positive edge clocking and no internal tri-states
  • Scan test ready

Design Features

  • One global system clock
  • Synchronous reset
  • All asynchronous input signals are synchronized before internal use
  • Synchronous logic without microcode

Configuration

The D68HC08 Microcontroller Core has built in hardware on chip debugger DoCDTM which can be easily switched on/of by changing single parameter in the core package. This configurability allows user to have the DoCD "on board" at the prototyping level, and then switch it off in mass production. This feature allows to save space in silicon in production items.


DoCDTM debug unit
  • used
  • unused

Also peripheral components are configurable the same way as DoCD.
Besides mentioned above parameter all available peripherals can be excluded from the core by changing appropriate constants in package file.
  • DoCDTM debug unit
    • Processor execution control
    • Read-write all processor contents
    • Hardware execution breakpoints
    • Three wire communication interface
  • Eight I/O Ports
  • Extended Interrupt Controller
  • 16-bit Timer Interface Modules TIMA and TIMB
    • Four input capture/compare channels
    • Buffered and unbuffered PWM
    • Programmable TIM clock input
    • Free-running or modulo up-count operation
    • TIM counter stop and reset bits
  • Programmable Interrupt Timer (PIT)
    • Programmable PIT clock input
    • Free-running or modulo up-count operation
    • PIT counter stop and reset bits
  • Full-duplex UART - SCI
    • Standard Non-return to Zero format (NRZ)
    • 8 or 9 bit data transfer
    • Integrated BAUD Rate generator
    • Enhanced receiver data sampling technique
    • Noise, Overrun and Framing errors detection
    • IDLE and BREAK characters generation
    • Wake-up block to recognize UART wake-up from IDLE
    • Three SCI Related interrupts
  • SPI – Master and Slave Serial Peripheral Interface
    • Supports speeds up ¼ of system clock
      • Mode fault error
      • Write collision error
    • Software selectable polarity and phase of serial clock SCK
    • System errors detection
    • Allows operation from a wide range of system clock frequencies
    • Interrupt generation


Symbol

 clk
 rst
 cmf
 docddatai
 clkdocd
docddatao 
docdclk 
 irq
porta (7:0) 
portb (7:0) 
portc (7:0) 
portd (7:0) 
porte (7:0) 
portf (7:0) 
halt 

Pins description

PinTypeDescription
clkinputGlobal clock
rstinputGlobal reset
cmfinputClock monitor fail reset
docddataiinputDoCDTM serial data input
clkdocdinputClock signal to DoCDTM On chip Debugger module. This separate clock line allow DoCDTM to operate during the SLEEP mode (major clock CLK is stopped).
irqinputExternal Interrupt Request
docddataooutputDoCDTM serial data output
docdclkoutputDoCDTM serial data clock line
porta (7:0)outputPort A - general-purpose bidirectional I/O Port.
portb (7:0)outputPort B is a special function port, that in original uC shares all of its port pins with ADC module.
portc (7:0)outputGenaral-purpose bidirections I/O Port.
portd (7:0)outputPort D is a special function port, which shares two it's pins with the timer interface module.
porte (7:0)outputPort E is a special function bidirectional I/O port,shared with Serial Peripheral Interface (SPI), Timer A (TIMA) a,d Serial Communication Interface (SCI).
portf (7:0)outputPort F - General purpose bidirectional I./O Port, shared with Timer A and Timer B.
haltoutputHalt clock system during STOP Instruction

Block diagram

DoCDTM
docddatai
docddatao
docdclk
clkdocd
Watchdog Timer
ALU
SPI
SCI
BREAK MODULE
Interrupt Controller
irq
I/O Ports
porta (7:0)
portb (7:0)
portc (7:0)
portd (7:0)
porte (7:0)
portf (7:0)
PIT
TIMA
TIMB
Control Unit
halt
clk
rst
cmf

Units

DoCDTM

DoCDTM Debug Unit – it’s a real-time hardware debugger provides debugging capability of a whole SoC system. In contrast to other on-chip debuggers DoCD™ provides non-intrusive debugging of running application. It can halt, run, step into or skip an instruction, read/write any contents of microcontroller including all registers, internal, external, program memories, all SFRs including user defined peripherals. Hardware breakpoints can be set and controlled on program memory, internal and external data memories, as well as on SFRs. Hardware breakpoint is executed if any write/read occurred at particular address with certain data pattern or without pattern. The DoCDTM system includes three-wire interface and complete set of tools to communicate and work with core in real time debugging. It is built as scalable unit and some features can be turned off to save silicon and reduce power consumption. A special care on power consumption has been taken, and when debugger is not used it is automatically switched in power save mode. Finally whole debugger is turned off when debug option is no longer used.
The separate DoCDTM clock line allow debugger to operate while the SLEEP mode (major clock line CLK is stopped).

Watchdog Timer

The Watchdog Timer consist of free running timer CLK/213, plus control logic. The Watchdog Timer can be enabled by software by writing '1' to the WDOG Bit in MISC ($0C) register. Once enabled the WDT timer cannot be disabled by software. In addition the WDOG bit acts as a reset mechanism for the WDT Timer. Writing '1' to the WDOG Bit clears WDT counter and inhibits Watchdog timeout.

ALU

Arithmetic Logic Unit performs the arithmetic and logic operations during execution of an instruction. It contains accumulator (A), Condition Code Register (CCREG), Index registers (H:X), and related logic such as arithmetic unit, logic unit, multiplier and divider.

SPI

It’s a fully configurable master/slave Serial Peripheral Interface, which allows user to configure polarity and phase of serial clock signal SCK. It allows the microcontroller to communicate with serial peripheral devices. It is also capable of interprocessor communications in a multi-master system. A serial clock line (SCK) synchronizes shifting and sampling of the information on the two independent serial data lines. SPI data are simultaneously transmitted and received. SPI system is flexible enough to interface directly with numerous standard product peripherals from several manufacturers. Data rates as high as CLK/8. Clock control logic allows a selection of clock polarity and a choice of two fundamentally different clocking protocols to accommodate most available synchronous serial peripheral devices. When the SPI is configured as a master, software selects one of four different bit rates for the serial clock. Error-detection logic is included to support interprocessor communications. A write-collision detector indicates when an attempt is made to write data to the serial shift register while a transfer is in progress. A multiple-master mode-fault detector automatically disables SPI output drivers if more than one SPI devices simultaneously attempts to become bus master.

SCI

The SCI is a full-duplex UART type asynchronous system, using standard non return to zero (NRZ) format : 1 start bit, 8 or 9 data bits and a 1 stop bit. The Core resynchronizes the receiver bit clock on all one to zero transitions in the bit stream. Therefore differences in baud rate between the sending device and the SCI are not as likely to cause reception errors. Three logic samples are taken near the middle of data bit time, and majority logic decides the sense for the bit. For the start and stop bits seven logic samples are taken. Even if noise causes one of these samples to be incorrect, the bit will still be received correctly. The receiver also has the ability to enter a temporary standby mode (called receiver wakeup) to ignore messages intended for a different receiver. Logic automatically wakes up the receiver in time to see the first character of the next message. This wakeup feature greatly reduces CPU overhead in multidrop SCI networks. The SCI transmitter can produce queued characters of idle (whole characters of all logic 1) and break (whole characters of all logic 0). In addition to the usual transmit data register empty (TDRE) status flag, this SCI also provides a transmit complete (TC) indication that can be used in applications with a modem.

BREAK MODULE

The break module (BRK) can generate a break interrupt that stops normal program flow at a defined address to enter a background program.

Interrupt Controller

External Interrupt Controller

I/O Ports

All D68HC08 I/O ports are programmable, and can operate as inputs or outputs.

PIT

Programmable Interrupt Timer - PIT - is the 16-bit counter that can operate as a free-running counter or a modulo up-counter. The counter provides the timing reference for the interrupt. The PIT counter modulo registers, PMODH:PMODL, control the modulo value of the counter. Software can read counter value at any time without affecting the counting sequence.

TIMA

Timer Interface Module A. The TIMA is a four channel timer, thet provides a timing reference with input capture, output compare and pulse-width modulation functions.

TIMB

Timer Interface Module B. The TIMB is a four channel timer, thet provides a timing reference with input capture, output compare and pulse-width modulation functions.

Control Unit

Control unit prforms the core synchronization and data flow control. This module manages execution of all instructions. The STOP instruction and wakes-up the processor from the STOP mode.

Family summary

FamilyIP CoreArchitecture
type
Memory
space
DoCDTMUART (SCI)SPI M/SIO PortsWatchdog
Timer
TimerCompare /
Capture
Pulse
accumulator
READY
pin
Chip
Selects
Gatecount
HC05, HC08DF6805fast64k++-4+12/2-+-7000
-DF6808fast64k++-4+12/2-+-8300
-D68HC05legacy64k+++4+11/1----
-D68HC08legacy64K+++4+12/1---10000
HC11DF6811Efast64k+++5+15/4++-12000
-DF6811Ffast64k+++7+15/4++-14000
-DF6811Kfast1M+++10+313/6++-21000
-D68HC11Elegacy64k+++5+15/4+--13000
-D68HC11Klegacy1M++110+313/6+-421000
-D68HC11Flegacy64k+++7+15/4--413500
6802, 6803DF6802fast64k+----------
-DF6803fast64k+++4-1+----
-D6802legacy64k+---------3600
-D6803legacy64k+++4-1+---6000


The main features of each D68XX and DF68XX family member have been summarized in table above. It gives a brief member characterization to help selection of the most suitable IP Core for application. User can specify its own peripheral set (including listed above and the others) and request the core modifications.