PD780058/ PD780058Y PD78058/ PD78058Y PD78078 78K/4 PD78054Y PD78054 PD780058 - Datasheet Archive
8-BIT SINGLE-CHIP MICROCONTROLLERS µPD780058/µPD780058Y SUBSERIES Kiyoshi Ishikawa Development Background As the
NEW PRODUCTS 1 8-BIT SINGLE-CHIP MICROCONTROLLERS µPD780058/ PD780058/µPD780058Y PD780058Y SUBSERIES Kiyoshi Ishikawa Development Background As the application range of single-chip microcontrollers has expanded in recent years, demand has grown for microcontrollers capable of processing data at a higher speed, operating at a lower voltage, and generating less noise (electromagnetic interference (EMI) noise). At the same time, demand for microcontrollers provided with flash memory, allowing on-board rewriting of programs and data, has also risen. In response to these demands, NEC has developed the new µPD780058/ PD780058/ µPD780058Y PD780058Y Subseries. These microcontrollers, which are based on the µPD78058/ PD78058/µPD78058Y PD78058Y Subseries of general-purpose 80-pin products, but whose chip size has been shrunken by the latest process technology, feature both hardware and software that is nearly compatible with the µPD78058/ PD78058/µPD78058Y PD78058Y Subseries. Furthermore, the board and software that the existing subseries operates are able to be µPD78078 PD78078 YSubseries µPD78078 PD78078 Subseries 100-pin general-purpose microcontroller 78K/4 78K/4 Series · Expanded functions · High-speed operation Function µPD78054Y PD78054Y Subseries µPD780058Y PD780058Y Subseries µPD78054 PD78054 Subseries 80-pin general-purpose microcontroller µPD780058 PD780058 Subseries · Low cost · Expanded functions µPD78018FY PD78018FY Subseries µPD78018F PD78018F Subseries 64-pin general-purpose microcontroller µPD780034AY PD780034AY Subseries µPD780034A PD780034A Subseries · Low cost · Expanded functions µPD78083 PD78083 Subseries 42-pin general-purpose microcontroller used by the new µPD780058/ PD780058/µPD780058Y PD780058Y Subseries with only a few alterations (Fig.1). Products with flash memory instead of the conventional one-time PROM, the µPD78F0058 PD78F0058 and µPD78F0058Y PD78F0058Y, are also available. The µPD780058/ PD780058/µPD780058Y PD780058Y Subseries of microcontrollers can be employed for a wide range of applications where low noise is essential, such as in audio/visual systems (including MDs and VCRs), communications equipment (such as cellular µPD780024AY PD780024AY Subseries µPD780024A PD780024A Subseries 78K/0S 78K/0S Series · Low cost Process Fig. 1 Development of µPD780058/ PD780058/µPD780058Y PD780058Y Subseries Microcomputer Engineering Department, Semiconductor Solution Engineering Division Modified Item µPD78005X PD78005X Operating voltage Mask ROM µPD78F0058 PD78F0058 µPD7805X PD7805X 1.8 to 5.5V - - 2.7 to 6.0V 1KB/2KB 2KB 16KB to 60KB - 48KB/60KB 48KB/60KB - 60KB - 60KB 2KB 2KB 1KB/2KB 2KB 60KB RAM Serial I/F External interrupt Noise countermeasures VDD VSS AVDD pin AVSS pin AVREF0 pin AVREF1 pin µPD78P058F PD78P058F - - Flash I/O µPD7805XF PD7805XF 2.0 to 6.0V 24KB to 60KB PROM µPD78P058 PD78P058 - Total: 68 CMOS inputs: 2 CMOS I/O: 62 N-OD I/O: 4 3-wire/2-wire/SBI mode selectable: 1 channel 3-wire mode with automatic transfer/receive function: 1 channel 3-wire/UART mode (time division transfer function) selectable: 1 channel Total: 69 CMOS inputs: 2 CMOS I/O: 63 N-OD I/O: 4 6 sources (INTP0 to INTP5) 7 sources (INTP0 to INTP6) EMI countermeasures employed No countermeasures employed EMI countermeasures employed Positive power supply Positive power supply (except port section) Ground potential Ground potential (except port section) Power supply for A/D converter A/D converter analog power supply (shared with port section power supply) A/D, D/A converter ground potential (shared with port section ground potential) Positive power supply (except port and analog sections) (pin name changed to VDD1) Ground potential (except port and analog sections) (pin name changed to VSS1) Port section positive power supply (pin name changed to VDD0) Ground potential for A/D converter, D/A converter Power supply for A/D converter and reference voltage input D/A converter reference voltage input 3-wire/2-wire/SBI/I2C bus mode selectable: 1 channel 3-wire mode with automatic transfer/receive function: 1 channel 3-wire/UART mode selectable: 1 channel Ground potential for A/D converter, D/A converter A/D converter reference voltage input INTP6/PO6 pin Port section ground potential (pin name changed to VSS0) No modifications P23/STB P23/STB pin Addition of TXD pin of UART No modifications P24/BUSY P24/BUSY pin Addition of RXD pin of UART No modifications Package 80-pin plastic QFP (14 x 14mm, 12 x 12mm) 80-pin plastic QFP (14 x 14mm) 80-pin ceramic WQFN Device file DF780058 DF780058 DF78054 DF78054 80-pin plastic QFP (14 x 14mm, 12 x 12mm) 80-pin ceramic WQFN Table 1 Functional Outline of µPD780058/ PD780058/µPD78058 PD78058 Subseries telephones and FAX machines), and office equipment. Product Outline The µPD780058/ PD780058/µPD780058Y PD780058Y Subseries is based on the µPD78058/ PD78058/µPD78058Y PD78058Y Subseries of general-purpose microcontrollers, but with the added benefits of a dummy 2-channel UART serial interface and EMI noise reduction measures. Products in this subseries with on-chip flash memory instead of one-time PROM have also been provided. These flash memory products can be programmed using a dedicated adapter at the software development stage, or on-board before the application system is shipped. Table 1 outlines the functions of the µPD780058/ PD780058/µPD780058Y PD780058Y Subseries. A development environment designed to enhance the efficiency of program development is available, and includes the following development tools: advanced incircuit emulator and assembler, structured assembler, C compiler, and integrated debugger employing a graphical user interface. Features The features of the µPD780058/ PD780058/ µPD780058Y PD780058Y Subseries are described below. 1. Availability of flash memory products The µPD78F0058/ PD78F0058/µPD78F0058Y PD78F0058Y Subseries is provided with both a 60-KB 60-KB flash memory and a dedicated flash programmer. Through the use of this flash programmer, programs and data can be rewritten while the microcontroller is Host PC (Supporting Windows 95) Control Unit µPD78F0058 PD78F0058 / µPD780058Y PD780058Y SCK SI Flash memory control circuit Flash memory (32K) SO RESET VDD (5V) Flash programmers FL-PR2/FL-PR3* RS-232C RS-232C VPP (10V) VSS * Flash programmers FL-PR2 and FL-PR3 are products of Naitou Densei Machidaseisakusho Co., Ltd. Fig. 2 Writing to Flash Memory Using Dedicated Flash Programmer mounted on the printed circuit board. By connecting the dedicated flash programmer to the µPD780058/ PD780058/µPD780058Y PD780058Y using a serial communication, programs and data can be written, verified and erased. Figure 2 illustrates the process by which the dedicated flash programmer writes to flash memory. 2. I 2 C bus interface (µPD780058Y PD780058Y Subseries) The µPD780058Y PD780058Y Subseries supports the I2C bus mode as one of the serial interfaces. The internal I2C bus interface operates as either a master or a slave, and can be connected to an I 2C bus that consists of multiple master devices. Because of this, when the serial bus is configured with more than one microcontroller that has an internal I2C bus interface, or with a peripheral LSI (such as EEPROM), the number of ports used and the amount of wiring on the printed circuit board can be reduced. 3. Low EMI noise Noise is generated in a microcontroller when an internal circuit is switched, allowing current to flow through. Much of the noise generated in the microcontroller is transmitted to external devices via its output ports and oscillator peripherals, etc. In order, therefore, to reduce this port EMI noise, the following measures have been implemented for the µPD780058/ PD780058/µPD780058Y PD780058Y Subseries. · In order to lower the noise generated in the microcontroller, the existence of circuits through which excessive current was flowing was established at the transistor level (the drive current of the output transistor for these circuits was subsequently lowered). · The Power supply/GND lines for the output ports (VDD0/VSS0) and those for the microcontroller (V DD1 /V SS1 ) were separated to ensure that the noise generated in the microcontroller was not transmitted to external devices. 4. Time-division transfer function UART UART is a mode in which 1-byte data, following a start bit, is transmitted or received, and which supports full-duplex operation. A UART dedicated baud rate generator is also provided, ensuring that communication can be established at the desired baud rate (in the range of 75 to 76800bps). An MIDI-standard baud rate can also be used. Having 2 sets of external pins, and with the new addition of a dedicated register (the SIPS register), the UART incorporated in the µPD780058/ PD780058/µPD780058Y PD780058Y Subseries can select which external pins to use. In this way, the UART can be used as a dummy 2-channel UART. In addition to serial channel 2, which includes the UART function, there is also serial channel 0, which is 3-wire/2-wire/SBI mode selectable, and can be used for general purposes, and serial channel 1, which includes a function to automatically transmit and receive up to 32 bytes of data without using software. 5. Analog input-supporting 8-bit resolution A/D converter The µPD780058/ PD780058/µPD780058Y PD780058Y Subseries is provided with an 8-bit resolution A/D converter. This A/D converter has eight channels of analog input, and a minimum conversion time of 19.1µs. NP-80GC/GK NP-80GC/GK IE-780000-XX-IF IE-780000-XX-IF IE-780058-NS-EM1 IE-780058-NS-EM1 DEVICE FILE DF780034A DF780034A D780009 D780009 I/F CABLE HOST MACHINE ID78K0 ID78K0 Power Source (IE-70000-MC-PS-B IE-70000-MC-PS-B) IE-78K0-NS IE-78K0-NS Fig. 3 Development Tool Configuration 6. 8-bit resolution D/A converter This can be used to control the analog data of the sensor circuits. 7. Dual-clock operation Two oscillators are provided: a main system clock for high-speed operations (5 MHz), and a subsystem clock for powersaving operations (32.768 kHz). These two system clocks can be switched using a program, as required by the application. 8. Real-time output port The output level of this port can be changed by synchronizing it with an external interrupt or timer/counter coincidence interrupt. Because the data output timing can be accurately controlled without relying on CPU operations, these products are well suited to applications that require real-time control, such as stepping motors, etc. 9. 16-bit timer/counter The general-purpose functions of these microcontrollers have been enhanced with the addition of, among others, an interval timer, 14-bit resolution PWM output, pulse width measurement, and an external event counter. With the further addition of a oneshot pulse output, and a programmable pulse generator function, the application range of these products has become extensive. Development Environment 1. In-circuit emulator (IE-78K0-NS IE-78K0-NS) This in-circuit emulator is lightweight and compact compared to the existing IE-78001R-A IE-78001R-A of the 78K/0 78K/0 Series. The IE-78K0-NS IE-78K0-NS is used in combination with the peripheral emulation board (IE-780058-NS-EM1 IE-780058-NS-EM1) that emulates the peripherals of the 78K/0 78K/0 Series. Figure 3 shows the hardware configuration of the IE-78K0-NS IE-78K0-NS. Despite the absence of the coverage and port trace functions present in the existing IE-78001-R-A IE-78001-R-A, the IE-78K0-NS IE-78K0-NS is more compact, and supports a PCMCIA card interface, making its configuration more suitable to user environments of the future. Emulation can also be performed by using a combination of the existing IE-78001-RA IE-78001-RA in-circuit emulator, peripheral emulation board (IE-780308-R-EM IE-780308-R-EM), and emulation probe conversion board (EP-78230GC-R/ EP-78230GC-R/ EP-78054GK-R EP-78054GK-R). 2. Integrated debugger In order to ensure that programs written in C and other languages at the source level can be debugged, NEC has chosen to employ a graphical interface, which can be used easily by anyone, as the user interface. In this case, the graphical user interface is Windows for PC-use, which offers the standard display and operability typical of this kind of interface. The integrated debugger completely supports the functions of the emulator, as well as a number of break and trace functions. It has, moreover, reinforced debugging functions that support C language, and can therefore display trace results in C level by using a window integrated function that links source program and disassembly display, and memory display, with trace results. 3. System simulator The system simulator is a software debug tool that combines the functions of an emulator and those of the target system. Through the use of the system simulator, verification of the logic and functions of the application system can be achieved independently of hardware development, resulting in enhanced development efficiency and improved software quality. 4. C compiler This C compiler conforms to ANSI standards. It also has expansion functions that allow the user to exploit the features of the 78K/0 78K/0 Series, thus enabling the generation of more efficient objects. In addition to the compiler, the C compiler has been supplied with all the compilation essentials, including runtime and standardfunction libraries, and a startup routine sample program. An optional source file for the standard-function library is also available. When using the compiler, an assembler package and a device file are necessary. 5. Assembler package This is an assembler package that can be used with any microcontroller in the 78K/0 78K/0 Series, and is used in combination with the optional device file of that microcontroller. This assembler supports a structured assembly language, which can enhance the program development efficiency. 6. Device file A device file contains information peculiar to a subseries. This file is necessary when using an in-circuit emulator, assembler, or C compiler. 7. Real-time OS A µITRON-based real-time OS that can enhance the efficiency of program development is available. 8. Flash programmer Flash programmer FL-PR3 is a tool for writing to flash memory. Using a serial communication, it can write to and erase flash memory either on board, or with a write adapter. Flash programmers FL-PR2 and FL-PR3 are products of Naitou Densei Machidaseisakusho Co., Ltd.