The µPD705100 (also called V830) is a microcontroller for incorporation use, which belongs to the V830 family
of the NEC original V800 seriesTM microcontrollers. The V830 can achieve high cost-performance for multimedia
equipment, by integrating quick real-time responses, high-speed arithmetic/logical instructions, and functions suitable
for individual applications.
The following user’s manual describes details of the functions of the V830. Be sure to read it before
designing an application system.
2.ADDRESS SPACE .....................................................................................................................8
2.1Memory Space ................................................................................................................................8
2.2I/O Space .........................................................................................................................................10
3.32-BIT BUS MODE.....................................................................................................................13
3.1Relationship between External Accesses and Byte Enable Signals .....................................13
4.16-BIT BUS MODE.....................................................................................................................14
4.116-Bit Bus Sizing ...........................................................................................................................1 4
A2-A27Tristate outputAddress busHi-ZH
A28-A31/CS0-CS3
D0-D31Tristate input/outputBidirectional data busHi-ZHi-Z
BE0, BE1Tristate outputIndicates which data bus can be usedHi-ZH
BE2/BHIndicates access to D16-D23/byte orHi-ZH
BE3/A1Indicates most significant byte access/A1Hi-ZH
ST0-ST3Indicates the status of a bus.Hi-Z0101
BCYSTIndicates the start of a bus cycle.Hi-ZH
R/WIndicates whether the bus cycle isHi-ZH
READYInputTerminates a bus cycle.-HLDRQRequests bus mastership.-HLDAKOutputResponse to HLDRQLH
SIZ16BInputFixes the bus width to 16 bits.-NMINonmaskable interrupt request--
Note
Address bus/chip selectHi-Z/HH
for data access.
halfword access.
address.
a read or write cycle.
INTMaskable interrupt request-INTV0-INTV3Indicates an interrupt level.-BCLKBus clock input-CMODESpecifies the frequency ratio for the--
external bus and the internal circuit.
ASELSelects A28-A31/CS0-CS3.-RESETResets the internal state.-VDD-Supplies positive power.-GNDGround potential--
Note When used for a chip select signal, this is held at the high level.
7
µ
PD705100
2. ADDRESS SPACE
2.1 Memory Space
The V830 uses four chip select/address pins and 26 address bus pins to represent a 32-bit address. When the
chip select function is used, a 256M-byte image space is created as three spaces and a 32M-byte image space is
created as one space. When the chip select function is not used, a 4G-byte linear address space is created.
Area 40000000H-7FFFFFFFH in the memory space is reserved as an uncachable area. When this area is
accessed, the cache function is not effective. For all other areas, the cache function is effective.
Within the memory space, built-in instruction RAM and built-in data RAM are mapped. By accessing these areas,
an instruction can be fetched and data loaded/stored within one cycle (internal clock) without activating a bus cycle
externally. Data in the built-in instruction RAM, however, cannot be accessed by using the load/store instructions. Nor
can instructions be fetched from the built-in data RAM. These built-in RAMs are mapped to the cachable area; however,
they are not cached.
The V830 represents the I/O space using 32 bits and supports a linear address space of up to 4G bytes.
The 1G-byte area C0000000H-FFFFFFFFH is reserved as an internal I/O area. External I/O cannot be placed in
this area. When accessing that part of the internal I/O area to which internal I/O is not allocated, normal operation
cannot be guaranteed.
Figure 2-2. I/O Map
FFFFFFFFH
Internal I/O area
(1G byte)
C0000000H
BFFFFFFFH
External I/O area
(1G byte)
80000000H
7FFFFFFFH
40000000H
3FFFFFFFH
00000000H
External I/O area
(1G byte)
External I/O area
(1G byte)
10
µ
PD705100
The cache function is not effective within the I/O space. When the chip select function is used, the area is used
as the 256M-byte image space represented by A2-A27.
Figure 2-3. Image Space Used When Chip Select Function is Used
FFFFFFFFH
Internal I/O area
C0000000H
BFFFFFFFH
Image 11
Image 10
Image 9
80000000H
7FFFFFFFH
40000000H
3FFFFFFFH
00000000H
Image 8
Image 7
Image 6
Image 5
Image 4
Image 3
Image 2
Image 1
Image 0
11
µ
PD705100
The upper 1G-byte area (C0000000H-FFFFFFFFH) in the I/O space is reserved for internal I/O. To access internal
I/O, the IN.W/OUT.W instructions (in words) must be used. When the internal I/O area is accessed, an external bus
cycle is not activated.
If the SIZ16B input, sampled at reset, is active, the external bus width becomes 16 bits (16-bit bus mode). In this
mode, the low-order 16 bits (D0-D15) of the data bus are valid, BE2/BH acts as BH and BE3/A1 acts as A1. The highorder 16 bits (D16-D31) of the data bus enter the high-impedance state.
4.1 16-Bit Bus Sizing
The V830 has a bus sizing function by which, to enable access from the data bus to 16 bits of memory or the
I/O space, data can be transferred using only the low-order 16 bits of the 32-bit data bus.
When the SIZ16B input is activated upon a reset, the external data bus width becomes 16 bits (16-bit bus mode).
In 16-bit bus mode, D16-D31 are all set to the high-impedance state and BE0, BE1, BH, and A1 are output in a way
suited to a 16-bit bus system. Connection to D16-D31 is not necessary. The SIZ16B input can be changed only when
the V830 is reset. It cannot be changed at any other time.
4.1.1 Byte/halfword access
Bus cycles in either of two bus states (Ta and Ts) are used for byte/halfword access.
(1) Upper halfword
During read cycles, data is read from D0-D15.
During write cycles, D16-D31 data read from the write buffer is output to D0-D15.
Figure 4-1 illustrates the operation for upper halfword access. In this figure, B indicates the upper halfword (highorder 16 bits of the word).
Read cycle
Internal
operation
unit
Figure 4-1. Upper Halfword Access
Read buffer
31
B
16
15
0
Data bus
31
16
15
B
0
Write cycle
Internal
operation
unit
Write buffer
31
B
16
15
0
Data bus
31
16
15
B
0
14
µ
PD705100
(2) Lower halfword
During read cycles, data is read from D0-D15.
During write cycles, D0-D15 data read from the write buffer is output to D0-D15.
Figure 4-2 shows the operation for lower halfword access. In this figure, A indicates the lower halfword (low-order
16 bits of the word).
Figure 4-2. Lower Halfword Access
Read cycleWrite cycle
Read buffer
31
31
Data bus
Write buffer
31
Data bus
31
Internal
operation
unit
16
15
16
15
A
0
A
0
Internal
operation
unit
16
15
16
15
A
0
A
0
4.1.2 Word access
Bus cycles in any of three bus states (Ta, Tw1, and Tw2) are used for word access.
During a read cycle, the low-order 16 bits of data and high-order 16 bits of data are sampled from D0-D15 in the
Tw1 and Tw2 state, respectively. During write cycles, the low-order 16 bits of data and high-order 16 bits of data are
output to D0-D15 in the Ta/Tw1 state and Tw2 states, respectively.
Figure 4-3. Read Cycle
Internal
operation
unit
Tw1 state
Read buffer
31
16
15
0
Data bus
31
16
15
A
A
0
Tw2 state
Internal
operation
unit
Read buffer
31
B
16
15
A
0
Data bus
31
16
15
B
0
15
Figure 4-4. Write Cycle
µ
PD705100
Ta, Tw1 state
Internal
operation
unit
Write buffer
3131
B
16
15
A
0
Data bus
16
15
A
0
Internal
operation
unit
Tw2 state
Write buffer
31
16
15
0
Data bus
31
B
16
15
B
0
4.2 Relationship between External Access and Byte Enable Signals
In 16-bit bus mode, the BE3/A1 output acts as A1 and BE2/BH output acts as BH. External accesses are related
V830 interrupts include maskable interrupts, nonmaskable interrupts, and reset operations.
5.1 Maskable Interrupts
Maskable interrupt requests are themselves denoted by INT, and their interrupt levels by INTV0 to INTV3.
The following lists pin states and the corresponding interrupt levels.
INT and INTV0 to INTV3 are level inputs. The V830 samples an INT at the rising edge of a bus clock
pulse. INT and INTV0 to INTV3 should be held at the active level until the V830 accepts the interrupt request and
posts to a peripheral, by software, notification of the acceptance of the interrupt request. Although a change to a higher
interrupt level is possible, the timing at which an interrupt request is detected cannot then be posted to peripheral.
Hence, an interrupt request made before such a change may be accepted. If the interrupt request input (INT, INTV0INTV3) fails to satisfy the setup time requirement for the bus clock pulse, the interrupt request will be detected at the
rising edge of the next bus clock pulse.
Upon accepting an interrupt request, the V830 jumps to a fixed address to start interrupt handling. The target
address of the jump is set to FE0000n0H (built-in RAM) or FFFFFEn0H (external memory), where n is the interrupt
level, either of which may be specified with the IHA bit of the system register, HCCW.
Caution Interrupt level 15 is reserved for use by development tools (in-circuit emulator, ROM emulator,
etc). If the user uses interrupt level 15, those development tools may fail to operate.
17
µ
PD705100
5.2 Nonmaskable Interrupts
The V830 samples an NMI at the rising edge of a bus clock pulse. When the NMI changes from the high to low
level, an interrupt request is detected. Once a nonmaskable interrupt request has been detected, the NMI can
subsequently be deactivated at any time because the NMI is detected at the falling edge. An interrupt request thus
detected is retained in the CPU until the CPU starts interrupt handling.
Upon accepting a nonmaskable interrupt, the V830 jumps to the fixed address (FFFFFFD0H). If another
nonmaskable interrupt is issued during nonmaskable interrupt handling (the NP bit of PSW is set to1), it is retained
in the processor. If, however, another nonmaskable interrupt request is issued during clearing of the latch circuit by
internal processing after the start of nonmaskable interrupt handling, it is not retained in the processor.
5.3 Reset
The V830 can be reset by inputting a low-level signal of 20 or more clock pulses to RESET. After the V830 has
been reset, the CPU starts program execution from address FFFFFFF0H.
If RESET is driven high, the CPU starts instruction fetching from the reset address.
Immediately after power-on or in the stop-mode state, the active pulse width of the RESET should be determined
by adding the PLL oscillation settling time to the active level of 20 clock pulses.
18
µ
PD705100
6. CLOCK CONTROLLER
6.1 Operation Modes
The V830 supports two clock stop functions, namely, sleep mode and stop mode. Transition from one mode to
another is made by executing special instructions HALT or STBY. The following lists the features of these modes:
PLL operation continuousPLL operation stop
Bus hold acceptableBus hold unacceptable
Built-in RAM/cache data holdBuilt-in RAM/cache data hold
Entry to modeHALT instructionSTBY instruction
Escape from modeMaskable interrupt/NMI/resetNMI/reset
6.1.1 Sleep mode
The V830 enters sleep mode upon the execution of a HALT instruction. On the other hand, escape from sleep
mode can be realized by a maskable interrupt, NMI, or reset operation.
In sleep mode, bus hold requests can be accepted. During bus hold, the status becomes high impedance and no
halt acknowledge status is output. At the end of bus hold, a halt acknowledge status is output in sync with the rising
edge of a bus clock pulse.
6.1.2 Stop mode
The V830 enters stop mode when an STBY instruction is executed. On the other hand, escape from stop mode
can be realized using an NMI or a reset operation. The power consumption in stop mode is less than that in the sleep
mode because the PLL circuit stops.
Also, no bus hold requests are accepted in the stop mode.
19
µ
PD705100
7. INTERNAL MEMORY
The V830 has a 4K bytes × 4 internal memory, consisting of four blocks (instruction cache, data cache, instruction
RAM, and data RAM). The V830 allows any of these internal memory blocks to be accessed in one cycle.
Figure 7-1. Built-In Cache Configuration
Instruction bus
V830 CPU
core
Instruction cache
Decoder
Execution unit
Data bus
Cautions 1. Data can not be written into the instruction cache or instruction RAM.
2. A instruction can not be written into the data cache or data RAM.
Instruction RAM
External memory
Data cache
Data RAM
20
Loading...
+ 46 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.