h8s-2161b Renesas Electronics Corporation., h8s-2161b Datasheet - Page 616

no-image

h8s-2161b

Manufacturer Part Number
h8s-2161b
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 19 Host Interface LPC Interface (LPC)
19.4
19.4.1
The host interface is activated by setting one of bits LPC3E to LPC1E in HICR0 to 1 in single-
chip mode. When the host interface is activated, the related I/O ports (ports 37 to 30, ports 83 and
82) function as dedicated host interface input/output pins. In addition, setting the FGA20E, PMEE,
LSMIE, and LSCIE bits to 1 adds the related I/O ports (ports 81 and 80, ports B0 and B1) to the
host interface’s input/output pins.
Use the following procedure to activate the host interface after a reset release.
1. Read the signal line status and confirm that the LPC module can be connected. Also check that
2. When using channel 3, set LADR3 to determine the channel 3 I/O address and whether
3. Set the enable bit (LPC3E to LPC1E) for the channel to be used.
4. Set the enable bits (GA20E, PMEE, LSMIE, and LSCIE) for the additional functions to be
5. Set the selection bits for other functions (SDWNE, IEDIR).
6. As a precaution, clear the interrupt flags (LRST, SDWN, ABRT, OBF). Read IDR or TWR15
7. Set interrupt enable bits (IBFIE3 to IBFIE1, ERRIE) as necessary.
19.4.2
There are ten kinds of LPC transfer cycle: memory read, memory write, I/O read, I/O write, DMA
read, DMA write, bus master memory read, bus master memory write, bus master I/O read, and
bus master I/O write. Of these, the chip's LPC supports only I/O read and I/O write cycles.
An LPC transfer cycle is started when the LFRAME signal goes low in the bus idle state. If the
LFRAME signal goes low when the bus is not idle, this means that a forced termination (abort) of
the LPC transfer cycle has been requested.
In an I/O read cycle or I/O write cycle, transfer is carried out using LAD3 to LAD0 in the
following order, in synchronization with LCLK. The host can be made to wait by sending back a
value other than B 0000 in the slave’s synchronization return cycle, but with the chip’s LPC a
value of B 0000 is always returned.
Rev. 3.00 Mar 21, 2006 page 562 of 788
REJ09B0300-0300
the LPC module is initialized internally.
bidirectional data registers are to be used.
used.
to clear IBF.
Operation
Host Interface Activation
LPC I/O Cycles

Related parts for h8s-2161b