The powerful 16-bit XA CPU core and rich feature set make the
XA-H3 and XA-H4 devices ideal for high-performance real-time
applications such as industrial control and networking. By supporting
of up to 32 MB of external memory, these devices provide a low-cost
solution to embedded applications of any complexity. Features like
DMA, memory controller and four advanced UARTs help solve I/O
intensive tasks with a minimum of CPU load.
FEA TURES
•Large Memory Support (up to 6 MB external)
•De-multiplexed Address/Data Bus
•Six Programmable Chip Selects
– Support for Unified Memory – allows easy user modification of
all code
– External ISP Flash support for easy code download
•Dynamic Bus Sizing – each of 6 Chip Selects can be programmed
for 8-bit or 16-bit bus.
The XA-H3 feature set is a subset of the XA-H4 (see Table 1). The
XA-H3/H4 devices are members of the Philips XA (eXtended
Architecture) family of high performance 16-bit microcontrollers.
The XA-H3 and XA-H4 are designed to significantly minimize the
need for external components.
•Dynamic Bus Timing – each of 6 chip selects has individual
programmable bus timing.
•32 Programmable General Purpose I/O Pins
•Four UARTs with 230.4 kbps capability
•Eight DMA Channels
Table 1. XA-H3 and XA-H4 features comparison
FeatureXA-H3XA-H4
Maximum External Memory
(Harvard Memory Mode)
Maximum External Memory (Unified Memory Mode)6 MB16 MB
Memory Controller supports both Harvard and Unified architecturesYesYes
De-multiplexed Address/Data BusYesYes
DRAM ControllerNoYes
DMA Channels88
Dynamic Bus SizingYesYes
Dynamic Bus TimingYesYes
Programmable Chip Selects66
General Purpose IO Pins3333
Potential Interrupt Pins1616
Interrupts (programmable priority)7 Standard SW
Counter/Timers2 plus Watchdog2 plus Watchdog
Baud Rate Generators
Serial Ports4 UARTS4 USARTS
Maximum Serial Data Ratesasynch to 230.4 kbps (no sync)asynch to 230.4 kbps
Match CharactersNo 4 async chars per USART
Hardware AutobaudNoup to 230.4 kbps
SCP/SPI BusNo
NOTE:
1. Can be used as additional counters if not needed as BRGs.
*In either memory architecture, the XA-H3 can support a maximum of
6 MB because each of six Chip Selects is capable of 1 MB each. In
Unified architecture, Code and Data can share the same physical
Memory Chip and address space.
Code Space + Data Space = 6 MB Maximum Total with 1 MB per Chip Select. Each CS
(and thus, 1 MB space) can support either Code or Data in Harvard architecture.
XTALOut61ICrystal 2: Output from the oscillator amplifier.
CS049O
CS148OChip Select 1*: Chip Selects 1 through 5 come out of reset disabled. They function as normal chip
CS247OChip Select 2 *: Active low Chip Selects CS1 through CS5 come out of reset disabled. They can
CS346OChip Select 3 *: See Chip Select 2 for description.
See Pins 56, 57 for 2 additional Chip Selects
WE50OWrite Enable: Goes active low during all bus write cycles only.
OE51OOutput Enable: Goes active low during all bus read cycles only.
BLE54OByte Low Enable: Goes active low during all bus cycles that access data bus lines D7 – D0, read
BHE53OByte High Enable: Goes active low during all bus cycles that access data bus lines D15 – D8,
ClkOut45OClock Output: This pin outputs a buffered version of the internal CPU clock. The clock output may
A19 – A024 – 21,
D15 – D042 – 30,
P0.090I/OP0.0_BRG0*: Port 0 Bit 0, or UART0 BRG output, or UART0 TxClk output1
P0.191I/OP0.1_RTS0: Port 0 Bit 1 , or UART0 RTS (Request T o Send) output.1
P0.292I/OP0.2_CTS0: Port 0 Bit 2, or UART0 CTS (Clear T o Send) input.1
P0.393I/OP0.3_CD0: Port 0 Bit 3, or UART0 Carrier Detect input.1
P0.494I/OP0.4_TRClk0: Port 0 Bit 4, or UART0 TR clock input.1, 2
P0.595I/OP0.5_RTClk0 : Port 0 Bit 5, or UART0 RT clock input.1, 2
P0.699I/OP0.6: Port 0 Bit 61
P0.7100I/OP0.7: Port 0 Bit 71
TxD096OTxD0: Transmit data for UART0.
Lqfp
Pin No.
1, 19, 28,
44, 59,
76, 88
2, 20, 29,
43, 62,
77, 89
52I
18 – 3
27 – 25
TypeName and Function
Ground: 0 V reference.
I
Power Supply: This is the power supply voltage for normal, idle, and power down operation.
I
Reset: A low on this pin resets the microcontroller, causing I/O ports and peripherals to take on
their default states, and the processor to begin execution at the address contained in the reset
vector.
Wait/Size16: During Reset, this input determines bus size for boot device (“1” = 16-bit boot device;
“0” = 8-bit.) During normal operation this is the Wait input (“1” = Wait; “0” = Proceed.)
Crystal 1: Input to the inverting amplifier used in the oscillator circuit and input to the internal clock
generator circuits.
Chip Select 0: This output provides the active low chip select to the boot device (usually ROM or
Flash.) From reset, it is enabled and mapped to an address range based at 000000h. It can be
remapped by software to a higher base in the address map (see the “Memory Interface” chapter in
XA-H3 User Manual
the
selects on the H3. CS1 can be “swapped” with CS0 (see the SWAP operation in the “Memory
Controller” chapter of the
after the swap, but is capable of being based anywhere in the 16 MB address space.
be programmed to function as normal chip selects. CS2 through CS5 are not used with the
“SWAP” operation (only /CS0 and CS1 can be swapped; see “Memory Controller” chapter in the
XA-H3 User Manual
or write.
read or write. Never goes active on an 8-bit bus; always goes active on Reads or Fetches on a
16-bit bus, even if the processor does not need these bits. In other words, all Reads (byte or word)
on a 16-bit bus, assert BHE
be used in conjunction with the external bus to synchronize WAIT state generators, etc. The clock
output may be disabled by software. WARNING: The capacitive loading on this output must not
exceed 40 pf.
OAddress[19:0]: These address lines output A19 – A0 during all external bus cycles.
I/OData[15:0]: Bi-directional data bus, D15 – D0; for those bus cycles that are programmed to occur
on an “8-bit bus”, D15 – D8 are unused.
.)
XA-H3 User Manual
.) They are mappable to any region of the 16 MB address space.
GPOut98OGPOut – General Purpose Output Bar: Similar to GPIO, but Push/Pull and inverted output only.
P1.068I/OP1.0_RxD2: Port 1 Bit 0, or UART2 RxD input
P1.169I/OP1.1_TxD2: Port 1 Bit 1, or UART2 TxD output
P1.270I/OP1.2_RTClk2 : Port 1 Bit 2, or UART2 RT Clock input2
P1.371I/OP1.3_TRClk2: Port 1 Bit 3, or UART2 TR Clock input2
P1.472I/OP1.4_CD2: Port 1 Bit 4, or UART2 Carrier Detect input
P1.573I/OP1.5_CTS2: Port 1 Bit 5, or UART2 Clear T o Send input
P1.674I/OP1.6_RTS2: Port 1 Bit 6, or UART2 Request T o Send output
P1.775I/OP1.7_BRG2: Port 1 Bit 7, or BRG output, or TxClk output (see UART clk diagrams in the
P2.080I/OP2.0_RxD3: Port 2 Bit 0, or UART3 Rx Data input
P2.181I/OP2.1_TxD3: Port 2 Bit 1, or UART3 Tx Data output
P2.282I/OP2.2_RTClk3 : Port 2 Bit 2, or UART3 RT Clock input2
P2.383I/OP2.3_ComClk_TRClk3: Port 2 Bit 3, or UART3 TR Clock input2
P2.484I/OP2.4_CD3: Port 2 Bit 4, or UART3 Carrier Detect input
P2.585I/OP2.5_CTS3: Port 2 Bit 5, or UART3 Clear T o Send input
P2.686I/OP2.6_RTS3: Port 2 Bit 6, or UART3 Request T o Send output
P2.787I/OP2.7_BRG3: Port 2 Bit 7, or BRG output, or TxClk output (see UART clock diagrams in the
P3.056I/OP3.0_CS4_RTClk1: Port 3 Bit 0, or CS4 output, or UART1 RT Clock input
P3.157I/O
P3.258I/O
P3.363I/OP3.3_Timer1_BRG1: Port 3 Bit 3, or Timer1 input or output, or UART1 BRG output.
P3.464I/OP3.4_CTS1: Port 3 Bit 4, or UART1 Clear T o Send input
P3.565I/OP3.5_RxD1: Port 3 Bit 5, or UART1 Receive Data input
P3.666I/OP3.6_TxD1: Port 3 Bit 6, or UART1 Transmit Data output
P3.767I/OP3.7_Int1 _TRClk1: Port 3 Bit 7, or External Interrupt 1 input, or UART1 TR Clock input2
CD1_Int278I/OCD1_Int2: UART1 Carrier Detect, or External Interrupt 2
Int079I/OExternal Interrupt 0
Lqfp
Pin No.
Name and FunctionType
WARNING: This output is inverted. The polarity of the pin is the opposite of the bit that drives it
(GPOut[7])
XA-H3
User Manual
.)
XA-H3
User Manual
Active low chip selects CS1 through CS5 come out of reset disabled. CS2 through CS5 are not
used with the “SWAP” operation (see “Memory Controller” chapter in the
They are mappable to any region of the 16 MB address space.
P3.1_CS5_RTS1: Port 3 Bit 1, or CS5 output, or UART1 Request To Send output
Active low chip selects CS1 through CS5 come out of reset disabled. CS2 through CS5 are not
used with the “SWAP” operation (see “Memory Controller” chapter in the
They are mappable to any region of the 16 MB address space.
P3.2_Timer0_ResetOut: Port 3 Bit 2, or Timer0 input or output, or ResetOut output.
ResetOut: If the ResetOut function is selected, this pin outputs a low whenever the XA-H3
processor is reset by an internal source (Watchdog Reset or the RESET instruction.)
WARNING: Unlike the other 31 GPIO pins, during power up reset, this pin can output a strongly
driven low pulse. The duration of this low pulse ranges from 0 ns to 258 system clocks, starting at
the time that VCC is valid. The state of the ResetIn
ResetIn
When used as GPIO, this pin can also be driven low by software without resetting the XA-H3.
.)
is not passed to ResetOut.
XA-H3 User Manual
XA-H3 User Manual
pin does not affect this pulse; in other words
.)
.)
See
Note
2
NOTES:
1. See
XA-H3 User Guide,
2. RTClk input is usually used for Rx Clock if an external clock is needed, but can be used for either Rx or Tx or both. TRClk is usually used for
Tx Clock, but can be used for Rx or Tx or both.
1999 Sep 24
“Pins Chapter,” for how to program selection of pin functions.
8
Philips SemiconductorsPreliminary specification
writing BTRL
40h in that order. Follow these two writes with five NOPS. This is
There are two types of control registers in the XA-H3, these are SFRs
(Special Function Registers), and MMRs (Memory Mapped Registers.)
The SFR registers, with the exception of MRBL, MRBH, MICFG, BCR,
BRTH, BRTL, and RSTSRC are the standard XA core registers. See
WARNINGs about BCR, BRTH, and BRTL in Table 2.
SFRs are accessed by “direct addressing” only (see
Manual
for direct addressing.) The MMRs are specific to the XA-H3
46AhWARNING – Never write to the BCR register in the XA-H3 – it is initialized to 07h,
MSBLSB
the only legal value. This is not the same as for some other XA derivatives.
WARNING – Immediately after reset, always write BTRH = 51h, followed by
=
not the same as for some other XA derivatives.
on-chip peripherals, and can be accessed by any addressing mode
that can be used for off-chip data accesses. The MMRs are
implemented in a relocatable block. See the “Memory Controller”
chapter in the
MMRs by writing a new base address into the MRBL and MRBH
(MMR Base Low and High) registers.
Bit Functions and Addresses
XA-H3 User Manual
for details on how to relocate the
Reset
Value
07h
FFh
EFh
MRBL#MMR Base Address Low496hMA15MA14MA13MA12–––MRBEx0h
MRBH#MMR Base Address High497hMA23MA22MA21MA20MA19MA18MA17MA16xx
MICFG#ClkOut Tri-St Enable
P0CFGA Port 0 Configuration A470h5
P1CFGA Port 1 Configuration A471h5
P2CFGA Port 2 Configuration A472h5
P3CFGA Port 3 Configuration A473h5
P0CFGB Port 0 Configuration B4F0h5
P1CFGB Port 1 Configuration B4F1h5
P2CFGB Port 2 Configuration B4F2h5
P3CFGB Port 3 Configuration B4F3h5
PCON*Power Control Reg404h––––––PDIDL00h
PSWH*Program Status Word High401hSMTMRS1RS0IM3IM2IM1IM02
* SFRs marked with an asterisk (*) are bit addressable.
# SFRs marked with a pound sign (#) are additional SFR registers specific to the XA-H3 and XA-H4.
1. The XA-H3 implements an 8-bit SFR bus, as stated in Chapter 8 of the
8-bit operations. Attempts to write 16 bits to an SFR will actually write only the lower 8 bits. 16-bit SFR reads will return undefined data in the
upper byte.
2. SFR is loaded from the reset vector.
3. F1, F0, and P reset to “0”. All other bits are loaded from the reset vector.
4. Unimplemented bits in SFRs are “X” (unknown) at all times. “1”s should not be written to these bits since they may be used for other
purposes in future XA derivatives. The reset value shown for these bits is “0”.
5. Port configurations default to quasi-bidirectional when the XA begins execution after reset. Thus all PnCFGA registers will contain FFh and
PnCFGB register will contain 00h. See warning in
up. Basically, during this period, this pin may output a strongly-driven low pulse. If the pulse does occur, it will terminate in a transition to high
at a time no later than the 259th system clock after valid V
6. The WDCON reset value is E6 for a Watchdog reset; E4 for all other reset causes.
7. The RSTSRC register reflects the cause of the last XA reset. One bit will be set to “1”, the others will be “0”. RSTSRC[7] enables the ResetOut
function; “1” = Enabled, “0” = Disabled. See
8. The XA guards writes to certain bits (typically interrupt flags) that may be written by a peripheral function. This prevents loss of an interrupt or
other status if a bit was written directly by a peripheral action between the read and write of an instruction that performs a read-modify-write
operation. XA-H3 SFR bits that are guarded in this manner are: TF1, TF0, IE1, and IE0 (in TCON), and WDTOF (in WDCON).
Description
SFR
Address
XA-H3 User Manual
XA-H3 User Manual
MSBLSB
28F28E28D28C28B28A289288
2FF2FE2FD2FC2FB2FA2F92F8
power up.
CC
for details; RSTSRC[7] differs in function from most other XA derivatives.
Bit Functions and Addresses
IC25 Data Handbook XA User Guide
about P3.2_Timer0_ResetOut pin during first 258 clocks after power
. All SFR accesses must be
Reset
Value
1999 Sep 24
11
Loading...
+ 25 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.