H8-300H Series Overview, and H8-3048

9 378 0
H8-300H Series Overview, and H8-3048

Đang tải... (xem toàn văn)

Thông tin tài liệu

h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 20 Chapter 3 H8/300H Series Overview, and H8/3048 This chapter describes the use of an H8/3048 microcomputer from the H8/300H family. The H8/3048 is a high-performance microcomputer having ROM, RAM and peripheral functions. It will help you understand the functions of this product. 3.1 H8/300H Series Product Map The H8/300H series is a original high-performance, single-chip microcomputer having a 16-bit CPU as its core together with peripheral functions required for system configuration. Figure 3.1 shows the product lineup of the H8 family. Figure 3.1: Product Lineup of H8 Family Figure 3.2 shows the product lineup of the H8/300H series. h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 21 Figure 3.2: Product Lineup of H8/300H series 3.2 H8/3048 Overview In this course, an H8/3048 is used as the sample processor from the H8/300H family. The H8/3048 includes the following three types: one having a mask ROM or OTPROM as an internal ROM (simply referred to as the H8/3048), an H8/3048F having an internal writable flash memory with two power supplies (5V and 12V) and an H8/3048F-ONE having an internal writable flash memory with a single power supply (5V). The only difference among them is the type of internal ROM, the rest are almost the same. Although this chapter describes the overview of the H8/3048F-ONE, the descriptions in this and following chapters are common to all types. Note, however, that the training board has been developed based on the H8/3048F- ONE. Figure 3.3 shows the H8/3048F-ONE internal block. h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 22 Figure 3.3: H8/3048F-ONE Internal Block Features of CPU - 16-bit CPU which serves as a general-purpose register machine. Equipped with 16-bit × 16 general-purpose registers. (Also available in 8-bit × 16 + 16-bit × 8 or 32-bit × 8 form.) - High-speed CPU. The maximum operating frequency of the H8/3048F-ONE is 25MHz and addition/subtraction can be executed in 80ns and multiplication/division in 560ns. The CPU is operated based on clock signals and the higher the clock signal frequency, the faster the operation. The time of one 25MHz clock signal pulse is 0.04 microsecond (40ns), which is called "1 state". Addition/subtraction are completed in two states and multiplication/division in 14 states. - Equipped with a maximum 16M bytes of address space. (CPU, instructions and programs are described in Chapters 4, 5 and 6.) Available both as single-chip and multi-chip microcomputer It can be used as a single-chip microcomputer thanks to the internal ROM, RAM and data I/O functions in addition to the CPU. It can also be used as a multi-chip microcomputer when an external memory is added due to insufficient ROM or RAM capacity. When used as a multi-chip microcomputer, it has 24 address pins and up to 16M bytes of memory can be added. Addresses consume 16M, 8 bits per address. Since there are 16 data pins, 16 bits can be read or written simultaneously. h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 23 Internal ROM It has a 128k byte, writable flash memory with a single 5V power supply. This enables onboard writing. For writing to the flash memory, a boot mode using a serial interface is supported. Writing with a user-defined program is also available. Internal RAM It has an internal, 4k byte RAM. I/O ports: 70 I/O pins and 8 input-only pins The I/O ports can be used to input switch on/off statuses or signals from various sensors. When used as output ports, they can control blinking of a display lamp or turn a motor or heater on and off. The I/O ports are widely used as general-purpose I/O functions. On the training board, they are used to read switch statuses and control LED displays. Internal SCI (serial communication interface) × 2 channels Channel 0 is available for a smart card interface. For start-stop synchronization, it is used for RS-232C and other communication functions. It is connected to a PC to enable data exchange. On the training board, it is connected to a PC via RS-232C to send a created program from a PC to the board or input a command for debugging. Internal ITU (integrated timer unit) composed of 16-bit timer × 5 channels Pulse outputs from up to 12 pins and up to 10 types of pulse inputs can be processed. It has a wide variety of uses such as measurement of time, speed and frequency as well as control of pulse motors. On the training board, a piezoelectric buzzer is provided so that pulses can be heard as sounds. Internal TPC (programmable timing pattern controller) capable of outputting up to 16-bit pulses using the ITU as a time base In combination with the ITU, a large number of pulse outputs are available. Internal watch-dog timer Program runaway can be detected. Since control using a microcomputer is based on programs, an extremely dangerous situation may occur if a program should run away. This function is indispensable for creating a highly reliable system. Internal A/D converter with 10-bit resolution × 8 channels The A/D converter is designed to input analog voltages instead of digital voltages. For example, signals from a temperature sensor are input not h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 24 by high/low digital voltages but analog voltages. These signals are read after being converted into 10-bit binary numbers. On the training board, 0 to 5V analog voltages can be input with added volume. Internal 8-bit D/A converter × 2 channels Unlike the A/D converter, the D/A converter is designed to output analog voltages. It is also used to output desired waveforms or adjust volume or hue of a TV. On the training board, LEDs can be driven with D/A-converted output voltages to control brightness. Internal DMA controller × 4 channels (max.) Used for high-speed data transfer. It enables data to be transferred faster than with the CPU. It is generally used with a timer and other communication functions. Internal refresh controller Refreshing is required to retain the data in the dynamic RAM. This microprocessor has an internal controller for this purpose. The H8/3048F-ONE can be used as a single-chip microcomputer. In this form, no external memory can be added and only the internal one is available. The operating mode when it is used as a single-chip microcomputer is referred to as "single-chip mode". Figure 3.4 shows the memory map in single-chip mode. In this mode, the memory addresses are expressed with 20 bits (5 digits in hexadecimal notation). Figure 3.4: Memory Map in Single-chip Mode h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 25 • For the vector area, refer to "Exception Handling". • For the memory indirect branch addresses, refer to "Addressing Modes of Instructions". • The internal I/O registers are used for peripheral functions such as the SCI and timer. Memory indirect Addressing for branching by storing the destination address in the memory and specifying it. This is written in the following format: @@ address Memory indirect is available only for the JSR and JMP instructions. An even-numbered address between H’000000 and H’0000FC can be specified for an instruction. Not all addresses can be used freely, however, since other exception handling functions also use the same range. Sample: JMP @@H'10 Branches to the address stored in the H'10 address. Although the destination is written with 32 bits in the memory, only the lower 24 bits are used. An even address must be specified by an instruction. The address of the memory storing the destination can also be specified using a symbol. The assembler converts a written symbol into an address, which is assumed to be the destination. Sample: JMP @@WORK Branches to the address written in the WORK address. h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 26 The H8/3048F-ONE can also be used as a multi-chip microcomputer. The operating mode in this case is referred to as "external extension mode". In external extension mode, a memory or peripheral IC can be connected externally. Figure 3.5 shows the memory map in external extension mode. Since there are 24 address buses, up to 16M bytes of external memory can be added. Addresses are expressed with 6-digit, hexadecimal numbers. The addresses of the internal ROM, RAM and internal I/O register, however, are fixed and cannot be changed. If the address of the memory to be added is the same as that of the internal ROM, RAM or internal I/O register, the internal function has priority, disabling reading/writing from/to the external memory. h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 27 Figure 3.5: Memory Map in External Extension Mode • For areas 0 to 7, refer to "Connecting CPU to Memory". When creating a program, you need not take areas 0 to 7 into account. Although this chapter has described the overview of the H8/3048F-ONE, table 3.1 shows the differences between the H8/3048, H8/3048F and H8/3048F-ONE as well as their features for summary. Table 3.1: Differences Between the H8/3048, H8/3048F and H8/3048F-ONE and Their Features H8/3048 H8F/3048 H8/3048F-ONE CPU 16-bit CPU, general-purpose register machine Maximum operating frequency 18MHz 16MHz 25MHz Address space 16Mbyte max Internal ROM Mask ROM/ OTPROM Flash memory (writable with 2 power supplies, 5V and 12V) Flash memory (writable with single 5V power supply) 128Kbyte Internal RAM 4Kbyte Operating mode Available both as single- and multi-chip microcomputer Power supply voltage Vcc -0.3 to +7.0 (V) -0.3 to +7.0 (V) 5V operation: -0.3 to +7.0 (V) operation: -0.3 to +4.6 (V) Peripheral functions - 78 I/O ports in all: 70 I/O pins and 8 input-only pins - SCI x 2 channels - ITU composed of 16-bit timer x 5 channels h t t p : / / r e s o u r c e . r e n e s a s . c o m Page 28 - TPC capable of outputting up to 16-bit pulses - Watch-dog timer for detecting program runaway - A/D converter with 10-bit resolution x 8 channels - 8-bit D/A converter x 2 channels - DMA controller x 4 channels (max.) - Refresh controller 1. Enter an appropriate word in parentheses. The H8/3048 has an internal ( 16 )-bit CPU and up to ( 16M ) bytes of memory can be connected. The H8/3048 belongs to the H8/300H series and employs a 16-bit CPU. It has up to 24 address pins and the memory addresses are expressed in 24-bit binary numbers. This means that 16M (mega) bytes of memory, or 16,777,216 addresses can be connected. 2. Enter an appropriate word in parentheses. ( SCI ) has a variety of internal I/O functions and can be connected to a PC.( ITU ) is used to control pulse motors. SCI is an acronym for Serial Communication Interface used for communication. ITU is an acronym for Integrated Timer pulse Unit which serves as a timer with a pulse I/O function. Its typical application is to control pulse motors. . having ROM, RAM and peripheral functions. It will help you understand the functions of this product. 3.1 H8/300H Series Product Map The H8/300H series is a. CPU and up to ( 16M ) bytes of memory can be connected. The H8/3048 belongs to the H8/300H series and employs a 16-bit CPU. It has up to 24 address pins and

Ngày đăng: 29/09/2013, 11:20

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan