Description
The H8/338 Series of single-chip microcomputers features an H8/300 CPU core and a complement of on-chip supporting modules implementing a variety of system functions.The H8/300 CPU is a high-speed processor with an architecture featuring powerful bitmanipulation instructions, ideally suited for realtime control applications. The on-chip supporting modules implement peripheral functions needed in system configurations. These include ROM, RAM, three types of timers (16-bit free-running timer, eight-bit timers, pulsewidth modulation timers), a serial communication interface (SCI), an A/D converter, a D/A converter, and I/O ports.The H8/338 Series can operate in a single-chip mode or in two expanded modes, depending on the requirements of the application. (The operating mode will be referred to as the MCU mode in this manual.).
- CPU
- Two-way general register configuration
- Eight 16-bit registers, or
- Sixteen 8-bit registers
- High-speed operation
- Maximum clock rate: 10MHz
- Add/subtract: 0.2µs
- Multiply/divide: 1.4µs
- Streamlined, concise instruction set
- Instruction length: 2 or 4 bytes
- Register-registe/r arithmetic and logic operations
- MOV instruction for data transfer between registers and memory
- Instruction set features
- Multiply instruction (8 bits x 8 bits)
- Divide instruction (16 bits + 8 bits)
- Bit-accumulator instructions
- Register-indirect specification of bit positions
- Memory
- H8/338: 48K-byte ROM; 2K-byte RAM
- H8/337: 32K-byte ROM; 1K-byte RAM
- H8/336: 24K-byte ROM; 1K-byte RAM
- 16-bit freerunning timer (1 channel)
- One 16-bit free-running counter (can also count external events)
- Two output-compare lines
- Four input capture lines (can be buffered)
- 8-bit timer (2 channels)
- Each channel has
- One 8-bit up-counter (can also count external events)
- Two time constant registers
- PWM timer (2 channels)
- Duty cycle can be set from 0 to 100%
- Resolution: 1/250
- Serial communication interface (SCI) (2 channels)
- Asynchronous or clocked synchronous mode (selectable)
- Full duplex: can transmit and receive simultaneously
- On-chip baud rate generator
- D/A converter
- 8-bit resolution
- Two channels
- I/O ports
- 58 input/output lines (16 of which can drive LEDs)
- 8 input-only lines
- Interrupts
- Nine external interrupt lines: 10,,,54 to ,547
- 22 on-chip interrupt sources
- Operating modes
- Expanded mode with on-chip ROM disabled (mode 1)
- Expanded mode with on-chip ROM enabled (mode 2)
- Single-chip mode (mode 3)
- Power-down modes
- Sleep mode
- Software standby mode
- Hardware standby mode
- Other features
- On-chip oscillator