The µPD705102 (V832) is a 32-bit RISC microprocessor for embedded control applications, with a highperformance 32-bit V830TM processor core and many peripheral functions such as a SDRAM/ROM controller, 4channel DMA controller, real-time pulse unit, serial interface, interrupt controller, and power management.
In addition to high interrupt response speed and optimized pipeline structure, the V832 offers sum-of-products
operation instructions, concatenated shift instructions, and high-speed branch instructions to realize multimedia
functions, and therefore can provide high performance in multimedia systems such as Internet/intra-net systems, car
navigation systems, digital still cameras, and color faxes.
Detailed function descriptions are provided in the following user’s manuals. Be sure to read them before
designing.
V832 User’s Manual — Hardware:U13577E
TM
V830 Family
FEATURES
• CPU function
• V830-compatible instructions
• Instruction cache:4 Kbytes
• Instruction RAM:4 Kbytes
• Data cache:4 Kbytes
• Data RAM:4 Kbytes
• Minimum number of instruction
execution cycles:1 cycle
• Number of general purpose
registers:32 bits × 32
• Standby function: HALT, STOP, and power management modes
• Debug function
multiplexed with
internal sources)
• Debug-dedicated synchronous serial
interface:1 channel
• Trace-dedicated interface:1 channel
The information in this document is subject to change without notice. Before using this document, please
confirm that this is the latest version.
Not all devices/types available in every country. Please check with local NEC representative for availability
and additional information.
Document No. U13675EJ2V1DS00 (2nd edition)
Date Published July 1999 N CP(K)
Printed in Japan
CautionDirectly connect the IC1 (Internally connected 1) pin to GND_O.
2
Data Sheet U13675EJ2V1DS00
PORTB0/TI
INTP10/TO10
INTP12/TO11
PORTB5/INTP11
PORTB3/INTP13
_I
DD
V
PORTB1/TCLR
PIN NAMES
µ
PD705102
A1 to A23:Address Bus
BCYST:Bus Cycle Start
BT16B:Boot Bus Size 16-bit
CAS:Column Address Strobe
CKE:Clock Enable
CLKOUT:Clock Out
CMODE:Clock Mode
CS0 to CS7:Chip Select
D0 to D31:Data Bus
DCK:Debug Clock
DDI:Debug Data Input
DDO:Debug Data Output
DMAAK0 to DMAAK3:
4.INTERRUPT/EXCEPTION PROCESSING FUNCTION ..................................................................... 12
5.BUS CONTROL FUNCTION .............................................................................................................. 14
6.WAIT CONTROL FUNCTION ............................................................................................................. 14
7.MEMORY ACCESS CONTROL FUNCTION ...................................................................................... 15
7.1SDRAM Control Function .......................................................................................................................... 15
7.2Page-ROM Control Function ..................................................................................................................... 17
8.DMA FUNCTION ................................................................................................................................ 18
9.SERIAL INTERFACE FUNCTION ...................................................................................................... 20
9.1Asynchronous Serial Interface (UART)....................................................................................................20
9.2Clocked Serial Interface (CSI) ................................................................................................................... 22
15.1 Instruction Format .....................................................................................................................................36
Controls the address bus, data bus, and control bus pins. The major functions of BCU are as follows:
(a) Bus arbitration
Arbitrates the bus mastership among bus masters (CPU, SDRAMC, DMAC, and external bus masters). The
bus mastership can be changed after completion of the bus cycle under execution, and in an idle state.
(b) Wait control
Controls eight areas in the 16-Mbyte space corresponding to eight chip select signals (CS0 through CS7).
Generates chip select signals, controls wait states, and selects the type of bus cycle.
(c) SDRAM controller
Generates commands and controls access to SDRAM. CAS latency is 2 only.
(d) ROM controller
Accessing ROM with page access function is supported. The bus cycle immediately before and addresses
are compared, and wait states are controlled in the normal access (off-page) or page access (on-page)
modes. A page width of 8 bytes to 16 bytes can be supported.
PD705102
(2) Interrupt controller (ICU)
Services maskable interrupt requests (INTP00 through INTP03, and INTP10 through INTP13) from internal
peripheral hardware and external sources. The priorities of these interrupt requests can be specified in units of
four groups, and edge-triggered or level-triggered interrupts can be nested.
(3) DMA controller (DMAC)
Transfers data between memory and I/O in place of CPU. The transfer type is 2-cycle transfer. Two transfer
modes, single transfer and demand transfer, are available.
(4) Serial interface (UART/CSI/BRG)
One asynchronous serial interface (UART) channel and one clocked serial interface (CSI) channel is provided.
As the serial clock source, the output of the baud rate generator (BRG) and the bus clock can be selected.
(5) Real-time pulse unit (RPU)
Provides timer/counter functions. The on-chip 16-bit timer/event counter and 16-bit interval timer can be used
to calculate pulse intervals and frequencies, and to output programmable pulses.
(6) Clock generator (CG)
A frequency six or eight times higher than that of the resonator connected to the X1 and X2 pins is supplied as
the operating clock of the CPU. In addition, both a bus clock, which functions as the operating clock of the
peripheral units, and SDCLKOUT, which functions as an operating clock, are supplied from the CLKOUT pin. An
external clock can be also input instead of connecting a resonator.
For reducing the power consumption, the function switching the frequencies of the CPU clock and bus clock with
power management control (PMC) is provided.
9Data Sheet U13675EJ2V1DS00
µ
(7) Port (PIO)
Provides port functions. Twenty-one I/O ports are available. The pins of these ports can be used as port pins
or other function pins.
(8) System control unit (SYU)
A circuit that eliminates noise on the RESET signal (input)/NMI signal (input) is provided.
(9) Debug control unit (DCU)
A circuit to realize mapping and trace functions is provided to implement basic debugging functions.
PD705102
10
Data Sheet U13675EJ2V1DS00
3. CPU FUNCTION
The features of the CPU function are as follows:
• High-performance 32-bit architecture for embedded control applications
• Cache memory
Instruction cache: 4 Kbytes
Data cache:4 Kbytes
• Internal RAM
Instruction RAM: 4 Kbytes
Data RAM:4 Kbytes
• 1-clock pitch pipeline structure
• 16-/32-bit length instruction format
• Address/data separated type bus
• 4-Gbyte linear address
• Thirty-two 32-bit general registers
• Register/flag hazard interlock is handled by hardware
• 16 levels of interrupt response
• 16-bit bus fixed function
• 16-bit bus system can be constructed
• Ideal instructions for any application field:
• Sum-of-products operation
• Saturation operation
• Branch prediction
• Concatenation shift
• Block transfer instruction
µ
PD705102
11Data Sheet U13675EJ2V1DS00
4. INTERRUPT/EXCEPTION PROCESSING FUNCTION
The features of the interrupt/exception processing function are as follows:
• Interrupt
• Non-maskable interrupt: 1 source
• Maskable interrupt:15 sources
• Priority of the programmable interrupt can be specified in four levels
• Nesting interrupt can be controlled according to the priority
• Mask can be specified for each maskable interrupt request
• Valid edge of an external interrupt request can be specified
• Noise elimination circuit provided for the non-maskable interrupt pin (NMI)
• Exception
• Software exception: 32 sources
• Exception trap:4 sources
The interrupt/exception sources are shown in Tables 4-1 and 4-2.
Table 4-1. Reset/Non-maskable Interrupt/Exception Source List
µ
PD705102
TypeClassificationSource of Interrupt/ExceptionException CodeHandlerRestore
Note 1
Name
ResetInterruptRESETReset inputFFF0HFFFFFFF0H Undefined
Non-maskableInterruptNMINMI inputFFD0HFFFFFFD0H next PC
Software exceptionExceptionTRAP 1nHTRAP instructionFFBnHFFFFFFB0H next PC
TRAP 0nHTRAP instructionFFAnHFFFFFFA0H
Exception trapExceptionNMIDual exceptionNote 4FFFFFFD0H current PC
Notes 1. The PC value saved to EIPC when interrupt processing is started.
2. Execution of all instructions cannot be stopped by an interrupt.
3. FFFFFEn0H can be selected as a handler address when HCCW.IHA = 0, and FE0000n0H can be
selected when HCCW.IHA = 1 (n = 0H to FH).
CautionThe exception codes and handler addresses of the maskable interrupts shown above are the
values if the default priority (IGP = E4H) is used. The correspondence between the interrupt
source and the handler address is changed from Table 4-2 if the priority of the group (GR0 to
GR3) is changed according to the value of the interrupt group priority register (IGP).
13Data Sheet U13675EJ2V1DS00
5. BUS CONTROL FUNCTION
The features of the bus control function are as follows:
• SDRAM, Page-ROM, SRAM (ROM) or I/O can be directly connected
• SDRAM read/write access with 1 bus clock minimum
• SDRAM byte access control with four ××DQM signals
• Wait control with READY signal
• RAM, ROM or I/O byte access control with four ××BEN signals
• 32-/16-bit bus width can be set every CS space
• When the 16-bit memory or I/O are accessed by data bus, the external data bus width can be set by the data
bus width control register (DBC).
Remarks 1. ××BEN: LLBEN, LUBEN, ULBEN, UUBEN
2. ××DQM: LLDQM, LUDQM, ULDQM, UUDQM
6. WAIT CONTROL FUNCTION
The features of the wait control function are as follows:
• Controls 8 blocks in accordance with I/O and memory spaces
• Linear address space of each block: 16 Mbytes
• Bus cycle select function
Block 0:SDRAM
Block 1:SDRAM, SRAM (ROM) selectable
Block 2:SRAM (ROM)
Blocks 3 through 6: I/O or SRAM (ROM) selectable
Block 7:Page-ROM or SRAM (ROM) selectable
• Data bus width select function
Data bus width selectable between 32 bits and 16 bits for each block
• Wait control function
Blocks 0 and 1:SDRAM wait control function is not provided
Blocks 1 through 4 and 7: 0 to 7 wait states
Blocks 5 and 6:0 to 15 wait states
• Idle state insertion function
0 to 7 states for each block (bus clock)
µ
PD705102
14
Data Sheet U13675EJ2V1DS00
7. MEMORY ACCESS CONTROL FUNCTION
The features of the memory access control function are as follows:
• Timing control of SDRAM access
Command interval from REF to REF/ACT: 3 to 6 bus clocks selectable
Command interval from ACT to PRE: 3 or 4 bus clocks selectable
Command interval from PRE to ACT: 1 or 2 bus clocks selectable
Command interval from ACT to READ/WRITE: 1 or 2 bus clocks selectable
CAS latency: 2 bus clocks fixed
• Auto refresh and self-refresh functions
• 8-bank control (4 banks × 2 blocks)
• Page-ROM control function
• Page size: 8 or 16 bytes
• Wait control during page access: 0 to 7 wait states
µ
PD705102
7.1 SDRAM Control Function
The BCU generates RAS, CAS, WE, CS0, CS1, CKE, LLDQM, LUDQM, ULDQM, and UUDQM signals and controls
access to the SDRAM. Addresses are output to the SDRAM from the address pins by multiplexing row and column
addresses.
The connected SDRAM must be of ×8 bits or more.
The refresh mode is a CAS-before-RAS (CBR) mode, and the refresh cycle can be arbitrarily set.
Self refresh is performed in the STOP mode.
(1) Address multiplex function
An address is multiplexed as shown in Tables 7-1 and 7-2 when row and column addresses are output in the
SDRAM cycle, depending on the values of the RAW and CAW bits of the SDRAM configuration register (SDC).
In the tables, a1 through a23 indicate the address output by the CPU, and A1 through A15 indicate the address
pins of the V832.
15Data Sheet U13675EJ2V1DS00
Table 7-1. Output of Row Address and Column Address (32-bit data width)
µ
PD705102
BAWRAWCAWOutput Timing
00000Column address(a15)(a14)a21*AP(a11)(a10)a9 to a2
Row addressa23a22a21*a20a19a18a17 to a10
00001Column address(a15)(a14)a22*AP(a11)a10a9 to a2
Row address(a15)a23a22*a21a20a19a18 to a11
10000Column address(a15)a22*a21*AP(a11)(a10)a9 to a2
Row addressa23a22*a21*a20a19a18a17 to a10
10001Column address(a15)a23*a22*AP(a11)a10a9 to a2
Row address(a15)a23*a22*a21a20a19a18 to a11
10100Column addressa23*a22*(a13)AP(a11)(a10)a9 to a2
Row addressa23*a22*a21a20a19a18a17 to a10
A15A14A13A12A11A10A9 to A2
External Address Pin
Remarks 1. * indicates bank address specification.
2. AP is a bit used to specify a command and is fixed to low level.
3. Addresses in parentheses (a××) and A1 and A16 through A23 pins do not multiplex addresses and
always output the original values.
Table 7-2. Output of Row Address and Column Address (16-bit data width)
BAWRAW CAWOutput Timing
00000Column address(a15)(a14)(a13)a20*AP(a10)(a9)a8 to a1
Row addressa23a22a21a20*a19a18a17a16 to a9
00001Column address(a15)(a14)(a13)a21*AP(a10)a9a8 to a1
Row address(a15)a23a22a21*a20a19a18a17 to a10
10000Column address(a15)(a14)a21*a20*AP(a10)(a9)a8 to a1
Row addressa23a22a21*a20*a19a18a17a16 to a9
10001Column address(a15)(a14)a22*a21*AP(a10)a9a8 to a1
Row address(a15)a23a22*a21*a20a19a18a17 to a10
10100Column address(a15)a22*a21*(a12)AP(a10)(a9)a8 to a1
Row addressa23a22*a21*a20a19a18a17a16 to a9
A15A14A13A12A11A10A9 A8 to A1
External Address Pin
Remarks 1. * indicates bank address specification.
2. AP is a bit used to specify a command and is fixed to low level.
3. Addresses in parentheses (a××) and A16 through A23 pins do not multiplex addresses and always
output the original values.
16
Data Sheet U13675EJ2V1DS00
µ
PD705102
(2) On-page/off-page decision
When the PAE bit of the SDRAM configuration register (SDC) is 1 (page access enabled), whether the SDRAM
access to be started is in the same page as the previous SDRAM access is decided. When the PAE bit is 0,
the off-page cycle is always started. Table 7-3 shows the relation between an address to be compared and address
shift.
Table 7-3. Address Compared by on-page/off-page Decision
Address ShiftData Bus Width
16 bits32 bits
8a23 to a9a23 to a10
9a23 to a10a23 to a11
(3) Refresh function
The BCU can automatically generate the distributed auto refresh cycle necessary for refreshing the SDRAM.
Whether refreshing is enabled or disabled and the refresh interval are set by the refresh control register (RFC).
The BCU has a refresh request queue that can store refresh requests up to seven times.
7.2 Page-ROM Control Function
The BCU controls page access to the Page-ROM. Page access to the Page-ROM is valid during burst access.
The page size (8 bytes/16 bytes) and the number of wait states (0 wait/1 wait) during page access can be set by using
the Page-ROM configuration register (PRC).
17Data Sheet U13675EJ2V1DS00
8. DMA FUNCTION
The features of the DMA function are as follows:
• Four independent DMA channels
• Transfer unit: bytes, half words (2 bytes), words (4 bytes)
24
• Maximum number of transfers: 16,777,216 (2
• Transfer type: 2-cycle transfer
• Two transfer modes
• Single transfer mode
• Demand transfer mode
• Transfer request
• External DMARQ pin (×4)
• Request from internal peripheral hardware (serial interface (×3 channels) and timer)
• Request from software
• Transfer source and destination
• Between memory and I/O
• Between memory and memory
• Programmable wait function
• DMA transfer end signal output (TC)
) times
µ
PD705102
18
Data Sheet U13675EJ2V1DS00
The configuration of the DMA controller (DMAC) is shown below.
Figure 8-1. Block Diagram of DMAC
DMAC
µ
PD705102
ROM
RAM
I/O
I/O
Internal I/O
External bus
Address control block
Internal peripheral I/O bus
Counter control block
Channel control block
INTSR
INTCM4
INTDMA
BCU
INTST
INTCSI
TC
DMAAK0 to 3
DMARQ0 to 3
Bus interface
DMA source address
register (DSA)
DMA destination address
register (DDA)
DMA transfer count
register (DBC)
DMA control register
(DCHC, DC)
19Data Sheet U13675EJ2V1DS00
9. SERIAL INTERFACE FUNCTION
The following channels are provided for the serial interface function.
• Asynchronous serial interface (UART): 1 channel
• Clocked serial interface (CSI):1 channel
• Baud rate generator (BRG):1 channel
9.1 Asynchronous Serial Interface (UART)
The features of the asynchronous serial interface (UART) are as follows:
• Full duplex communication. Receive buffer (RXB) is provided (transmit buffer (TXB) is not provided).
• Two-pin configuration (The UART of the V832 does not have the SCLK and CTS pins.)
• TXD: Transmit data output pin
• RXD: Receive data input pin
• Transfer rate: 300 bps to 153600 bps (bus clock: 47.6 MHz, with BRG)
: 150 bps to 76800 bps (bus clock: 35.7 MHz, with BRG)
• Baud rate generator
φ
Serial clock source can be selected from baud rate generator output or bus clock (
• Receive error detection function
• Parity error
• Framing error
• Overrun error
• Three interrupt sources
• Receive error interrupt (INTSER)
The interrupt request is generated by ORing three types of receive errors.
• Receive end interrupt (INTSR)
The receive end interrupt request is generated after completion of receive data transfer from the shift register
to the receive buffer in the reception enabled status.
• Transmit end interrupt (INTST)
The transmit end interrupt request is generated after completion of serial transfer of transmit data (9, 8, or
7 bits) from the shift register. The character length of the transmit/receive data is specified by the ASIM00
and ASIM01 registers.
• Character length: 7 or 8 bits
: 9 bits (with extension bit appended)
• Parity function: Odd, even, 0, or none
• Transmit stop bit: 1 or 2 bits
)
µ
PD705102
20
Data Sheet U13675EJ2V1DS00
The configuration of the asynchronous serial interface (UART) is shown below.
Figure 9-1. Block Diagram of UART
Internal peripheral I/O bus
µ
PD705102
16/8
RXB0
RXD
TXD
RXB0L
Receive buffer
Receive shift
register
Receive
control parity
check
1/16
8
Status register
ASIS0
Transmit shift
register
Transmit control
parity append
Remarkφ = bus clock:48 M to 1.3 MHz: @input clock 6×
:36 M to 0.73 MHz: @input clock 8×
16/8
1/16
TXS0
TXS0L
1/2
8
Mode register
SEL
ASIM00
ASIM01
INTSER
INTST
INTSR
φ
Baud rate generator
21Data Sheet U13675EJ2V1DS00
9.2 Clocked Serial Interface (CSI)
The features of the clocked serial interface (CSI) are as follows: