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 USARTs help solve I/O
intensive tasks with a minimum of CPU load.
FEA TURES
•Large Memory Support
•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 USARTs with 230.4 kbps capability
•Eight DMA Channels
ADDITIONAL XA-H4 FEATURES (NOT AVAILABLE ON XA-H3)
•Complete DRAM controller supports up to four banks of 8 MB each
•Memory controller supports 16 MB in Unified Mode
•Memory controller supports 32 MB in Harvard Mode
– Four Match Characters are supported on each USART in
– Hardware Autobaud on all four USARTs in Async Mode
– USARTs are improved 85C30 style
•Serial ports are USARTs
– Synchronous capability up to 1 Mbps, and include
HDLC/SDLC support
Async Mode
1999 Sep 24
2
Philips SemiconductorsPreliminary specification
XA-H4Single-chip 16-bit microcontroller
Table 1. XA-H3 and XA-H4 features comparison
FeatureXA-H3XA-H4
Maximum External Memory
(Harvard Memory Mode)
Maximum External Memory
(Unified Memory Mode)
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
Two Counter/Timers plus WatchdogYesYes
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
NOTE:
1. Can be used as additional counters if not needed as BRGs.
1
6 MB32 MB
(16 MB Code, 16 MB Data)
6 MB16 MB
4 High Priority SW
9 Hardware Event
44
7 Standard SW
4 High Priority SW
9 Hardware Event
sync to 1 Mbps
ORDERING INFORMATION
ROMless OnlyTemperature range °C and PackageFreq (MHz)Package Drawing Number
H4 = PXAH40KFBE
NOTE
K=30 MHz, F = (–40 to +85), BE = LQFP
–40 to +85°C, 100-Pin Low Profile Quad Flat Package (LQFP)
30SOT407-1
1999 Sep 24
3
Philips SemiconductorsPreliminary specification
XA-H4Single-chip 16-bit microcontroller
PIN CONFIGURATION
DRAM CAS bits
NOTE: Address lines output during
various DRAM CAS cycles are shown
in parenthesis. See DRAM Controller
chapter in User Manual for details.
XTALOut61ICrystal 2: Output from the oscillator amplifier.
CS049O
CS1_RAS148OChip Select 1 or RAS1: Chip Selects and RAS 1 through 5 come out of reset disabled. They can
CS2_RAS247OChip Select 2 or RAS2: Active low Chip Selects CS1 through CS5 come out of reset disabled.
CS3_RAS346OCS3 or RAS3: 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.
BLE_CASL54OByte Low Enable or CAS_Low_Byte: Goes active low during all bus cycles that access D7 – D0,
BHE_CASH53OByte High Enable or CAS_High_Byte: Goes active low during all bus cycles that access data
ClkOut45OClock Output: This pin outputs a buffered version of the internal CPU clock. The clock output
A19 – A024 – 21,
D15 – D042 – 30,
P0.090I/O
P0.191I/OP0.1_RTS0: Port 0 Bit 1, or USART0 RTS (Request T o Send) output.1
P0.292I/OP0.2_CTS0: Port 0 Bit 2, or USART0 CTS (Clear T o Send) input.1
P0.393I/OP0.3_CD0: Port 0 Bit 3, or USART0 Carrier Detect input.1
P0.494I/OP0.4_TRClk0: Port 0 Bit 4, or USART0 TR clock input.1, 2
P0.595I/OP0.5_RTClk0 : Port 0 Bit 5, or USART0 RT clock input.1, 2
P0.699I/OP0.6: Port 0 Bit 61
P0.7100I/OP0.7: Port 0 Bit 71
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.) It cannot be connected to DRAM. 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 the
be programmed to function as normal chip selects, or as RAS strobes to DRAM. CS1 can be
“swapped” with CS0 (see the SWAP operation and control bit in the “Memory Controller” chapter
XA-H4 User Manual
of the
capable of being based anywhere in the 16 MB space.
They can be programmed to function as normal chip selects, or as RAS strobes to DRAM. CS2
through CS5 are not used with the “SWAP” operation (see the “Memory Controller” chapter in the
XA-H4 User Manual
read or write, Generic or DRAM. Functions as CAS during DRAM cycles.
bus lines D15 – D8, read or write, Generic or DRAM. Functions as CAS during DRAM cycles.
may 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 (SRAM, etc.) bus cycles.
DRAMS (H4 only) are connected only to pins 22, 21, 18 – 10 (pins A17 to A7; see user manual
“MIF Chapter” for connecting various DRAM sizes); the appropriate address values are
multiplexed onto these 11 pins for RAS
I/OData[15:0]: Bi-directional data bus, D15 – D0.
P0.0_Sync0_BRG0: Port 0 Bit 0, or USART0 Sync input or output, or USART0 BRG output, or
USART0 TxClk output.
.) CS1 is usually mapped to be based at 000000h after the swap, but is
.) They are mappable to any region of the 16 MB address space.
XA-H4 User Manual
and CAS during DRAM bus cycles.
.)
See
Note
1
1999 Sep 24
8
Philips SemiconductorsPreliminary specification
XA-H4Single-chip 16-bit microcontroller
Mnemonic
TxD096OTxD0: Transmit data for USART0.
RxD097IRxD0: Receive data for USART0.
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 USART2 RxD input
P1.169I/OP1.1_TxD2: Port 1 Bit 1, or USART2 TxD output
P1.270I/OP1.2_RTClk2 : Port 1 Bit 2, or USART2 RT Clock input2
P1.371I/OP1.3_TRClk2: Port 1 Bit 3, or USART2 TR Clock input2
P1.472I/OP1.4_CD2: Port 1 Bit 4, or USART2 Carrier Detect input
P1.573I/OP1.5_CTS2: Port 1 Bit 5, or USART2 Clear T o Send input
P1.674I/OP1.6_RTS2: Port 1 Bit 6, or USART2 Request T o Send output
P1.775I/OP1.7_BRG2_Sync2: Port 1 Bit 7, or USART2 Sync input or output, or BRG output, or TxClk
P2.080I/OP2.0_RxD3: Port 2 Bit 0, or USART3 Rx Data input
P2.181I/OP2.1_TxD3: Port 2 Bit 1, or USART3 Tx Data output
P2.282I/OP2.2_RTClk3 : Port 2 Bit 2, or USART3 RT Clock input2
P2.383I/OP2.3_ComClk_TRClk3: Port 2 Bit 3, or USART3 TR Clock input2
P2.484I/OP2.4_CD3: Port 2 Bit 4, or USART3 Carrier Detect input
P2.585I/OP2.5_CTS3: Port 2 Bit 5, or USART3 Clear T o Send input
P2.686I/OP2.6_RTS3: Port 2 Bit 6, or USART3 Request T o Send output
P2.787I/OP2.7_Sync3_BRG3: Port 2 Bit 7, or USART3 Sync input or output, or BRG output, or TxClk
P3.056I/OP3.0_CS4_RAS4_RTClk1: Port 3 Bit 0, or CS4 or RAS 4 output, or USART1 RT Clock input
P3.157I/O
P3.258I/O
P3.363I/O
P3.464I/OP3.4_CTS1: Port 3 Bit 4, or USART1 Clear T o Send input
P3.565I/OP3.5_RxD1: Port 3 Bit 5, or USART1 Receive Data input
P3.666I/OP3.6_TxD1: Port 3 Bit 6, or USART1 Transmit Data output
P3.767I/OP3.7_Int1 _TRClk1: Port 3 Bit 7, or External Interrupt 1 input, or USART1 TR Clock input2
CD1_Int278I/OCD1_Int2: USART1 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])
output (see USART clk diagrams in the user manual.)
output (see USART clock diagrams in the user manual.)
Active low chip selects CS1 through CS5 come out of reset disabled. They can be programmed to
function as normal chip selects, or as RAS strobes to DRAM. CS2 through CS5 are not used with
the “SWAP” operation (see the “Memory Controller” chapter in the
mappable to any region of the 16 MB address space.
P3.1_CS5_RTS1: Port 3 Bit 1, or CS5 output, or USART1 Request To Send output
Active low chip selects CS1 through CS5 come out of reset disabled. They can be programmed to
function as normal chip selects, or as RAS strobes to DRAM. CS2 through CS5 are not used with
the “SWAP” operation (see the “Memory Controller” chapter in the
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-H4processor 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 V
When used as GPIO, this pin can be driven low by software without resetting the XA-H4.
P3.3_Timer1_BRG1_Sync1: Port 3 Bit 3, or Timer1 input or output, or USART1 BRG output, or
USART1 Sync input or output.
is valid. The state of the ResetIn pin does not affect this pulse.
CC
XA-H4 User Manual
XA-H4 User Manual
.) They are
.) They are
See
Note
2
NOTES:
1. See
XA-H4 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.
9
Philips SemiconductorsPreliminary specification
writing BTRL
40h in that order. Follow these two writes with five NOPS. This is
XA-H4Single-chip 16-bit microcontroller
CONTROL REGISTER OVERVIEW
There are two types of control registers in the XA-H4, 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-H4
46AhWARNING – Never write to the BCR register in the XA-H4 – 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-H4 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-H4 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
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-H4 SFR bits that are guarded in this manner are: TF1, TF0, IE1, and IE0 (in TCON), and WDTOF (in WDCON).
Description
SFR
Address
MSBLSB
XA-H4 User Manual
XA-H4 User Manual
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 up.
. All SFR accesses must be
Reset
Value
1999 Sep 24
12
Philips SemiconductorsPreliminary specification
XA-H4Single-chip 16-bit microcontroller
Table 3. Memory Mapped Registers (MMR)
MMR Name
USART0 Write Register 0R/W8800hCommand register00h
USART0 Write Register 1R/W8802hTx/Rx Interrupt & data transfer modexx
USART0 Write Register 2R/W8804hExtended Features Controlxx
USART0 Write Register 3R/W8806hReceive Parameter and Control00h
USART0 Write Register 4R/W8808hTx/Rx miscellaneous parameters & mode00h
USART0 Write Register 5R/W880AhTx parameter and control00h
USART0 Write Register 6 (XA-H4 only)R/W880Ch
USART0 Write Register 7R/W880EhHDLC/SDLC flag or Match Character 1xx
USART0 Write Register 8R/W8810hTransmit Data Bufferxx
USART0 Write Register 9R/W8812hMaster Interrupt controlxx
USART0 Write Register 10R/W8814hMiscellaneous Tx/Rx control register00h
USART0 Write Register 11R/W8816hClock Mode Controlxx
USART0 Write Register 12R/W8818hLower Byte of Baud rate time constant00h
USART0 Write Register 13R/W881AhUpper Byte of Baud rate time constant00h
USART0 Write Register 14R/W881ChMiscellaneous Control bitsxx
USART0 Write Register 15R/W881EhExternal/Status interrupt controlf8h
USART0 Write Register 16R/W8828hMatch Character 2 (WR16)00h
USART0 Write Register 17R/W882AhMatch Character 3 (WR17)00h
USART0 Read Register 0RO8820hTx/Rx buffer and external status
USART0 Read Register 1RO8822hReceive condition status/residue code
Reserved – do not write824h–
USART0 Read Register 3RO8826hInterrupt Pending Bits
see WR16 and 17828–82Ah see WR16 and 17 above
USART0 Read Register 6RO882ChSDLC byte count low register
USART0 Read Register 7RO882EhSDLC byte count high and FIFO status
USART0 Read Register 8RO8830hReceive Buffer
Reserved832h
USART0 Read Register 10RO8834hLoop/clock status
Reserved836-83Eh–
USART1 Write Register 0R/W8840hCommand register00h
USART1 Write Register 1R/W8842hTx/Rx Interrupt & data transfer modexx
USART1 Write Register 2R/W8844hExtended Features Controlxx
USART1 Write Register 3R/W8846hReceive Parameter and Control00h
USART1 Write Register 4R/W8848hTx/Rx miscellaneous parameters & mode00h
USART1 Write Register 5R/W884AhTx parameter and control00h
USART1 Write Register 6R/W884ChHDLC/SDLC address field or Match Character 000h
USART1 Write Register 7R/W884EhHDLC/SDLC flag or async Match Character 1xx
USART1 Write Register 8R/W8850hTransmit Data Bufferxx
USART1 Write Register 9R/W8852hMaster Interrupt controlxx
USART1 Write Register 10R/W8854hMiscellaneous Tx/Rx control register00h
USART1 Write Register 11R/W8856hClock Mode Controlxx
USART1 Write Register 12R/W8858hLower Byte of Baud rate time constant00h
USART1 Write Register 13R/W885AhUpper Byte of Baud rate time constant00h
Read/Write
or Read Only
Address
Size
Offset
USART0 Registers
USART1 Registers
Description
HDLC/SDLC address field or asynch Match Character 0
Reset
Value
00h
1999 Sep 24
13
Loading...
+ 29 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.