ATJ209X Program Guide v1.4
ATJ209X Program Guide v1.4
Program Guide
Version 1.4
Additional Support
Additional product and company information can be obtained by visiting the Actions website at:
http://www.actions-semi.com
Page 1
2006-10-11
Table of Contents
1. Short Description ...................................................................................................................................................1
2. Block Diagram .......................................................................................................................................................2
3. Functions Block......................................................................................................................................................3
3.1 Clock /Bus Controller/DMA/IRQ/CTC .........................................................................................................3
3.1.1 Clock Control..............................................................................................................................................3
3.1.2 Bus Controller.............................................................................................................................................3
3.1.3 DMA Controller..........................................................................................................................................3
3.1.4 CTC Controller ...........................................................................................................................................3
3.1.5 IRQ Controller ............................................................................................................................................3
3.2 USB2.0 SIE .......................................................................................................................................................3
3.2.1 USB Control Registers.............................................................................................................................3
3.2.2 Endpoint Registers...................................................................................................................................3
3.3 Nand Flash/SMC State Machine ....................................................................................................................4
3.4 MMC/SD Flash Card Controller....................................................................................................................4
3.5 ATA Interface ...................................................................................................................................................4
3.6 I2C Interface ....................................................................................................................................................4
3.7 SPI Interface.....................................................................................................................................................4
3.8 SDRAM Interface ............................................................................................................................................4
3.9 UART and IR Interface...................................................................................................................................5
3.10 Key Scan Interface.........................................................................................................................................5
3.11 SPDIF Interface..............................................................................................................................................5
3.12 ICON LCD 4*20.............................................................................................................................................5
3.13 GPIO and Multifunction Configuration ......................................................................................................5
3.14 LOSC/RTC,HOSC/PLL,PMU/DC-DC ........................................................................................................6
3.14.1 LOSC/RTC................................................................................................................................................6
3.14.2 HOSC/PLL................................................................................................................................................6
3.14.3 PMU/DC-DC ............................................................................................................................................6
3.15 ADC, DAC and Headphone Driver ..............................................................................................................6
3.16 CMOS Sensor Interface & GPIOK..............................................................................................................6
Page 2
2006-10-11
Page 3
2006-10-11
Page 4
2006-10-11
Page 5
2006-10-11
4.72 Register72 --UART2 Sharp IR and SIR Baud Rate Register (Back) ................................................53
4.73 Register73--UART2 control Register(Back)...........................................................................................54
4.74 Register74--UART2/IR FIFO DATA Register(Back) ............................................................................55
4.75 Register75--IR Control Register(Back) ..................................................................................................55
4.77 Register77 --LRADC2 DATA Register(Back) ........................................................................................56
4.78 Register78--UART2 Mode & FIFO Status Register(Back) ...................................................................56
4.79 Register79--UART2 DRQ/IRQ Enable/Status Register(Back) .............................................................57
Page 6
2006-10-11
Page 7
2006-10-11
REGISTER (Back)................................................................79
Page 8
2006-10-11
Page 9
2006-10-11
Page 10
2006-10-11
Page 11
2006-10-11
Revision History
Version
Date
Description
Ver1.0
Feb, 2005
Ver1.1
Ver1.2
Jun, 2005
Ver1.3
July, 2005
Ver1.4
Page 12
2006-10-11
1. Short Description
ATJ209X is a third generation single-chip highly-integrated digital music system solution for devices
such as dedicated audio players, PDAs, and cell phones. It includes an audio decoder with a high
performance DSP with embedded RAM and ROM, ADPCM record capabilities and USB interface for
downloading music and uploading voice recordings. ATJ209X also provides an interface to SPDIF, flash
memory, LED/LCD, button and switch inputs, headphones, microphone and FM radio input and control.
ATJ2095/2097/2099 contains a high performance DSP, which can easily be programmed to support many
kinds of digital audio standards such as MP3,WMA,ect. For devices like USB-Disk, ATJ209X can act as a
USB mass storage slave device to personal computer system. ATJ209X has low power consumption to
allow long battery life and an efficient flexible on-chip DC-DC converter that allows many different battery
configurations, including 1xAA, 1xAAA, 2xAA,2xAAA and Lilon. The built-in Sigma-Delta DAC include a
headphone driver to directly drive low impedance headphones. The ADC include inputs for both
Microphone and Analog Audio in to support voice recording and FM radio integration features. ATJ209X
provides a true ALL-IN-ONE solution that is ideally suited for highly optimized digital audio players.
Page 1
2006-10-11
Ver 1.4
Page 2
2006-10-11
OIPG
zHM84
zHK001
IPS
regrahC
rotinoM
ylppuS
zHM21
C2I
zHK004
CAD
)tinU
tnemeganaM
rewoP(
UMP
)kcolC(UMC
K84=sF
CDA
K84=sF
MARDS
ME
zHM66
egdirB
MARDS/ATA
66/AMDU ATA
CDS/CMM
zHM66
)knab owt(
retsigeR OI
PSD
pihC DNAN
)htap 2/1AMD edulcni(
HSALF
BSU
MCU BUS
zHM33
zHM084
)tib-42(MDI/MPI
UCM
1MARZ
DMA BUS
retibrA&
rellortnoC AMD
2. Block Diagram
ATJ209X PROGRAM GUIDE
3. Functions Block
3.1 Clock /Bus Controller/DMA/IRQ/CTC
3.1.1 Clock Control
Clock control includes Register00 , Register70
3.2.2
Endpoint Registers
Endpoint Registers include Register58~Register65 , totally 14 registers.
Page 3
2006-10-11
Page 4
2006-10-11
command register
RegisterBA
Register72, UART2 control register Register73, UART2/IR FIFO data register Register74, UART2
Mode & FIFO status register Register78, UART2 DRQ/IRQ Enable/Status register register79, IR
Control Register register75.
GPIO_B[7:0]
and
KEYI/O[3:0]
config
register
RegisterEF
and
other
GPIO
Page 5
2006-10-11
3.14.2 HOSC/PLL
This block include register Register40 ~ register42.
3.14.3 PMU/DC-DC
This block includes battery charger control register RegisterBE, battery charger status register
RegisterBF, USB5V VCC regulator register Register3C, VDD & VCC voltage detect control register
Register3F, DC To DC Control Register Register4F, ADC control and status register RegisterD0, battery
ADC data register Register9C, LRADC2 data register Register77, power control register RegisterDF
register9A, Battery
ADC/LRADC1 control & touch panel sense period select register RegisterD1, touch panel enable and
scan period select register RegisterD2 , audio ADC performance tuning register RegisterD3, audio ADC
modulator performance tuning register
RegisterD4 and RegisterD5, analog input gain control register RegisterD6, audio ADC FIFO control
registerD7, audio ADC fs control register Register9B, LRADC1 data register RegisterD8, touch panel
position data register RegisterD9 ~ RegisterDC, TPADC IRQ control and status register RegisterDE.
Page 6
2006-10-11
Register Definition
4.00
It may take a while before MCU Clock Changes. When the MCU clock is stopped (DC, or Standby
mode), there are several ways to recover the clock to non-divided LOSC clock source:
1. Push Reset button
2. POWER ON RESET
3. Key Board IRQ
4. Alarm IRQ
5. SIRQ
6. Touch Panel IRQ
7. USB wake up IRQ
Bits
Description
Access
Reset
7:6
R/W
00
5:4
R/W
00
Page 7
2006-10-11
2:0
4.01
RW
R/W
000
Access
Reset
R/W
Bits
7:0
Description
Extended page address bits, for EMA22-15
4.02
Bits
Description
Access
Reset
Software reset. Write 1 to this bit will reset system, after resetting it will be
cleared.
R/W
R/W
Page 8
2006-10-11
5:0
R/W
000000
NOTE: CE0- is just for MROM/NorFlash/Sram, CE1/2/3- can be used for Nand Flash or others except
MROM.
4.03
Bits
7:0
4.04
Description
2s complement to add to page address
NewReg02h*256+NewReg01h=OldReg02h*256+OldReg01h+Reg03h
Access
Reset
Access
Reset
Bits
Description
R/W
R/W
R/W
R/W
00
R/W
R/W
4:3
Page 9
2006-10-11
4.05
R/W
Internal
Memory
Space
(MCU.A15=0)
ZRAM1
16KB-64
16KB
IPMH IPMM
16KB 16KB
IPML
16KB
8000H
Entended
Memory
Space
(MCU.A15=1)
32KB
BANK0(32KB)
Brom
BANK1(32KB)
BANK2(32KB)
FFFFH
Trom
BANK3(32KB)
......
BANK..(32KB)
If IA14=1, mapped to internal DSP IPM/IDM when they are mapped into MCU memory space 3
extended address bits of a IO mapped register (Mapped at registered are used to decode the access to
one of these memory blocks
Page 10
2006-10-11
Accessed Block
IPM low byte
001
010
011
reserved
100
101
110
111
ZRAM2
B1+B2
000
Since IPM/IDM is mapped to MCU memory space per 8K block, IA13 is used to select low/high
block of 8K bytes in each 16K byte block.
If IA15=1 -> Extended address bits are IO mapped at 01h and 02h for EMA15-28. EMA15-25 are
output as address bus, while the EMA26-28 are used to decode CE0- ~ CE3-.
CE0- is used to access boot code from ROM/MASK/NOR- type Flash.
CE1- to CE3- can be configured to access ROM, or RAM or NAND-type Flash.
2)
3)
4)
5)
6)
Page 11
2006-10-11
0000H-3FFFH
4000H-7FFFH
2)
MCU running at B0, while DMA[M] read B1 and DMA[N] write B2.B1 and B2 are vise versa. M=1, 2,
3, 4, 5, 6, 66; N=1, 2, 3, 4, 5, 6, 66; M!=N.
2)
Page 12
2006-10-11
Description
Access
Reset
R/W
R/W
R/W
R/W
R/W
R/W
000
2:0
Low 8k
0XXXX010B
1XXXX010B
High 8k
X0XXX010B
X1XXX010B
Low 8k
0XXXX001B
1XXXX001B
High 8k
X0XXX001B
X1XXX001B
Low 8k
0XXXX000B
1XXXX000B
High 8k
X0XXX000B
X1XXX000B
Low 8k
XX0XX110B
XX1XX110B
High 8k
XXX0X110B
XXX1X110B
Page 13
2006-10-11
4.06
Low 8k
XX0XX101B
XX1XX101B
High 8k
XXX0X101B
XXX1X101B
Low 8k
XX0XX100B
XX1XX100B
High 8k
XXX0X100B
XXX1X100B
Bits
7:0
4.07
Description
4.08
6:0
4.09
R/W
Access
Reset
R/W
Bits
7
Reset
DMA1SA[7:0]
Bits
7:0
Access
Description
Access Reset
R/W
DMA1SA[22:16]
R/W
xxxxxxx
Bits
Description
Access
Reset
R/W
Int.Memory select,
0 selects ZRAM, 1 selects IPM/IDM/ZRAM2
R/W
Reserved.
R/W
xxxxx
Access
Reset
R/W
xxx
4:0
DMA1SA[28:24]
Description
7:3
Reserved
2:0
NOTE: SRCsource
Page 14
2006-10-11
Description
Access
Reset
R/W
Access
Reset
R/W
Access
Reset
R/W
Access
Reset
DMA1DA[7:0]
Description
DMA1DA[15:8]
4.0E
Description
DMA1DA[23:16]
Bits
Description
R/W
Int.Memory select,
0: ZRAM, 1: IPM/IDM/ZRAM2
R/W
Reserved
R/W
xxxxx
Access
Reset
4:0
DMA1DA[28:24]
Description
Reserved
Page 15
2006-10-11
2:0
DMA1IDA[2:0].
0 0 0 IPML
0 0 1 IPMM
0 1 0 IPMH
0 1 1 reserved
1 0 0 IDML
1 0 1 IDMM
1 1 0 IDMH
1 1 1 ZRAM2(B1+B2+URAM)
R/W
xxx
Access
Reset
R/W
Access
Reset
R/W
xxxxxxx
Access
Reset
R/W
00
R/W
R/W
R/W
4.10
Bits
7:0
4.11
Description
DMA1IDA[7:0]
Bits
7
6:0
4.12
Description
Reserved
DMA1BC[14:8]
Maximum byte transferred is 32Kbytes
Bits
7:6
Description
Page 16
2006-10-11
R/W
DMA1 DST is IO. 0 : Memory 1: IO .When DMA DST is IO, usually the IO
is a FIFO or other array, the IO address will not increase or decrease.
R/W
DMA1 SRC is IO. 0 : Memory 1: IO .When DMA SRC is IO, usually the IO
is a FIFO or other array, the IO address will not increase or decrease.
R/W
Access
Reset
R/W
R/W
R/W
R/W
External Trigger
00
DRQ1A, UART2 TX DRQ
01
DRQ1B, reserved
10
DRQ1C, reserved
11
DRQ1D, SPDIF TX DRQ
R/W
00
R/W
DMA1 Start.
After TC, the bit will be cleared. The low-go-high edge of this bit will load
SRC start address, DST start address, byte count into the current working
counters.
R/W
4.13
Bits
3:2
Page 17
2006-10-11
Bits
7:0
4.15
Description
Access
Reset
R/W
Access
Reset
R/W
Access
Reset
R/W
DMA2SA[22:16]
R/W
xxxxxxx
Access
Reset
DMA2SA[7:0]
Bits
7:0
4.16
Description
DMA2SA[15:8]
Bits
7
6:0
4.17
Description
Bits
Description
RW
RW
Reserved
R/W
xxxxx
Access
Reset
4:0
4.18
DMA2SA[28:24]
Bits
7:3
Description
Reserved
Page 18
2006-10-11
2:0
4.19
DMA2ISA[2:0]
0 0 0 IPML
0 0 1 IPMM
0 1 0 IPMH
0 1 1 reserved
1 0 0 IDML
1 0 1 IDMM
1 1 0 IDMH
1 1 1 ZRAM2(B1+B2+URAM)
xxx
Access
Reset
R/W
Access
Reset
R/W
Access
Reset
R/W
Access
Reset
Bits
7:0
R/W
Description
DMA2DA[7:0]
Description
DMA2DA[15:8]
Description
DMA2DA[23:16]
Description
R/W
R/W
Reserved
R/W
xxxx
Access
Reset
4:0
DMA2DA[28:24]
Description
Reserved
Page 19
2006-10-11
2:0
DMA2IDA[2:0]
0 0 0 IPML
0 0 1 IPMM
0 1 0 IPMH
0 1 1 reserved
1 0 0 IDML
1 0 1 IDMM
1 1 0 IDMH
1 1 1 ZRAM2
R/W
xxx
Access
Reset
R/W
Access
Reset
R/W
xxxxxxx
Access
Reset
RW
00
R/W
R/W
R/W
R/W
4.1E
Bits
7:0
4.1F
Description
DMA2BC[7:0]
Bits
7
6:0
4.20
Description
Reserved
DMA2BC[14:8]
Bits
7:6
Description
Page 20
2006-10-11
DMA2 DST is IO. 0 : Memory 1: IO. When DMA DST is IO, usually the IO
is a FIFO or other array, the IO address will not increase or decrease.
R/W
DMA2 SRC is IO. 0 : Memory 1: IO. When DMA SRC is IO, usually the IO
is a FIFO or other array, the IO address will not increase or decrease.
R/W
Access
Reset
RW
R/W
R/W
DMA2 Priority,
0: DMA2 low priority, 1: DMA2 high priority When both DMA1 Priority and
DMA2 Priority are set or cleared simultaneously, the priority is in the style
of the first start one which is also the first end one.
R/W
3:2
R/W
00
R/W
4.21
Bits
Page 21
2006-10-11
4.22
DMA2 Start.
After TC the bit will be cleared. The low-go-high edge of this bit will load
SRC start address, DST start address, byte count into current working
counters.
R/W
Access
Reset
RW
R/W
xxxxxxx
Access
Reset
RW
Access
Reset
RW
Access
Reset
Bits
7
6:0
4.23
Description
Bits
7:0
4.24
Description
TPERIOD[7:0], period low byte register of CTC
Bits
7:0
4.25
Description
TPERIOD[15:8], period register of CTC
Bits
Description
RW
RW
RW
RW
RW
RW
Reserved.
Page 22
2006-10-11
4.26
RW
Access
Reset
RW
Bits
Description
KeyBoard(1), Writing 1 to this bit will clear the bit, otherwise the bit is
unchanged
DSP interrupt(1) pending, when dspirq disable, if the DSP irq occurs, this
bit will still be set to 1. Writing 1 to this bit will clear the bit, otherwise
unchanged
RW
Access
Reset
4.27
Bits
RW
RW
RW
RW
RW
RW
RW
RW
Page 23
2006-10-11
Bits
Description
Access
Reset
Reserved.
RW
RW
Reserved.
RW
RW
RW
RW
Access
Reset
RW
1.95V.
3.60V.
4.29
Bits
Description
DMA5 End Transfer or 16Bytes Spare End flag, the bit will be set to 1
when DMA5 finishes DATA or Spare transfer, writing 1 to this bit will clear
the bit. Hardware will automatically clear this bit when MCU sends the
next command.
RW
RW
00
4:3
Page 24
2006-10-11
RW
RW
00
1:0
Cycle mode
Erase
(Row)
W/R
(Col+Row)
LB
(Col)
SB
(Col)
5 cycle mode
4 cycle mode
3 cycle mode
DMA5 Buffer Registers are memory (zram) mapping registers. see register 2bh for the details.
Description
Reset
Access
Access
Reset
RW
00
Reserved to 0.
RW
RW
7:6
Description
Page 25
2006-10-11
RW
01
RW
RW
Access
Reset
3:2
Description
ECC 5
ECC5
ECC 4
ECC 4
ECC 3
ECC3
ECC 2
ECC2
Access
Reset
Description
ECC 1
ECC1
ECC 0
ECC0
Reserved
3:0
Page 26
2006-10-11
Bits
Access
Reset
DSP Reset.
0: DSP reset, 1: normal operation
RW
RW
000
RW
RW
DSPCKEN.
0: DSP CLK=DC(LOW), 1: enable CLK toggle to DSP.
RW
IRQ2DSP-.
0: asserts IRQ2- to DSP core to interrupt DSP by MCU
RW
Access
Reset
1001
7
6:4
4.2F
Description
Bits
7:4
Description
Chip Version 1001B
( read only )
Reserved.
RW
RW
11
Access
Reset
RW
Access
Reset
RW
1:0
4.30
Bits
7:0
4.31
Description
HIP DATA Register 0 [7..0]
Bits
7:0
Description
HIP DATA Register 1 [7..0]
Page 27
2006-10-11
Bits
7:0
4.33
Description
4.34
4.35
4.36
4.37
4.38
Access
Reset
RW
Access
Reset
RW
Access
Reset
RW
Access
Reset
RW
Access
Description
HIP DATA Register 4 [7..0]
Reset
Bits
7
Bits
7:0
Reset
RW
Bits
7:0
Access
Description
Bits
7:0
Bits
7:0
Reset
RW
Bits
7:0
Access
Description
SPDIF enable. 0:disable,1:enable.
RW
reserved.
RW
RW
6:5
Page 28
2006-10-11
RW
RW
RW
NOTES:
1. Frames, sub-frames and blocks
An audio sample is placed in a structure known as a sub-frame. The sub-frame, shown in Figure 1,
consists of 4 bits of preamble, 4 bits of auxiliary data, and 20 bits of audio data, 3 bits called validity,
user, channel status, and a parity bit. The preamble contains bi-phase coding violations and
identifies the start of a sub-frame. The audio sample word length can vary up to 24 bits and the LSB
is transmitted first. If the word length is greater than 20 bits, the sample occupies both the audio and
auxiliary data fields. If it is 20 bits or less, the auxiliary field can be used for other applications such
as voice. The parity bit generates even parity and can detect an odd number of transmission errors
in the sub-frame. When the validity bit is low, it indicates the audio sample is fit for the conversion to
analog. The user and channel status bits are sent once per sample, and when it is accumulated
over a number of samples, then define a block of data. The user bit channel is undefined and
available to the user for any purpose. The channel status bit conveys, over an entire block, the
important information about the audio data and transmission link. Each of the two audio channels
has its own channel status data with a block structure that repeats every 192 samples.
Figure 2 the consecutive sub-frames are defined as a frame, containing channels A and B, and 192
frames define a block. The preambles that identify the start of a sub-frame are different for each of
the two channels with another unique one identifying the beginning of a channel status block.
2.
Also, the bi-phase-mark data switches polarity at every data bit boundary. Since the value of the
data bit is determined by whether there is a transition in the center of the bit, the actual polarity of
the signal is irrelevant. Each sub-frame starts with a preamble. This allows a receiver to lock on to
the data within one sub-frame. There are three defined preambles: one for each channel and one to
Page 29
2006-10-11
Figure 1
Page 30
2006-10-11
Figure 3
Figure 4
28-level by 8 bits FIFO are used to buffer data for TX and RX. After receiving 192 frame- four bytes of
channel status is appended into the RX FIFO. When TX FIFO is empty and SPDIF is enabled, 0 is to
send out for all frames.
4.39
Bits
Access
Reset
Page 31
2006-10-11
SPDIF Block in IRQ pending, writing 1 to this bit will clear it, while 0
unchanged.
RW
SPDIF Data in IRQ pending,writing 1 to this bit will clear it, while 0
unchanged.
RW
SPDIF TX FIFO error Pending. Writing 1 to this bit will clear it , otherwise
unchanged.
RW
SPDIF RX FIFO error Pending. Writing 1 to this bit will clear it , otherwise
unchanged.
RW
SPDIF Receive error Pending. Writing 1 to this bit will clear it, otherwise
unchanged.
RW
Reserved.
Access
Reset
RW
Description
SPDIF FIFO DATA,
Write : SPDIF TX FIFO .
Read : SPDIF RX FIFO.
Page 32
2006-10-11
Description
Reset
RW
Access
Reset
Access
Description
Reserved.
RW
Reserved.
RW
Reserved..
RW
Reserved. .
RW
RW
101
Access
Reset
2:0
4.3E
Bits
Internal Pull Up Enable. Set this bit to enable internal 1500 pull up
resistor on the D+.
R/W
R/W
Internal Resistors Calibration. Set this bit to one to trig the internal
resistors calibration process which will adjust the internal precise
resistors to 45.
R/W
Plugged In Enable. Set this bit to one to enable the plugged in detector
and to switch in the two 500K pull-up resistors.
R/W
Page 33
2006-10-11
Plugged In. When Plugged In Enable bit is set, this read only bit returns
a zero if both D+ and D- are high. Otherwise this bit returns a one. When
Plugged In Enable bit is zero, this bit will always return a zero. The
Plugged In Enable bit must be set to one for enough time (at least 1ms)
before the state of this bit becomes reliable.
R/W
100
Access
Reset
4.3F
Bits
RW
RW
RW
000
5:3
Page 34
2006-10-11
2:0
4.40
RW
000
communication protocols such as USB, UART, etc. The clock used in serial communications is
48MHz, so the PLL generates frequency at multiple of 48MHz to support DSP and serial
communication simultaneously. Another PLL referenced to 24MHz is used to generate 22.5792MHz
for sample rate 44.1K/22.05KHz/11.025KHz and 24.576MHz for audio sequence of 48khz.
HFCCTL(High frequency crystal control Register, 040h)
Bits
Description
Access
Reset
RW
5:4
RW
3:2
RW
01
1:0
RW
01
Access
Reset
4.41
Bits
Page 35
2006-10-11
7:6
RW
01
5:4
RW
01
RW
RW
3
2
RW
RW
Access
Reset
RW
4.42
Bits
7
Page 36
2006-10-11
6:2
00010
00011
00100
00101
00110
00111
01000
01001
01010
01011
01100
01101
01110
01111
10000
10001
10010
10011
10100
10101
10110
10111
11000
11001
11010
11011
11100
11101
11110
11111
RW
00010
RW
RW
Page 37
2006-10-11
zH2QRI
23KTNI
4 8 3 6 1
4.34GER
)galf
wolfrevo(0.34GER
6.34GER
daol
3.34GER
erapmoC
7.34GER
A4GER
94GER
84GER
256
QRI
remiT
CTR
re tn uo c p u
ti b4 2
QRI
mralA
CSOL
7_44R
D4GER
1 256
74GER
64GER
54GER
XUM
C4GER
1 256
B4GER
Description
Access
Reset
RW
RW
RW
Clear RTC time counter, writing 1 to this bit will clear time counter of RTC.
After that, this bit will be cleared automatically.
RW
Load RTC time counter, writing 1 to this bit will load time counter of RTC
to RTC Time Register for host to read. After that, this bit will be cleared
automatically.
RW
10
2:1
reserved--***
Page 38
2006-10-11
4.44
RTC timer overflag, Read Only, set when RTC time counter overflows,
cleared when clear RTC time counter, in other words, when write 1 to the
Bit 4 of this register.
RW
Access
Reset
Bits
Description
RW
RTC clock source select, 0: internal ICOSC (about 32K), 1:32768 Crystal
OSC
If 32768Hz crystal is needed, we must write 1 to bit7, and after 1s write 1
to bit6! This bit can only changed from 0 to 1 after it is set ,it cannot be
written back with 0.
RW
Reserved.
RW
Reserved.
RW
Reserved.
RW
RW
10
RW
2Hz IRQ pending bit, writing 1 to this bit will clear it.
RW
Access
Reset
Access
Reset
Access
Reset
4.45
Bits
7:0
4.46
Bits
7:0
4.47
Bits
7:0
Page 39
2006-10-11
4.49
Bits
7:0
Access
Reset
Access
Reset
Access
Reset
Access
Reset
Access
Reset
Access
Reset
Access
Reset
Description
High byte of RTC Alarm Register
Description
LOSC Divider is a down counter with LOSC output
as clock.
Low byte of LOSC Divider Register
Description
middle byte of LOSC Divider Register
4.4E
Bits
Description
high byte of LOSC Divider Register.
When the Divider Counter overflows, LDIVIRQ will occur.
FLDIVIRQ = [1/(Reg4Bh+1)] *[1/(Reg4Ch+1)] *[1/(Reg4Dh+1)] *FLOSC
Page 40
2006-10-11
6:4
3
2:0
4.4F
Watch Dog timer enable, when WD timer is enabled and the WD timer
overflows, an internal reset (WDRST-) is generated to force the system to
reset status and then reboot.
RW
RW
010
RW
Reserved.
Bits
Description
Access
Reset
RW
RW
101
6:4
Page 41
2006-10-11
3:0
RW
0100
Access
Reset
R/W
Access
Reset
Reserved.
Reserved.
RW
R/W
R/W
4.50
Bits
7:3
2
1:0
Description
Reserved.
Ep_Ptr_Chg.
FIFO Configuration. 2K bytes FIFO configuration for endpoint A and B.
As shown in section 5.
4.51
Bits
7:5
Description
0: Endpoint A
0
1: Endpoint B
Page 42
2006-10-11
Bits
Description
Access
Reset
Setup Packet Interrupt. When set, this bit indicates a setup data packet
has been received. This bit must be cleared by writing a 1 before the next
setup packet can be received.
R/W
DMA6 Done Interrupt. When set, this bit indicates EP_TC counter
reaches zero or EOT# input has been asserted. Writing a logical 1 clears
this bit.
R/W
Reserved.
4.53
Bits
Description
Access
Reset
R/W
R/W
R/W
6:5
4
Reserved.
Root Port Reset Interrupt. When set, this bit indicates a root port reset
has been received. Writing a logical 1 clears this bit. This flag can
wakeup MCU from DC.
Resume Interrupt. When set, this bit indicates a device resume has
occurred. Writing a logical 1 clears this bit. This flag can wakeup MCU
from DC.
Even if the corresponding enable bit is 0, when the event occur, this
status bit will still be set
Page 43
2006-10-11
Suspend Interrupt. When set, this bit indicates a suspend request has
been received. Writing a logical 1 clears this bit.
R/W
Even if the corresponding enable bit is 0, when the event occur ,this
status bit will still be set .
1
R/W
SOF Interrupt. When set, this bit indicates a Start Of Frame has been
received. Writing a logical 1 clears this bit.
R/W
Access
Reset
4.54
Bits
Description
R/W
R/W
Reserved.
R/W
R/W
R/W
R/W
R/W
Access
Reset
R/W
4.55
Bits
7
6:5
Description
Connect/Disconnect Interrupt Enable.
Reserved.
R/W
R/W
R/W
R/W
R/W
Access
Reset
4.56
Bits
Page 44
2006-10-11
Go Suspend. Writing a logic 1 to this bit and the USB block enters the
suspend state. This bit is automatically reset when the resume interrupt
is set.
R/W
Root Port Resume Enable. A logical 1 enables resume from the USB
root port.
R/W
R/W
Send Resume. Writing a 1 to this bit will generate a resume signal to the
upstream port. This bit should be written after a device remote wakeup
has been received. This bit is automatically reset.
R/W
Access
Reset
Reserved.
Access
Reset
4.57
Reserved.
Bits
7:4
4.58
Description
Bits
7:3
1: High Speed
Description
Reserved.
Page 45
2006-10-11
R/W
Access
Reset
R/W
R/W
R/W
Endpoint Index. This field selects a target endpoint for registers access
by microcontroller.
R/W
000: Endpoint 0
001: Endpoint A
010: Endpoint B
011: Endpoint C
100: Endpoint D
4.59
Bits
7
Description
Endpoint Enable. When set, this bit enables the endpoint.
EP0 enable bit turn on default and should not be read/written.
6:5
Endpoint Direction.
0: OUT (Host to Device)
1: IN (Device to Host)
3:0
Description
Access
Reset
7:6
R/W
00
00: one packet 01: two packets 10: three packets 11: invalid
5
FIFO Flush. Writing a logic 1 resets the pointers, status flags, and byte
count of the indexed endpoint FIFO.
R/W
NAK OUT Mode. This bit is used only for OUT endpoints. In this mode, a
NAK will be returned to the host if another OUT packet is received while
the Short Packet Received Interrupt has been set.
R/W
Page 46
2006-10-11
FIFO Auto-Validate. This bit is used only for IN endpoints. When set, the
SIE will automatically validate IN packet with maximum packet size.
R/W
R/W
R/W
Description
Access
Reset
Control Status End. This bit is used only for CONTROL endpoint. When
set, this bit indicates the status stage of control transfer is finished. This
bit is reset when the next setup packet has been received.
Reserved.
Handshake STALL. When set, this bit indicates the last packet could not
be accepted or provided, because the endpoint was stalled. Writing a 1
clears this bit.
R/W
Handshake ACK. When set, this bit indicates the last packet (received
or) transmitted has been acknowledged with ACK. Writing a 1 clears this
bit.
R/W
Handshake NAK. When set, this bit indicates the last packet (received
or) transmitted has been acknowledged with NAK. Writing a 1 clears this
bit.
R/W
Timeout. When set, this bit indicates the last packet received or
transmitted has not been acknowledged because of bus error. Writing a 1
clears this bit.
R/W
FIFO Empty. When set, this bit indicates the FIFO of indexed endpoint is
empty.
FIFO Full. When set, this bit indicates the FIFO of indexed endpoint is
full.
Page 47
2006-10-11
Access
Reset
Short Packet Received Interrupt. This bit is used only for OUT
endpoints. When set, it indicates a short data packet has been received.
In NAK OUT Mode, the next OUT packet cannot be received if this bit is
set. Writing a 1 clears this bit.
R/W
Data Packet Received Interrupt. This bit is used only for OUT
endpoints. When set, it indicates a data packet has been received from
host. Writing a 1 clears this bit.
R/W
R/W
OUT Token Interrupt. When set, it indicates an OUT token has been
received. Writing a 1 clears this bit.
R/W
R/W
Access
Reset
7:5
Description
Reserved.
Description
Reserved.
R/W
R/W
R/W
R/W
R/W
4.5E
Bits
Description
Access
Reset
7:0
R/W
Page 48
2006-10-11
Bits
Description
Access
Reset
DMA6 Valid Enable. This bit is used only for endpoint A and B. 1: Enable
0: Disable
R/W
R/W
6:3
Reserved.
2:0
4.60
Bits
Description
Access
Reset
7:0
R/W
Access
Reset
Access
Reset
4.61
Bits
7:0
Description
Endpoint Byte Count [7:0].
For OUT endpoint, this indicates the number of valid bytes in FIFO.
For IN endpoint, this indicates the number of empty bytes in FIFO.
4.62
Bits
Description
7:3
Reserved.
2:0
Endpoint Byte Count [10:8]. This field is used only for endpoint A and
B.
Access
Reset
For OUT endpoint, this indicates the number of valid bytes in FIFO.
For IN endpoint, this indicates the number of empty bytes in FIFO.
4.63
Bits
Page 49
2006-10-11
7:0
4.64
Endpoint Transfer Count [7:0]. This register is used only for endpoint A
and B. This field determines the total number of bytes to be transferred
during DMA6 transfer. For an IN endpoint, the remaining data in FIFO is
validated when this count reaches zero or EOT pin is asserted.
R/W
Bits
Description
Access
Reset
7:0
Endpoint Transfer Count [15:8]. This register is used only for endpoint
A and B. This field determines the total number of bytes to be transferred
during the DMA6 transfer. For an IN endpoint, the remaining data in FIFO
is validated when this count reaches zero or EOT pin is asserted.
R/W
4.65
Bits
Description
Access
Reset
7:0
Endpoint Transfer Count [23:16]. This register is used only for endpoint
A and B. This field determines the total number of bytes to be transferred
during DMA6 transfer. For an IN endpoint, the remaining data in FIFO is
validated when this count reaches zero or EOT pin is asserted.
R/W
Access
Reset
R/W
4.66
Bits
7:3
Description
Reserved.
USB Register Page Index. Registers of 67h-6Fh are selected by these
bits.
000: USB Control Registers
2:0
001: Reserved.
010: Reserved.
011: Reserved.
others: Reserved
Note: When USBREGPGIDX(66h)=00h, the registers of 67h-6Fh are USB Control Registers and they
listed below for detail.
Page 50
2006-10-11
Bits
7
6:0
4.68
Description
Access
/
USB Device Address. This field specifies the USB device address
assigned by the host controller.
R/W
0000000
Access
Reserved.
Reset
Reset
Bits
Description
7:3
Reserved.
2:0
Reserved.
R/W
000
4.69
Bits
Description
Access
Reset
7:0
Frame Number[7:0]. This field contains the frame number from the last
received Start Of Frame.
Access
Reset
Description
7:3
Reserved.
2:0
Frame Number[10:8]. This field contains the frame number from the last
received Start Of Frame.
000
4.70
CSOH
]0..2[tib h00geR=M
klc08z
14XUM
M/
CSOL
LLPUCM
]0..2[tib hD3geR=N
klcamd
N/
les
CSOH
14XUM
CSOL
LLPUCM
Page 51
2006-10-11
Access
Reset
R/W
6:3
R/W
0000
2:0
R/W
011
Access
Reset
RW
0000000
4.71
Description
Bits
7:1
Description
I2C Slave Address.
Page 52
2006-10-11
4.72
RW
operation. UART protocol contains a start bit, 5~8 data bits, a parity bit and a stop bit. The start bit must
be 0 and the stop bit must be 1. Before communication, UART operation mode must set to be the same
as remote terminal, such as baud rate, number of data bits, even/odd/no parity etc. Baud rate is up to
1.5MBaud and LSB first in TX/RX.
28-level by 8 bits FIFO are used to buffer data for TX and RX.
OTS
OTS
RAP
langiS oN
langiS oN
tca/ataD-TRAU
tiB
tratS
lanoitpO lanoitpO
13
1.625
Baud
Rate
Divisor
%Error
Divisor
600
192
0.16%
1200
96
0.16%
1800
64
2000
%Error
Divisor
%Error
0.16%
58
0.53%
2400
48
0.16%
3600
32
0.16%
256
0.16%
4800
24
0.16%
192
0.16%
7200
16
0.16%
128
0.16%
208
0.16%
9600
12
0.16%
96
0.16%
156
0.16%
Page 53
2006-10-11
0.16%
64
0.16%
104
0.16%
19200
0.16%
48
0.16%
78
0.16%
28800
0.16%
32
0.16%
52
0.16%
38400
0.16%
24
0.16%
39
0.16%
57600
0.16%
16
0.16%
26
0.16%
115200
0.16%
0.16%
13
0.16%
230400
0.16%
460800
0.16%
750000
921600
0.16%
-
2
1
0.00%
0.00%
1500000
BaudRate (UART2
Bits
Reset
RW
Access
Reset
7:6
RW
00
5:3
RW
000
RW
7:0
4.73
Bits
Description
Description
Page 54
2006-10-11
1:0
4.74
RW
00
Access
Reset
RW
Bits
Description
UART2/IR FIFO Data, writing to this port will write data to UART2/IR TX
FIFO, reading from this port will read data from UART2/IR RX FIFO
7:0
4.75
Bits
Description
Access
Reset
RW
RW
Pulse with for IRDA-SIR, 0 for 1.6us, 1 for 3/16 of bit length
RW
4:0
reserved
NOTES:
IR can be configured to operate in 4 modes: Sharp-IR mode, IRDA-SIR mode, IRDA-MIR mode,
IRDA-FIR mode.
1. Sharp-IR mode
The same as UART, but DASK modulation is used, i.e., no IR emission for logical 1 but there is a
500KHZ pulse train for logical 0. Baud rate is up to 38.4KBaud.
2. IRDA-SIR mode
The same as UART, but the data representation is different, i.e., no IR emission for logical 1 but
there is a pulse of 1.6us or 3/16 data bit period for logical 0. Baud rate is up to 115.2Kbaud.
3. IRDA-MIR mode
Support 0.576M and 1.152M Baud
No pulse for logical 1, 1/4 data period pulse for logical 0
Packet oriented protocol: STA-STA-ADDR-DATA-CRC16-STO
STA : 8-bit beginning flag, 01111110 binary
Page 55
2006-10-11
4.77
Bits
Access
Reset
RW
XX
Access
Reset
Reserved
7:0
4.78
Description
LRADC2 DATA[7..0]
Bits
7:6
Description
Page 56
2006-10-11
2:0
4.79
UART2/IR EOP, write this bit to high when next write to UART2/IR TX
FIFO is the last byte of the packet. Next write to TX FIFO after this bit is
set will clear this bit automatically. When read from this bit, the EOP status
bit of UART2/IR receiver is returned. This bit can be polled by MCU to see
if end of package is reached.
RW
Mode Select
0 0 0 UART2
0 0 1 Sharp IR
0 1 0 IRDA-SIR
0 1 1 IRDA-MIR
1 0 0 IRDA-FIR
RW
000
Access
Reset
Bits
Description
RW
RW
UART2/IR RX FIFO error, writing 1 to this bit will clear the bit and reset the
FIFO
RW
RW
UART2/IR TX FIFO error, writing 1 to this bit will clear the bit and reset the
FIFO
RW
RW
RW
RW
Page 57
2006-10-11
L C Sf
W
HGIHt
OLt
/1
gnimiT ecafretnI C2I
A T S : U St
LCS
ft
O
TS:USt
T
A D : D Ht
ft
T A D : D Ht
F U Bt
A
TS:DHt
ADS
Description
Access
Reset
I2C Enable, 0:disable, 1: enable I2C receive and transmit channel Before
enable this bit,mode should be changed to F1, and then change to other
mode.
RW
RW
RW
RW
3:2
RW
00
Writing 1 to this bit will release the clock and data line to idle in slave
mode only and it will be cleared atuomatically. MCU should write 1 to this
bit after receiving the last bit of a whole transfer.
RW
Page 58
2006-10-11
RW
Description
Access
Reset
I2C Buffer Flag. Automatically cleared when I2C data reg is written or read
Automatically set when the buffer is empty in transmit mode or when the
buffer is full in receive mode. Writing 1 to this bit will clear it.
transmit
0--transmit in progress
1--transmit complete
receive
0---receive in progress
1---receive complete
RW
I2C STOP bit. This bit is cleared when the I2C mode is disable or when
the start bit was detected last. Writing 1 to this bit will clear it.
1---indicate that the STOP bit was detected last
0---STOP bit was not detected last
RW
I2C START bit. This bit is cleared when the I2C mode is disable or when
the stop bit was detected last. Writing 1 to this bit will clear it.
1---indicate that the START bit was detected last
0---START bit was not detected last
RW
RW
RW
I2C IRQ pending bit. Writing 1 to this bit will clear it.
RW
Page 59
2006-10-11
I2C writing collision detect bit. Writing 1 to this bit will clear it.
1---the I2C data register is written while it is still transmitting the previous
byte
0---no collision
RW
RW
Access
Reset
RW
Description
I2C Data/Address[7:0]
7:0
PCt
LCt
KLCS
HOt
0D
0D
5D
6D
SOt
7D
NID
TUOD
7D
ODt
Description
SPI Enable,
0:disable, 1: enable SPI receive and transmit channel
Access
Reset
RW
Page 60
2006-10-11
RW
RW
SPI pin ss control output, this bit is valid only in master mode
1---output high(default)
0---output low .
RW
RW
SPI Write Collision Error FlagThis bit is set if the SPI Data Register is
written before the end of transfer is signaled, and cleared by reading the
SPI Control Register with this bit set, followed by an access of the SPI
Data Register
RW
RW
SPI IRQ pending flag, 0: no IRQ pending 1: has IRQ pending, cleared by
writing 1 to this bit when the bit has been set to 1.
RW
Access
Reset
RW
1111111
Reserved to 0.
RW
Access
Reset
RW
Access
Reset
RW
4.7E
Bits
7:1
0
Description
SPI_CLK=MCUCLK/(SPICKFactor[7:0])
4.7F
Bits
7:0
4.80
Bits
Description
SPI Data[7:0]
Page 61
2006-10-11
RW
RW
RW
RW
RW
RW
RW
Access
Reset
RW
000
4.81
Bits
Description
Reserved
5:3
Page 62
2006-10-11
2:0
4.82
Reset
xxxx
Access
Reset
3:0
Reserved
xxxxxxxx
Bits
4.84
Access
W
Description
7:4
7:0
000
Bits
4.83
RW
Description
Internal DAC PCM[11:4]
Bits
Description
Access
Reset
7:0
DAC PCM[19:12]
Write to this register will transfer 20-bit PCM data into DAC PLAYBACK
FIFO These 82h/83h/84h ports are also mapped into a 24-bit DSP
memory mapped EM port 0x3FEDh. When DSP write, D23-D4 are written
into the FIFO, D3-0 are discarded.
xxxxxxxx
Page 63
2006-10-11
4.85
Access
Reset
Reserved
RW
RW
0101
Access
Reset
7:6
3:0
4.86
Description
Description
7:6
Reserved
5:4
RW
00
RW
RW
Dither Amplitude
**1 1
x1
10
x 1/2
01
x 1/4
00
x 1/8
RW
11
1:0
Page 64
2006-10-11
4.87
Bits
7:6
5
4:0
4.88
Bits
Access
Reset
RW
01
RW
RW
00000
Access
Reset
RW
RW
5:4
The bias current select for OPDA1/OPDA2 ,first & second stage
**00 4uA
01
7uA
10
10uA
11
13uA
RW
00
3:2
RW
00
1:0
RW
00
Access
Reset
4.89
Bits
Page 65
2006-10-11
R/W
Access
Reset
R/W
Access
Reset
RW
000
R/W
01
Description
7:5
Reserved.
4:0
Description
MCU accessing USB BLOCK wait states select.
0 0 0 no wait
0 0 1 1 wait
0 1 0 2 waits
0 1 1 3 waits
1 0 0 4 waits
1 0 1 5 waits
1 1 0 6 waits
1 1 1 7 waits
4:2
Reserved.
1:0
DMA6 Clock. These bits are used to select the clock at which the DMA6
engine accesses the USB endpoint FIFO in 16 bits.
00: 30M
01: 20M
10: 15M
11: 7.5M
Description
Access
Reset
USB Global Reset. This bit should be set to one by firmware for normal
operation.
R/W
Page 66
2006-10-11
R/W
R/W
R/W
R/W
R/W
10: Reserved
11: Reserved
Memory Mode Select. This bit is used to select access mode and
source clock of synchronous memory used as FIFO by SIE.
4
0: USB FIFO
1: general memory
3
2
1
0
1: software connection
Reserved.
PHY PLL 12M Source Select.
0: 24M/2
1: external 12M
MCU Wakeup Enable. A logical 1 enables USB wakeup MCU from DC.
Page 67
2006-10-11
Description
Access
Reset
7:5
RW
000
RW
Hsync End or EAV IRQ pending, 0: no irq occurred, 1: irq occurred .writing
1 to this bit will clear it.
RW
RW
RW
RW
Access
Reset
4.8E
Bits
RW
RW
RW
RW
RW
RW
RW
Page 68
2006-10-11
4.8F
4.90
4.91
Access
Reset
RW
Access
Reset
Description
Data[7..0]
Access
Reset
Bits
7:0
Bits
7:0
RW
Description
Data[7..0]
Bits
Description
RW
RW
DMA4DAdd[13..8]
RW
xxxxxx
Access
Reset
5:0
4.92
Bits
Description
RW
Hsync active .
0: Hsync IRQ active low, 1: Hsync IRQ active high
RW
Vsync active .
0: Vsync IRQ active low, 1: Vsync IRQ active high
RW
RW
RW
RW
RW
RW
Memo:
Video Format.
Page 69
2006-10-11
4.93
Bits
7:0
4.94
Description
Reset
RW
HSP[7..0]
Access
Access
Reset
Bits
Description
7:5
HSP[10..8]
RW
4:0
HEP[12..8]
RW
Access
Reset
RW
Access
Reset
RW
Access
Reset
4.95
Bits
7:0
4.96
Description
HEP[7..0]
Bits
7:0
4.97
Description
VSP[7..0]
Bits
Description
7:5
VSP[10..8]
RW
xxx
4:2
VEP[10..8]
RW
xxx
Page 70
2006-10-11
1:0
RW
00
C NY S V
FE R H
6t
7t
4t
5t
K L CP
1t
3t
2t
084
9 74
87 4
] 0: 7 [Y
a t aD d i la V
gnimiTlatnoziroH
4.98
Bits
7:0
4.99
Bits
Description
Reset
RW
VEP[7..0]
Access
Access
Reset
Page 71
2006-10-11
DMA4DAdd[7..0]
RW
Description
Access
Reset
7:0
Access
Reset
RW
6:5
LRADC1 Fs Select.
00
200Hz
01
100Hz
10
50Hz
11
25Hz
RW
00
4:3
LRADC2 Fs Select.
00
200Hz
01
100Hz
10
50Hz
11
25Hz
RW
2:1
RW
00
RW
Access
Reset
RW
Description
Description
BATTERY ADC DATA[7..0]
Page 72
2006-10-11
ADC
VBAT(V)
Typic Value
0.7
00
0.8
0D
0.9
1E
1.0
30
1.1
40
1.2
51
1.3
62
1.4
73
1.5
84
1.6
94
1.7
A6
1.8
B6
1.9
C7
2.0
D9
2.1
E8
2.2
F9
BATTERY
ADC
VBAT(V)
Typic Value
2.6
62
2.8
73
3.0
84
3.1
8C
3.2
95
Page 73
2006-10-11
A0
3.4
A7
3.5
AF
3.6
B8
3.7
C0
3.8
4.9D
Typic Value
C9
Bits
7:0
Description
Reset
RW
Access
It is normally used as DMA source address. When DMA works, it should be in accordance with the
sequence Hi, Mid and Low.
4.9F
Bits
Access
Reset
7:6
RW
01
5:4
RW
01
Page 74
2006-10-11
3:2
RW
11
1:0
RW
01
Access
Reset
R/W
4.A0
Description
st
nd
HI Byte)
In DMA66 translating, the host shall negate CS0-, CS1-, DA2, DA1and DA0.
ATA I/O Register Decode Table
Register name
ATA register
CS0-
CS1-
DA2
DA1
CPU Register
DA0
Data *
0A0H
Error/Features
0A1H
Sector Count
0A2H
Sector Number
0A3H
Cylinder Low
0A4H
Cylinder High
0A5H
Page 75
2006-10-11
Device Head
0A6H
Status/Command
0A7H
Description
7:0
4.A8
Access
RW
Reset
0
Bits
Description
7:0
4.A9
Access
RW
Reset
X
Description
Access
7:0
RW
Reset
X
Description
7
6:4
Reserved.
Access
Reset
RW
Page 76
2006-10-11
RW
Reserved
RW
RW
Description
Access
Reset
RW
Description
Access
Reset
RW
Mode1(ns)
Mode2(ns)
Mode3(ns)
Mode4(ns)
Min
t2cyctyp
Mode0(ns)
Min
Min
Min
Min
Max
240
Max
160
Max
120
Max
90
Comment
Max
60
tcyc
112
73
54
39
25
t2cyc
230
154
115
86
57
tDS
15
10
tDH
tDVS
70
48
30
20
tDVH
tFS
230
200
170
130
120
tLI
150
150
150
100
100
Page 77
2006-10-11
20
20
20
20
20
tUI
tAZ
10
10
10
10
10
tZAH
20
20
20
20
20
tZAD
tENV
20
0
70
20
0
70
20
0
70
20
0
55
20
Envelope time
tSR
50
30
20
NA
NA
tRFS
75
70
60
60
60
tRP
160
125
100
100
100
tIORDYZ
20
20
20
20
20
tZIORDY
tACK
20
20
20
20
20
tSS
50
50
50
50
50
NOTES:
1.
Timing parameters shall be measured at the connector of the sender or receiver to which the
parameter applies. For example, the sender shall stop generating STROBE edges tRFS after the
negation of DMARDY-. Both STROBE and DMARDY- timing measurements are taken at the
connector of the sender.
2.
All timing measurement switching points (low to high and high to low) shall be taken at 1.5V.
3.
tUI , tMLI , and tLI indicate sender-to-recipient or recipient-to-sender interlocks, i.e., either sender or
recipient is waiting for the other to respond with a signal before proceeding. tUI is an unlimited
interlock that has no maximum time value. tMLI is a limited time-out that has a defined minimum. tLI is
a limited time-out that has a defined maximum.
4.
The test load for tDVS and tDVH shall be a lumped capacitor load with no cable or receivers. Timing for
tDVS and tDVH shall be met for all capacitive loads from 15 to 40 pf where all signals have the same
capacitive load value.
Page 78
2006-10-11
Description
Access
Reset
RW
6:5
VS[1:0] status.
4:1
Reserved.
Reserved.
RW
Access
Reset
RW
Access
Reset
7:6
SDRAM TYPE
00 64MBit (refresh: 4096cycles/64ms)
01 128MBit (refresh: 4096cycles/64ms)
10 256Mbit (refresh: 8192cycles/64ms)
11 512MBit (refresh: 8192cycles/64ms)
RW
00
RW
RW
3:2
RW
11
1:0
DRAMADDR[25..24]
RW
00
Access
Reset
4.AE
RegisterAE--DMA3
Bits
7:0
4.B0
Description
DMA3BC[15..8]
Bits
4.B1
Bits
Description
Page 79
2006-10-11
7:0
4.B2
4.B3
4.B4
4.B5
Access
Reset
000xxxxx
Access
Reset
RW
Access
Reset
RW
000
Bits
7:5
Reset
RW
DRAMADDR[23..16]
Bits
7:0
Access
RW
Description
Bits
7:0
80h
Bits
7:0
RW
Description
IPM/IDM
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
IPML
IPMM
IPMH
HDD
IDML
IDMM
IDMH
zram2
Page 80
2006-10-11
4:3
RW
00
RW
RW
Reserved
RW
Access
Reset
RW
4.B6
Bits
7:0
4.B7
Description
DMA3SramADDR[7..0]
Bits
Description
Access
Reset
7:6
Clock select .
0 0: MCUCLK/1(default)
0 1: MCUCLK/2
1 0: MCUCLK/3
1 1: MCUCLK/4
if MCUCLK/3 or MCUCLK/4 is selected, a reserved value should be
written to regB1h before a COMMAND is sent out.
RW
5:0
DMA3SramADDR[13..8]
RW
Access
Reset
RW
Access
Reset
R/W
4.B8
Bits
7:0
4.B9
Description
DMA3BC[7..0]
Bits
7
Description
DMA3 for DSP transfer mode,
0:linear mode, 1: DSP mode.
Page 81
2006-10-11
R/W
R/W
00
R/W
Reserved.
R/W
00
R/W
00
6
5:4
1:0
Description
Access
Reset
DMA3 TC IRQ enable.0 disable IRQ. 1 enables IRQ when DMA3 finishes
whole block transfer
RW
DMA3 Half Transfer IRQ enable. 0 disable IRQ. 1 enables IRQ when
DMA3 finishes half of defined block transfer.
RW
RW
Reserved.
SDRAM initialization complete flag, writing 1 to this bit will clear it, while 0
unchanged.
RW
DMA3 Half Transfer IRQ pending, write 1 to this bit will clear it, while 0
unchanged.
RW
DMA3 End Transfer IRQ pending writing 1 to this bit will clear it, while 0
unchanged.
RW
DMA3 busy status. After the TC, the bit will be cleared.
RW
DMA3 Memo:
1.
When CMD Burst Read is issued, the data stream is moving from SDRAM to the SRAM selected;
while in Burst Write, it is from SRAM to SDRAM .
2.
When the Byte Counter is not the multiples of the burst length in burst reading, data should not be
moved from SDRAM to SRAM until DMA3 finishes the whole block transfer; while in burst writing,
DQM should be pulled high for the following cycles if DMA3 finishes.
Page 82
2006-10-11
Symbol
Min
Units
Trcd
CLK
Tras
Tmrd
2
2
CLK
CLK
Tsre
Trfc
Txsr
1
2
3
CLK
CLK
CLK
Tar
CLK
Tpr
CLK
SDRAM Timing
Power up:
ecneuqeS pU rewoP
91
81
71
61
51
41
31
21
11
01
KLC
EKC
SC/
CRt
PRt
CRt
SAR/
SAC/
aAR
yeK
RDDA
0AB
1AB
aA R
PA/01A
Z-hgiH
QD
EW/
hserfeR
otuA
hserfeR otuA
MQD
)sknaB llA(
egrahcerP
Page 83
2006-10-11
Burst Read
T0
T1
T2
T3
T4
CLK
CKE
High
CS
t RCD
RAS
CAS
WE
BS
A10
Ra
ADDR
Ra
BS
Ca
DQ
DQM
BA0/1
Q n-1
Qn
low
t RCD
Row Active
Read
Precharge(All Banks)
Note:
n=BL,CL=2 for this example
Page 84
2006-10-11
Burst Write
T0
T1
T2
T3
Tn+1
Tn+2
Tn+3
CLK
CKE
High
CS
RAS
CAS
WE
BA0/1
BS
A10
Ra
ADDR
Ra
DQ
Ca
DQM
BS
Q2
Qn
low
t RDL
Row Active
Write
Precharge
Note:
n=BL, t RDL=2 CLK
Page 85
2006-10-11
Ver 1.4
Page 86
2006-10-11
. h s er f e r fl e s m or f ti x e e ro f e b d e ri u q er s i S A Rt m um i n im , e do m h s er f e r fl e s s r e tn e e c iv e d e h t e cn O ). f C
. W O L s y a t s E K C s a g n o l s a e d o m h s e r f e r f l e s n i s n i a m e r e c i v e d e h T . 3
E K C r o f t p e c x e e r a c t n o d e b n a c k c o l c m e t s y s e h t g n i d u l c n i s t u p n i e h t l l a , e l c y c k c o l c 1 r e t f A . 2
. el c y c kc o l c e m as e h t t a w o l e b d lu o h s E K C ht i w S A C / & S A R/ , S C/ . 1
t i xE
hs e r fe R fl e S
yr t n E
hs e r fe R fl e S
M QD
EW/
Z-iH
QD
Z - iH
PA/01 A
1AB- 0AB
RDD A
SAC /
7 e to N *
SAR /
5 e to N *
SC/
SSt
3 et o N *
6 e t oN *
n i m CR t
91
81
71
61
51
41
31
4 e to N *
21
11
01
1 et o N *
EKC
2 e t oN *
7
KLC
13
Divisor
1.625
%Error
Divisor
%Error
Divisor
%Error
600
192
0.16%
1200
96
0.16%
1800
64
0.16%
2000
58
0.53%
2400
48
0.16%
3600
32
0.16%
256
0.16%
4800
24
0.16%
192
0.16%
7200
16
0.16%
128
0.16%
208
0.16%
9600
12
0.16%
96
0.16%
156
0.16%
14400
0.16%
64
0.16%
104
0.16%
19200
0.16%
48
0.16%
78
0.16%
28800
0.16%
32
0.16%
52
0.16%
38400
0.16%
24
0.16%
39
0.16%
57600
0.16%
16
0.16%
26
0.16%
115200
0.16%
0.16%
13
0.16%
230400
0.16%
460800
0.16%
750000
921600
0.16%
-
2
1
0.00%
0.00%
1500000
Description
7
Access
RW
4:1
Reset
Page 87
2006-10-11
RW
Access
Reset
RW
6:4
RW
000
3:2
Reserved.
Description
RW
ATA IRQ status 0:NO IRQ, 1: interrupt status. writing 1 to this bit will clear
interrupt status.
RW
Access
Reset
RW
RW
Reserved.
Reserved.
RW
101
4.BE
Bits
2:0
Description
Page 88
2006-10-11
Description
Access
Reset
Battery presence.
1: Battery is present, 0: Battery is not present.
RW
xx
RW
5:3
Reserved.
2:1
Status of PWRMODE[1..0]
4.C0
Bits
Description
Access
Reset
7:0
Key Scan data, there are 12 8-bit registers for key latch per scan. The 12
registers are mapped into this register, and an internal pointer is used to
point to the current register to return data when this register is read. Any
IO write to this register will clear the internal register, and the pointer will
increase by 1 to point to the next register after a IO read to the register is
performed.
RW
Page 89
2006-10-11
KeyIn0
KeyIn1
KeyIn2
KeyIn3
KeyIn4
KeyIn5
KeyIn6
KeyIn7
KeyIn8
KeyIn9
KeyIn10
KeyIn11
KeyOut0
KeyOut1
KeyOut2
KeyOut3
KeyOut4
KeyOut5
KeyOut6
KeyOut7
1st Reg
2nd Reg
b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3
2nd Reg
3rd Reg
b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7
4th Reg
5th Reg
b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3
5th Reg
6th Reg
b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7
7th Reg
8th Reg
b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3
8th Reg
9th Reg
b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7
10th Reg
11th Reg
b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3
11th Reg
12th Reg
b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7
Example:
Reg$C0 Readback is $FF,$AF,$F7,$FF,$FF,$FE,$FF,$FF,$FF,$FF,$FF,$FE,
indicate following 5 keys have pressed : [KeyOut ,KeyIn]
[1,0], [1,2], [1,7], [3,4], [7,4]
4.C1
Note : no more than one key can be pressed on the same key in line at the same time
Bits
Description
Access
Reset
Page 90
2006-10-11
6:5
4
3:0
RW
RW
00
RW
RW
0000
2 elcyC
1 elcyC
0tuOyeK
1tuOyeK
7tuOyeK
8/emiT gnicnuob-eD=T
T8
T
gnimiT nacS yeK
4.C2
Bits
Description
Access
Reset
7:4
COM[3:0] of SEG0
RW
xxxx
3:0
COM[3:0] of SEG1
RW
xxxx
Page 91
2006-10-11
Bits
Description
Access
Reset
7:4
COM[3:0] of SEG2
RW
xxxx
3:0
COM[3:0] of SEG3
RW
xxxx
Access
Reset
4.C4
Bits
Description
7:4
COM[3:0] of SEG4
RW
xxxx
3:0
COM[3:0] of SEG5
RW
xxxx
Access
Reset
4.C5
Bits
Description
7:4
COM[3:0] of SEG6
RW
xxxx
3:0
COM[3:0] of SEG7
RW
xxxx
Access
Reset
4.C6
Bits
Description
7:4
COM[3:0] of SEG8
RW
xxxx
3:0
COM[3:0] of SEG9
RW
xxxx
Access
Reset
4.C7
Bits
Description
7:4
COM[3:0] of SEG10
RW
xxxx
3:0
COM[3:0] of SEG11
RW
xxxx
Access
Reset
4.C8
Bits
Description
7:4
COM[3:0] of SEG12
RW
xxxx
3:0
COM[3:0] of SEG13
RW
xxxx
Page 92
2006-10-11
Bits
Description
Access
Reset
7:4
COM[3:0] of SEG14
RW
xxxx
3:0
COM[3:0] of SEG15
RW
xxxx
Access
Reset
Description
7:4
COM[3:0] of SEG16
RW
xxxx
3:0
COM[3:0] of SEG17
RW
xxxx
Description
Access
Reset
7:4
COM[3:0] of SEG18
RW
xxxx
3:0
COM[3:0] of SEG19
RW
xxxx
Description
Access
Reset
ECC 6
ECC6
ECC 5
ECC5
ECC 4
ECC4
ECC 3
ECC3
Access
Reset
Description
ECC 10
ECC10
Page 93
2006-10-11
ECC 9
ECC9
ECC 8
ECC8
ECC 7
ECC7
Access
Reset
4.CE
Bits
Description
ECC 2
ECC2
ECC 1
ECC1
ECC 0
ECC0
ECC 11
ECC11
Description
Access
Reset
Flash ECC Error flag, 1 ECC1 or ECC2 Error ever occur. Writing 1 to this
bit will clear the bit.
RW
User ECC Error flag, 1 ECC3 Error ever occur. Writing 1 to this bit will
clear the bit.
RW
RW
RW
ECC 13
ECC13
ECC 12
ECC12
Page 94
2006-10-11
ECC 0=
ECC 1=
ECC 2=
ECC12=
P8192
ECC0= P1
ECC1= P2
ECC2= P4
ECC13= P8192
4.D0 RegisterD0--BAT ADC and LRADC1/LRADC2 Control and Status Register (Back)
Bits
Description
Access
Reset
RW
RW
RW
RW
RW
RW
RW
4.D1
Register (Back)
Bits
Description
Access
Reset
RW
Reserved to 0.
RW
TP Fs select.
0 0 8k
0 1 4k
1 0 2k
1 1 1k
RW
00
5:4
Page 95
2006-10-11
3:2
RW
01
1:0
RW
4.D2
Bits
Reset
RW
RW
01
Touch panel function idle bit, if write this bit, touch panel go into idle mode
for power saving, any touch again will active it; Read this bit, always is
zero
RW
3:0
Touch panel scan period select bits, if SCAN [3:0]=n, then the scan period
is 16*n*Ts (if n=0,then period=8*Ts) and here 16*n*Ts must be greater
than TPSP[1:0]*TOGS[1:0]*2.
RW
0010
Access
Reset
RW
00
6:5
4.D3
Bits
7:6
Description
Page 96
2006-10-11
5:4
RW
00
3:2
RW
00
1:0
RW
11
Access
Reset
4.D4
Bits
Description
RW
RW
RW
RW
2:0
4.D5
Bits
101
Access
Reset
Page 97
2006-10-11
RW
000
RW
RW
RW
RW
Access
Reset
RW
101
7:5
1:0
4.D6
6:4
Description
Reserved.
Line-in input stage gain control
000
-7.5db
001
-6.0db
010
-4.5db
011
-3.0db
100
-1.5db
101
0.0db
110
1.5db
111
3.0db
Reserved.
Page 98
2006-10-11
2:0
4.D7
RW
101
Access
Reset
Bits
Description
RW
AUDIO ADC FIFO adjusting bit. Writing 1 to this bit to synchronize FIFO
internal state and clear DRQ also.
RW
AUDIO ADC FIFO EMPTY flag, Read Only, 0: empty, 1: not empty
RW
RW
RW
RW
RW
00
Access
Reset
XXh
1:0
4.D8
Bits
7:0
Description
LRADC1 Data[7:0]
Page 99
2006-10-11
Bits
Description
Access
Reset
7:5
000
4:2
Reserved
101
1:0
01
4.DB
Description
Description
7:5
4:0
0
10101
Bits
4.DE
Reset
RW
Reserved.
Access
R
7:0
Bits
4.DC
Reset
Access
Description
Reset
Access
Bits
Description
Access
Reset
RW
RW
Reserved.
verify mode-- 0 Audio ADC normal output; 1 Audio ADC output 010101
RW
RW
st
Page 100
2006-10-11
RW
RW
Reserved
Access
Reset
RW
00
RW
10
RW
10
Description
Set LBD voltage level
**00=VL0
01=VL1
10=VL2
11=VL3
The following is the table of VL0~3 in different battery mode:
7:6
PWRMODE[1..0]
00/01
10
11
VL0
0.75V
1.5V/2
3.3V/2
VL1
0.85V
1.7V/2
3.4V/2
VL2
0.95V
1.9V/2
3.5V/2
VL3
1.05V
2.1V/2
3.6V/2
5:4
00/01
11
VL1
0.85V
1.7V/2
3.4V/2
VL2
0.95V
1.9V/2
3.5V/2
VL3
1.05V
2.1V/2
3.6V/2
VL4
3:2
10
1.15V
2.3V/2
3.7V/2
Page 101
2006-10-11
RW
RW
Access
Reset
4.E0
Description
RW
RW
RW
RW
3:2
Reserve to 0
RW
00
1:0
RW
00
Access
Reset
4.E1
Bits
Description
RW
RW
RW
Reserved.
RW
RW
Page 102
2006-10-11
1:0
4.E2
RW
RW
00
Access
Reset
RW
Access
Reset
xxxxxxx
Reserved to 1
Bits
7:0
4.E3
Description
Any data written to this register, 8 clocks should be generate to shift out
this byte.
Any data received from response line will be stored into this register.
Bits
7:1
0
4.E4
Description
Bits
Description
Access
Reset
7:0
Any data written to this register, 8 clocks should be generate to shift out
this byte.
Any data received from data line will be stored into this register.
RW
Access
Reset
Access
Reset
4.E5
Bits
7:0
4.E6
Bits
Description
7:0
Page 103
2006-10-11
Bits
Description
Access
Reset
RW
RW
Reserved.
RW
Reserved.
1:0
Reserved.
Access
Reset
4.E8
Bits
7:0
Page 104
2006-10-11
4.E9
Bits
7:0
Description
FIFO Level: 9 levels.
It is valid when Parity Symbols FIFO ready flag is 1, Read regE9H 9
times successively, we will get Parity Symbols FIFOs RS_ECC[71:0].
Read sequence is RS_ECC[7:0] first ,then RS_ECC[15:8]
Access
Reset
Access
Reset
Description
7:1
Reserved.
Reserved
RW
Page 105
2006-10-11
Signal Name
Y[8:0]
X[8:0]
Enable
Data
I/O
out
in
in
in
Clk
Clrn
in
in
Description
9bit parallel encode words Bytes(511Bytes).
9bit parallel data Bytes for encoding(503Bytes).
global encoder clock enable.
signal that the encoder should be output the data symbols or parity
symbols.
global clock.
signal that the encoder should be clear initial.
Decoder:
The decoder interface is as follows
Page 106
2006-10-11
Signal name
x
error_flag
Enable
Can_not
I/O
in
out
in
out
Clk
Clrn
Error_value
in
in
out
Error_address
out
Valid
out
Description
9bit parallel encoded code word for decoding.
1 indicates that error has been corrected.
global decode clock enable.
1 indicates that more than 4 errors has been
detected and can not corrected.
global clock.
signal that the decoder should be clear initial.
9bit parallel corrected data Bytes. Each corrected words output from
the decoder.
9bit parallel corrected address Bytes. Each corrected words output
from the decoder.
if high during active clock edge, indicates that output Error data is valid
and should be latched on next clock edge.
Description
Access
Reset
Page 107
2006-10-11
WR
Flag Over Error flag. 0 means that error number does not confirm. The bit
will be set to 1 when more than 4 symbols RS_ECC errors are detected
and does not correct in the current codeword, Writing 1 to this bit will clear
it.
WR
Reserved.
WithError Flag. This bit will set to 1 when RS_ECC any errors are
detected in the current codeword, writing 1 to this bit will clear it.
WR
FIFO Ready flag. This bit will set to 1 when the RS encode or decode
engine works on 9-bit symbols has completed. Hardware will
automatically reset to 0 when the next sector DMA start.
FIFO Pointer Reset bit. 0 Reset invalid, 1 Reset valid. Writing 1 to this bit
will reset the Parity Symbols FIFO and E(x) FIFO pointer.
WR
WR
WR
Notes:
1. Symbols size supported is only for 9 parity.
2. RS(n, k) n=511, k=503
3. 9-bit symbols can be read after the E(x) FIFO Ready flag bit set to 1, the 4 9-bit symbols(E(x))
which include Error locations(Xi) and Error magnitudes(Yi) will be read to RAM by serial read
signal (16 clock).
4. RS ECC can be Read after the Parity Symbol FIFO Ready flag bit set to 1, the RS ECC will be
read to RAM by serial read signal (9 clock).
Page 108
2006-10-11
RegEB_6. If RegEB_6 is 1, it means 4symbols or more than 4symbols Error, and then it cannot
be decoded. If RegEB_6 is 0, it means RS ECC cannot judge whether right or not.
Encoder:
If a 512-byte data block located on RAM need writing to flash device, then it can be assumed that a
9-bytes Read-Solomon parity need writing into 16 Bytes spare area.
Page 109
2006-10-11
16 Byte
Spare Area
431
72
8 Parity
Symbols
431
503 Symbol Polynomial Dividend
511 Symbol Reed-Solomon Block Code
Galois Field
Polynomial Divider
8 Parity
Symbol
Remainder
ECC4_PARSTRTADDR_ADDR
ECC4_PARSTRINDEX_INDEX
16 Byte
Spare Area
9 Byte
Parity
Page 110
2006-10-11
ECC4_PARSTRTADDR_ADDR
ECC4_PARSTRINDEX_INDEX
16 Byte
Spare Area
9 Byte
Parity
431
add one zero
every byte
72
8 Parity
Symbols
431
503 Symbol Polynomial Dividend
511 Symbol Reed-Solomon Block Code
8 SYNDROMES
8 Parity
Symbol
Remainder
Galois Field
Polynomial Divider
OK
== 0?
ERROR!
Flash ECC Read-Solomon Block coding: decoding.
1. Large block: after DMA transmits one sector, sending writing spare command(0xfc) will write RS_ECC
to spare area, then transmit the next sector and the corresponding RS_ECC. When DMA reading, ECC
hardware will checkout automatically, and if there is error, it will sent an error flag.
Page 111
2006-10-11
512 B
Main area
512 B
Main area
512 B
Main area
16 B
Spare
area
16 B
Spare
area
16 B
Spare
area
16 B
Spare
area
2. Small block: At the time of transmitting over 512 bytes data, RS_ECC will be written to the spare area.
When DMA reading, ECC hardware will checkout automatically, and if there is an error, it will sent an error
flag.
Small block flash
512 B
Main area
16 B
Spare
area
IO6
IO5
IO4
IO3
IO2
IO1
IO0
RS_ECC_0 RS_71
RS_70
RS_69
RS_68
RS_67
RS_66
RS_65
RS_64
RS_ECC_1 RS_63
RS_62
RS_61
RS_60
RS_59
RS_58
RS_57
RS_56
RS_ECC_2 RS_55
RS_54
RS_53
RS_52
RS_51
RS_50
RS_49
RS_48
RS_ECC_3 RS_47
RS_46
RS_45
RS_44
RS_43
RS_42
RS_41
RS_40
RS_ECC_4 RS_39
RS_38
RS_37
RS_36
RS_35
RS_34
RS_33
RS_32
RS_ECC_5 RS_31
RS_30
RS_29
RS_28
RS_27
RS_26
RS_25
RS_24
RS_ECC_6 RS_23
RS_22
RS_21
RS_20
RS_19
RS_18
RS_17
RS_16
RS_ECC_7 RS_15
RS_14
RS_13
RS_12
RS_11
RS_10
RS_9
RS_8
RS_ECC_8
RS_6
RS_5
RS_4
RS_3
RS_2
RS_1
RS_0
RS_7
Page 112
2006-10-11
Description
7:2
Access
Reset
Reserved.
RW
RW
Access
Reset
MFP Select
000: F1(GPIO)
001: F2 (KEY8*12)
010: F3 (ILCD)
011: F4 (MROM)
100: F5 (SDRAM)
101: F6 (CF/IDE)
110: reserve
111: F8 (MROM+Sensor)
RW
000
CE0S control.
0: normal .if external pin CE0S=H, the default PAD mode is F1, otherwise
the default PAD mode is F4.
1: the same as CE0S=H.
RW
RW
1001
4.EE
Bits
7:5
3:0
Description
F6(ATA+SDR F8(MROM+Sensor
F4(CE0S=L
F1(CE0S=H default)
F2(key8*12)
F3(ILCD)
NAME
F5(SDRAM)
AM)
default)MROM
+SDRAM)
GPO_A0
GPO_A0/ICEDI
As left
As left
As left
As left
As left
As left
GPO_A1
GPO_A1/ICECK
As left
As left
As left
As left
As left
As left
GPO_A2
GPO_A2/ICEDO
As left
As left
As left
As left
As left
As left
GPIO_B0
KEYI0/GPIO_B0
As left
As left
As left
As left
As left
As left
GPIO_B1
KEYI1/GPIO_B1
As left
As left
As left
As left
As left
As left
Page 113
2006-10-11
KEYI2/GPIO_B2
As left
As left
As left
As left
As left
/SPI_SCK
GPIO_B3
KEYI3/GPIO_B3
As left
As left
As left
As left
As left
As left
GPIO_B4
KEYO0/GPIO_B4
As left
As left
As left
As left
As left
As left
GPIO_B5
KEYO1/GPIO_B5
As left
As left
As left
As left
As left
KEYO1/GPIO_B
5/SPI_MOSI
GPIO_B6
KEYO2/GPIO_B6
As left
As left
As left
As left
As left
As left
GPIO_B7
KEYO3/GPIO_B7
As left
As left
As left
As left
As left
As left
GPIO_C0
GPIO_C0
As left
As left
As left
As left
As left
As left
As left
As left
As left
As left
GPIO_C2
GPIO_C2
As left
As left
As left
As left
GPIO_C0/I2C_S
CL
GPIO_C1/I2C_S
GPIO_C1
GPIO_C1
DA/SIRQGPIO_C2
GPIO_C2
/MMC_SCLK
GPIO_C3
GPIO_C3
GPIO_C3
GPIO_C3
CE0-
CE0-
CE0-
CE0-
GPIO_D0
GPIO_D0
GPIO_D0
COM0
A0
A0
A0/ATA-A0
A0
GPIO_D1
GPIO_D1
GPIO_D1
COM1
A1
A1
A1/ATA-A1
A1
GPIO_D2
GPIO_D2
GPIO_D2
COM2
A2
A2
A2/ATA-A2
A2
GPIO_D3
GPIO_D3
GPIO_D3
COM3
A3
A3
A3
A3
As left
As left
As left
As left
As left
As left
As left
As left
As left
As left
GPIO_D4/UART
_RX/SPI_MISO/
GPIO_D4
GPIO_D4
SPDIF_RX/IR_R
X
GPIO_D5/UART
GPIO_D5
GPIO_D5
_TX/SPI_SS/SP
DIF_TX/IR_TX
GPIO_E0
GPIO_E0
GPIO_E0
SEG0
A6
A6
A6
A6
GPIO_E1
GPIO_E1
GPIO_E1
SEG1
A7
A7
A7
A7
GPIO_E2
GPIO_E2
GPIO_E2
SEG2
A8
A8
A8
A8
GPIO_E3
GPIO_E3
GPIO_E3
SEG3
A9
A9
A9
A9
GPIO_E4
GPIO_E4
KEYO4
SEG4
A10
A10
A10
A10
GPIO_E5
GPIO_E5
KEYO5
SEG5
A11
A11
A11
A11
GPIO_E6
GPIO_E6
KEYO6
SEG6
A12
A12
A12
A12
GPIO_E7
GPIO_E7
KEYO7
SEG7
A13
GPIO_F0
GPIO_F0/MMC_D0
KEYI4
SEG8
A14
D8
D8/ATA-D8
A14
GPIO_F1
GPIO_F1/MMC_D1
KEYI5
SEG9
A15
D9
D9/ATA-D9
A15
A13
Page 114
2006-10-11
GPIO_F2/MMC_D2
KEYI6
SEG10
A16
D10
D10/ATA-D10
A16
GPIO_F3
GPIO_F3/MMC_D3
KEYI7
SEG11
A17
D11
D11/ATA-D11
A17
GPIO_F4
GPIO_F4
KEYI8
SEG12
A18
D12
D12/ATA-D12
A18
GPIO_F5
GPIO_F5
KEYI9
SEG13
A19
D13
D13/ATA-D13
A19
GPIO_F6
GPIO_F6
KEYI10
SEG14
A20
D14
D14/ATA-D14
A20
GPIO_F7
GPIO_F7
KEYI11
SEG15
A21
D15
D15/ATA-D15
A21
GPIO_G0
GPIO_G0
GPIO_G0
GPIO_G0
SDMCS
SDMCS
SDMCS
A4
A4
A4
A4
A5
A5
A5
A5
GPIO_G3
GPIO_G3
IO16-(I)
GPIO_G3
GPIO_G0/SE
G16
GPIO_G1/SE
GPIO_G1
GPIO_G1
GPIO_G1
G17
GPIO_G2/SE
GPIO_G2
GPIO_G2
GPIO_G2
G18
GPIO_G3/SE
GPIO_G3
GPIO_G3
GPIO_G3
G19
GPIO_K0
GPIO_K0
GPIO_K0
GPIO_K0
GPIO_K0
SDMCKE
SDMCKE
SDMCKE
GPIO_K1
GPIO_K1
GPIO_K1
GPIO_K1
GPIO_K1
SDMCLK
SDMCLK
SDMCLK
GPIO_K2
GPIO_K2
GPIO_K2
GPIO_K2
GPIO_K2
GPIOK_2
DMARQ
GPIOK_2
GPIO_K3
GPIO_K3
DMACK
GPIOK_3/DABitclk
IORDY
GPIOK_4/DAMCLK
GPIO_K5
GPIO_K5/DA_Data
GPIO_K6
GPIO_K6/DA_LR
itclk
tclk
Bitclk
GPIO_K4
LK
MCLK
CLK
MCLK
GPIO_K5
ata
Data
Data
Data
GPIO_K6
R
LR
LR
LR
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D0
Hi-Z
Sensor_D0
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D1
Hi-Z
Sensor_D1
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D2
Hi-Z
Sensor_D2
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D3
Hi-Z
Sensor_D3
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D4
Hi-Z
Sensor_D4
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D5
Hi-Z
Sensor_D5
Sensor_D
0
Sensor_D
1
Sensor_D
2
Sensor_D
3
Sensor_D
4
Sensor_D
5
Page 115
2006-10-11
Hi-Z
Hi-Z
Hi-Z
Sensor_D6
Hi-Z
Sensor_D6
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Sensor_D7
Hi-Z
Sensor_D7
GPIO_K7
Hi-Z
GPIOK_7
GPIOK_7
GPIOK_7
SDR-WE-
SDR-WE-
SDR-WE-
PCLK
Hi-Z
Hi-Z
Hi-Z
Hi-Z
PCLK
IOW-
PCLK
Hsync
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hsync
INTRQ(I)
Hsync
Vsync
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Vsync
IOR-
Vsync
BA0
Hi-Z
Hi-Z
Hi-Z
Hi-Z
BA0
BA0
BA0
BA1
Hi-Z
Hi-Z
Hi-Z
Hi-Z
BA1
BA1
BA1
RAS
Hi-Z
Hi-Z
Hi-Z
Hi-Z
RAS
RAS
RAS
CAS
Hi-Z
Hi-Z
Hi-Z
Hi-Z
CAS
CAS
CAS
DQM
Hi-Z
Hi-Z
Hi-Z
Hi-Z
DQM
DQM
DQM
NFV33S
NFV33S
NFV33S
NFV33S
NFV33S
NFV33S
NFV33S
NFV33S
CS0-
Hi-Z
CS0-
CS0-
CS0-
CS0-
CS0-
CS0-
CS1-
Hi-Z
CS1-
CS1-
CS1-
CS1-
CS1-
CS1-
6
Sensor_D
7
4.EF
If any bit of BIT[3..0] is set , the corresponding bit of regC1h should be set too.
GPIOBCONFIG(GPIO_B[7:0] and KEYI/O[3:0] Config Register, 0EFh)
Bits
Description
Access
Reset
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.F0
Description
Page 116
2006-10-11
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.F1
Bits
Description
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
RW
XXh
Access
Reset
4.F2
Bits
7:0
4.F3
Bits
Description
Output/Input Data[7:0]
RW
RW
RW
RW
Page 117
2006-10-11
RW
RW
RW
RW
Access
Reset
RW
1111
Access
Reset
4.F4
Bits
Description
7:4
Reserved
3:0
Output/Input Data[3:0]
4.F5
Bits
Description
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.F6
Bits
7:6
Description
Reserved
RW
RW
RW
RW
RW
RW
Page 118
2006-10-11
Bits
Description
7:6
5:0
4.F8
RW
Output/Input Data[5:0]
Reset
Reserved
Access
000000
Access
Reset
Bits
Description
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.F9
Bits
Description
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
RW
Description
Output/Input Data[7:0]
Page 119
2006-10-11
Description
Access
Reset
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.FC
Bits
Description
RW
RW
RW
RW
RW
RW
RW
RW
Access
Reset
RW
XXh
Access
Reset
RW
4.FD
Bits
7:0
4.FE
Bits
7
Description
Output/Input Data[7:0]
Page 120
2006-10-11
RW
RW
RW
RW
RW
RW
RW
Access
Reset
4.FF
Bits
Description
RW
RW
RW
RW
Output/Input Data[3:0]
RW
xxxx
3:0
Page 121
2006-10-11
5. Abbreviation
ACKAcknowledgement
ADCAnalog Digital Convert
ATAIRQAdvanced Technology Attachment Interrupt Request
CTCClock/Timer/Counter
DACDigital Analog Convert
DMADirect Memory Address
DRQData Request
DSTDestination
DSTDestination
ECCError Correction Code
EMExternal Memory
FIFOFirst In First Out
HIPHost Interface Port
HOSCHigh Frequency Oscillator
IDMInternal Data Memory
IPMInternal Program Memory
IRQInterrupt Request
IRInfra-red
I2CINTERIC
LOSCLow Frequency Oscillator
MICMicrophone
NAKNegative Acknowledgement
PLLPhase Locked Loop
Page 122
2006-10-11
Page 123
2006-10-11