background image

NUC970 Technical Reference Manual 

 

 

Publication Release Date: Dec. 15, 2015 

- 31 - 

Revision V1.30 

NUC97

0  
T

E

CHNIC

A

RE

F

E

RE
N

CE
 MA
NUA

L

 

3.3.3  NUC977DKxxY Pin Diagram 

 

Figure 3.3-3 NUC977DKxxY LQFP 128-pin Pin Diagram 

 

 

Содержание NUC970 series

Страница 1: ...usive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton Nuvoton is providing this document only for reference purposes of NuMicro micr...

Страница 2: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 2 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL...

Страница 3: ...2DFxxY Pin Diagram 29 3 3 2 NUC976DKxxY Pin Diagram 30 3 3 3 NUC977DKxxY Pin Diagram 31 Pin Description 32 3 4 4 BLOCK DIAGRAM 58 NUC970 Series Block Diagram 58 4 1 5 FUNCTIONAL DESCRIPTION 59 ARM ARM...

Страница 4: ...ster Description 194 SDRAM Interface Controller SDIC 217 5 5 5 5 1 Overview 217 5 5 2 Features 217 5 5 3 Block Diagram 218 5 5 4 Basic Configuration 219 5 5 5 Functional Description 219 5 5 6 Register...

Страница 5: ...eatures 299 5 9 3 Block Diagram 299 5 9 4 Basic Configuration 300 5 9 5 Functional Description 300 5 9 6 Register Map 304 5 9 7 Register Description 305 Timer Controller TMR 322 5 10 5 10 1 Overview 3...

Страница 6: ...egister Map 367 5 13 7 Register Description 368 Windowed Watchdog Timer WWDT 372 5 14 5 14 1 Overview 372 5 14 2 Features 372 5 14 3 Block Diagram 372 5 14 4 Basic Configuration 372 5 14 5 Function De...

Страница 7: ...view 516 5 18 2 Features 516 5 18 3 Block Diagram 517 5 18 4 Basic Configuration 517 5 18 5 Functional Description 518 5 18 6 Register Map 526 5 18 7 Register Description 527 SPI Interface Controller...

Страница 8: ...57 5 22 5 Functional Description 657 5 22 6 Registers Map 660 5 22 7 Register Description 665 USB Host Controller USBH 717 5 23 5 23 1 Overview 717 5 23 2 Features 717 5 23 3 Block Diagram 718 5 23 4...

Страница 9: ...26 7 Register Description 910 Cryptographic Accelerator CRYPTO 933 5 27 5 27 1 Overview 933 5 27 2 Features 933 5 27 3 Block Diagram 934 5 27 4 Basic Configuration 934 5 27 5 Functional description 93...

Страница 10: ...1162 5 31 4 Basic Configuration 1162 5 31 5 Functional Description 1163 5 31 6 Register Map 1166 5 31 7 Register Description 1167 Analog to Digital Converter ADC 1198 5 32 5 32 1 Overview 1198 5 32 2...

Страница 11: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 11 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 7 REVISION HISTORY 1250...

Страница 12: ...lock Divider Block Diagram 144 Figure 5 3 9 LCD Display Controller Clock Divider Block Diagram 144 Figure 5 3 10 Reference Clock Output Divider Block Diagram 144 Figure 5 3 11 SD Card Host Controller...

Страница 13: ...e 5 14 3 WWDT Reset and Reload Behavior 375 Figure 5 15 1 RTC Functional Block Diagram 385 Figure 5 16 1 UART Block Diagram 413 Figure 5 16 2 Auto Flow Control Block Diagram 414 Figure 5 16 3 UART Lin...

Страница 14: ...5 19 1 SPI Block Diagram 536 Figure 5 19 2 Normal SPI Timing 538 Figure 5 19 3 Alternate Phase SCLK Clock Timing 539 Figure 5 19 4 Dual IO output Sequence 539 Figure 5 19 5 Dual IO Input Sequence 540...

Страница 15: ...l Address Descriptor Table Format 848 Figure 5 25 6 PAD Physical Address Descriptor Table Fetch Modes 849 Figure 5 26 1 PAD Physical Address Descriptor Table Format 912 Figure 5 26 2 PAD Physical Addr...

Страница 16: ...32 1 ADC Functional Block Diagram 1199 Figure 5 32 2 ADC Transfer Function 1200 Figure 5 32 3 Simplified Sampling Diagram 1201 Figure 5 32 4 ADC Battery Voltage Detection Diagram 1202 Figure 5 32 5 K...

Страница 17: ...ist in Software Mode 442 Table 5 17 1 SC Host Controller Pin Description 476 Table 5 17 2 UART Pin Description 476 Table 5 21 1 Arbiter Arbitration Results 583 Table 5 21 2 Different CAMCMR Setting an...

Страница 18: ...ates two 10 100 Mb Ethernet MAC controllers USB 2 0 HS HOST Device controller with HS transceiver embedded TFT type LCD controller CMOS sensor I F controller 2D graphics engine DES 3DES AES crypto eng...

Страница 19: ...up to four booting modes Boot from USB Boot from eMMC Boot from NAND Flash Boot from SPI Flash Clock Control Support two PLLs up to 500 MHz for high performance system operation External 12 MHz high...

Страница 20: ...vice Support ECC4 ECC8 ECC12 ECC15 and ECC24 BCH algorithm for ECC code generation error detection and error correction Support eMMC flash interface Support DMA function to accelerate the data transfe...

Страница 21: ...lor Font Expanding BLT Support Transparent BLT Support Tile BLT Support Block Move BLT Support Copy File BLT Support Color Font Expansion Support Rectangle Fill Support RGB332 RGB565 RGB888 data forma...

Страница 22: ...ble for decode Support arbitrarily 1X 8X image up scaling function for encode mode Support down scaling function 1X 16X for Y422 and Y420 1X 8X for Y444 for decode mode Support specified window decode...

Страница 23: ...mmable transmission clock frequency Programmable receiver buffer trigger level Programmable guard time selection 11 ETU 266 ETU One 24 bit and two 8 bit time out counters for Answer to Request ATR and...

Страница 24: ...rial data transfer Variable length of transfer data from 8 to 32 bits MSB or LSB first data transfer Support burst mode operation that transmission and reception can be executed up to four times in a...

Страница 25: ...programmable memory for key of Crypto functionality Support up to 15 times of programming and erase Low Voltage Detect LVD and Low Voltage Reset LVR Support two 2 6V and 2 8V voltage detection levels...

Страница 26: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 26 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL All Green package RoHS LQFP 216 pin LQFP 128 pin...

Страница 27: ...RATION NUC970 Series Part Number Naming Guide 3 1 UC 9 7 X X X X ARM Microcontroller Related Product Product Number X X Package Type N Nuvoton Standard Product 972 977 976 D LQFP Pin Count K 128pin 14...

Страница 28: ...200K 146 11 2 2 2 2 1 LQFP216 40 to 85 NUC976DK62Y 64 1 2 1 2 1 5 1 4 4 200K 80 6 1 2 2 2 1 LQFP128 40 to 85 NUC976DK51Y 32 1 2 1 2 1 5 1 4 4 200K 80 6 1 2 2 2 1 LQFP128 40 to 85 NUC977DK62Y 64 1 24 2...

Страница 29: ...ical Reference Manual Publication Release Date Dec 15 2015 29 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Pin Configuration 3 3 3 3 1 NUC972DFxxY Pin Diagram Figure 3 3 1 NUC972DFxxY LQFP 216 pin...

Страница 30: ...UC970 Technical Reference Manual Publication Release Date Dec 15 2015 30 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 3 3 2 NUC976DKxxY Pin Diagram Figure 3 3 2 NUC976DKxxY LQFP 128 pin Pin Diagra...

Страница 31: ...UC970 Technical Reference Manual Publication Release Date Dec 15 2015 31 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 3 3 3 NUC977DKxxY Pin Diagram Figure 3 3 3 NUC977DKxxY LQFP 128 pin Pin Diagra...

Страница 32: ...eral purpose digital I O pin Port G Pin 0 I2C0_SCL O I2 C0 clock pin 5 4 4 PG 14 I O General purpose digital I O pin Port G Pin 14 I2S_LRCK O I2 S left right channel clock UART6_CTS I Clear to send in...

Страница 33: ...rnal core power pin 13 DDR_VSS P DDR ground pin 14 11 11 DDR_VDD P DDR power pin 15 DDR_VSS P DDR ground pin 16 11 11 DDR_VDD P DDR power pin 17 DDR_VSS P DDR ground pin 18 12 12 DDR_VDD P DDR power p...

Страница 34: ...ed TIMER toggle output pin INT0 I External interrupt 0 input pin 26 14 14 PG 9 I O General purpose digital I O pin Port G Pin 9 LCD_DEN O Data enable or display control signal 27 15 15 PG 8 I O Genera...

Страница 35: ...ta output bit 20 UART9_RXD I Data receiver input pin for UART9 PWM0 O PWM0 output pin EBI_nCS4 O External I O chip select bank 4 34 PD 11 I O General purpose digital I O pin Port D Pin 11 LCD_DATA19 O...

Страница 36: ...eral purpose digital I O pin Port A Pin 13 LCD_DATA13 O LCD pixel data output bit 13 KPI_COL5 I Keypad Column Scan Input Bus 5 PWM1 O PWM1 output pin 41 21 21 PA 12 I O General purpose digital I O pin...

Страница 37: ...PA 7 I O General purpose digital I O pin Port A Pin 7 RMII0_RXDATA1 I RMII0 receive data bus bit 1 LCD_DATA7 O LCD pixel data output bit 7 KPI_ROW3 O Keypad Row Scan Output Bus 3 PWRON_SET7 I Power On...

Страница 38: ...ort A Pin 2 RMII0_TXDATA0 O RMII0 Transmit Data bus bit 0 LCD_DATA2 O LCD pixel data output bit 2 PWRON_SET2 I Power On Setting bit 2 53 33 33 PA 1 I O General purpose digital I O pin Port A Pin 1 RMI...

Страница 39: ...ull high 69 45 38 X32_IN I External 32 768kHz crystal input 70 46 39 X32_OUT O External 32 768kHz crystal output 71 PH 4 I O General purpose digital I O pin Port H Pin 4 KPI_ROW0 O Keypad Row Scan Out...

Страница 40: ...O pin Port H Pin 8 KPI_COL0 I Keypad Column Scan Input Bus 0 SD1_DAT0 I O SD SDIO mode 1 data line bit 0 UART4_TXD O Data transmitter output pin for UART4 EBI_ADDR4 O External I O address bus bit 4 7...

Страница 41: ..._ADDR8 O External I O address bus bit 8 80 IO_VDD P MCU I O power pin 81 CORE_VSS P MCU internal core ground pin 82 47 41 CORE_VDD P MCU internal core power pin 83 PH 13 I O General purpose digital I...

Страница 42: ...put pin for UART7 EBI_DATA1 I O External I O data bus bit 1 INT6 I External interrupt 6 input pin 88 43 PI 2 I O General purpose digital I O pin Port I Pin 2 NAND_nWP O NAND flash srite protect UART7_...

Страница 43: ...bus bit 5 SD1_CMD O SD SDIO mode 1 command response UART1_TXD O Data transmitter output pin for UART1 SPI1_SS0 O 1st SPI1 chip select pin 92 51 47 PI 6 I O General purpose digital I O pin Port I Pin...

Страница 44: ...eMMC data line bit 0 SC1_DAT I O SmartCard1 data pin EBI_DATA8 I O External I O data bus bit 8 SD1_DAT1 I O SD SDIO mode 1 data line bit 1 UART1_CTS I Clear to send input pin for UART1 SPI1_DI SPI1_D...

Страница 45: ...O SmartCard0 reset pin EBI_DATA11 I O External I O data bus bit 11 98 57 53 PI 12 I O General purpose digital I O pin Port I Pin 12 VCAP_DATA4 I Sensor interface data bus bit 4 NAND_DATA4 I O NAND fla...

Страница 46: ...7 UART8_CTS I Clear to send input pin for UART8 SC0_CD I SmartCard0 card detect pin EBI_DATA15 I O External I O data bus bit 15 CLK_OUT O Clock output pin 102 CORE_VDD P MCU internal core power pin 1...

Страница 47: ...capture input pin 109 62 PB 4 I O General purpose digital I O pin Port B Pin 4 UART6_RTS O Request to send output pin for UART6 110 63 PB 5 I O General purpose digital I O pin Port B Pin 5 UART6_CTS...

Страница 48: ...pin for UART10 SPI1_SS0 O 1st SPI1 chip select pin 118 72 72 PB 13 I O General purpose digital I O pin Port B Pin 13 UART10_RXD I Data receiver input pin for UART10 SPI1_CLK O SPI1 serial clock pin 11...

Страница 49: ...eMMC_DATA1 I O eMMC data line bit 1 125 PC 2 I O General purpose digital I O pin Port C Pin 2 NAND_DATA2 I O NAND flash data bus bit 2 eMMC_DATA2 I O eMMC data line bit 2 126 PC 3 I O General purpose...

Страница 50: ...rpose digital I O pin Port C Pin 9 NAND_ALE O NAND flash address latch enable UART10_CTS I Clear to send input pin for UART10 TM1_CAP I Enhanced TIMER capture input pin 133 PC 10 I O General purpose d...

Страница 51: ...O General purpose digital I O pin Port J Pin 0 JTAG_TCK O JTAG test clock 140 77 77 PJ 1 I O General purpose digital I O pin Port J Pin 1 JTAG_TMS O JTAG test mode select 141 78 78 PJ 2 I O General p...

Страница 52: ...SD SDIO mode 0 clock 157 88 88 PD 2 I O General purpose digital I O pin Port D Pin 2 SD0_DAT0 I O SD SDIO mode 0 data line bit 0 158 89 89 PD 3 I O General purpose digital I O pin Port D Pin 3 SD0_DAT...

Страница 53: ...n for UART9 CAN0_RXD I CAN bus receiver0 input PWM2 O PWM2 output pin INT2 I External interrupt 2 input pin 169 PE 13 I O General purpose digital I O pin Port E Pin 13 UART8_CTS I Clear to send input...

Страница 54: ...General purpose digital I O pin Port E Pin 7 RMII1_REFCLK I RMII1 reference clock SD1_DAT3 I O SD SDIO mode 1 data line bit 3 UART1_DSR I Data set ready input pin for UART1 176 PE 6 I O General purpos...

Страница 55: ...receiver input pin for UART0 182 97 97 PE 0 I O General purpose digital I O pin Port E Pin 0 UART0_TXD O Data transmitter output pin for UART0 183 98 98 IO_VDD P MCU I O power pin 184 99 99 XT1_IN I E...

Страница 56: ...1 RMII0_MDIO I O RMII0 Management Data I O 196 111 111 PF 0 I O General purpose digital I O pin Port F Pin 0 RMII0_MDC O RMII0 Management Data Clock 197 112 112 PH 1 I O General purpose digital I O p...

Страница 57: ...signal D 207 119 119 USB1_DP I O USB1 differential signal D 208 120 120 USB1_VDD P USB1 I O power pin 209 121 121 USB1_REXT I USB1 module reference Resister 210 122 122 USBPLL0_VDD P USB0 PLL power pi...

Страница 58: ...OR HS Ext Crystal Osc 12 MHz LVR LS Ext Crystal Osc 32 768 kHz PLL x 2 UART X 11 IrDA RS 485 I2S I2C X 2 SPI X 2 PIC CCAN X 2 USB 2 0 High Speed Device USB 2 0 High Speed Host Ethernet MAC X 2 Smart C...

Страница 59: ...er to choose between high performance and high code density The ARM926EJ S CPU core includes features for efficient execution of Java byte codes providing Java performance similar to JIT but without t...

Страница 60: ...n only access CP15 registers with MRC and MCR instruction in a privileged mode Access CP15 registers with CDP LDC STC MCRR and MRRC instructions and unprivileged MRC or MCR instruction causes the unde...

Страница 61: ...Data Cache D Cache and a write buffer The size of I Cache and D Cache in this chip is 16 KB respectively The caches features are The caches are virtual index virtual tag addressed using the Modified...

Страница 62: ...the AMBA Specification Rev 2 0 To increase system performance write buffers are used to prevent AHB writes stalling the ARM926EJ S system 5 1 6 Power Management The ARM926EJ S processor can be put in...

Страница 63: ...e System Memory Map System management registers for Product Identifier PDID Power On Setting System Wake Up Reset Control for on chip controllers peripherals and multi function pin control System Cont...

Страница 64: ...o USB 2 0 PHY 0 while USB1_VDD USBPLL1_VDD provides 3 3V and 1 2 respectively to USB 2 0 PHY 1 IO power from DDR_VDD provides 1 8V to I O pins used to connect DDR2 SDRAM IO power from IO_VDD provides...

Страница 65: ...ripherals is from 0xB000_0000 to 0xBBFF_FFFF while the memory space from 0xFFFF_0000 to 0xFFFF_FFFF is for 16 k byte internal Boot ROM This chip provides the shadow memory function The memory space fr...

Страница 66: ...0xB000_0000 0xB800_0000 On Chip AHB Peripherals 0xFFFF_4000 0xFFFF_0000 Internal Boot ROM IBR 16 KB SDRAM Reserved 0xC000_0000 0x3000_0000 0x3C00_0000 Internal SRAM 56 KB Reserved Reserved 0x3C00_E000...

Страница 67: ...0 Control Registers 0xB000_3000 0xB000_3FFF EMAC1_BA Ethernet MAC 1 Control Registers 0xB000_4000 0xB000_4FFF GDMA_BA GDMA Control Registers 0xB000_5000 0xB000_5FFF EHCI_BA USB EHCI Host Control Regis...

Страница 68: ..._1800 0xB800_18FF WDT_BA Watch Dog Timer Control Registers 0xB800_1900 0xB800_19FF WWDT_BA Windowed Watch Dog Timer Control Registers 0xB800_2000 0xB800_2FFF AIC_BA Advance Interrupt Control Registers...

Страница 69: ...used as the eMMC functionality in NUC972 while PI 10 5 used as the eMMC functionality in NUC976 and NUC977 Note 2 PC 14 0 used as the NAND functionality in NUC972 while PI 15 1 used as the NAND functi...

Страница 70: ...ease Date Dec 15 2015 70 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL PA 9 8 NAND Flash ECC Type Selection 00 NAND Flash ECC type is BCH T12 01 NAND Flash ECC type is BCH T15 10 NAND Flash ECC typ...

Страница 71: ...R W AHB IP Reset Control Register 0x0000_0000 SYS_APBIPRS T0 SYS_BA 0x064 R W APB IP Reset Control Register 0 0x0000_0000 SYS_APBIPRS T1 SYS_BA 0x068 R W APB IP Reset Control Register 1 0x0000_0000 SY...

Страница 72: ...S_GPH_MFP L SYS_BA 0x0A8 R W GPIOH Low Byte Multiple Function Control Register 0x0000_0000 SYS_GPH_MFP H SYS_BA 0x0AC R W GPIOH High Byte Multiple Function Control Register 0x0000_0000 SYS_GPI_MFP L S...

Страница 73: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 73 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 2 7 Register Description...

Страница 74: ...D008 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 PRDNUML6 PRDNUML5 15 14 13 12 11 10 9 8 PRDNUML4 PRDNUML3 7 6 5 4 3 2 1 0 PRDNUML2 PRDNUML1 Bits Description 31 24 Reserved Reserved 23 20...

Страница 75: ...ed Reserved 27 24 DID Device ID Read Only 0000 NUC970 0010 NUC972 1110 NUC976 1111 NUC977 DID 3 is also used to indicate NAND interface pin out location 1 b0 Pin PC 14 0 is used as NAND interface for...

Страница 76: ...t OFF 4 JTAGON JTAG Interface ON OFF Selection When pin nRESET transited from low to high the value of pin PA 4 latched to JTAGON 0 Pin PJ 4 0 used as GPIO pin 1 Pin PJ 4 0 used as JTAG interface 3 WD...

Страница 77: ...Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved LVD_SEL LVD_EN 7 6 5 4 3 2 1 0 Reserved LVR_EN Bits Description 31 10 Reserved Reserved 9 LVD_SEL Low Voltage Detect Threshold...

Страница 78: ...2 0 port 1 PHY monitor mode Enabled 14 UPHY0MEN USB PHY 0 Monitor Enable 0 USB 2 0 port 0 PHY monitor mode Disabled 1 USB 2 0 port 0 PHY monitor mode Enabled 13 Reserved Reserved 12 GPIOLBEN GPIO Pin...

Страница 79: ...timer reset is connected to nRESET pin internally 0 Watch dog timer reset not connected to nRESET pin internally 1 Watch dog timer reset connected to nRESET pin internally 7 2 Reserved Reserved 1 TDE...

Страница 80: ...rupt Enable Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved USBIDC_IEN LVD_IEN Bits Description 31 2 Rese...

Страница 81: ...12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved USBIDC_IS LVD_IS Bits Description 31 18 Reserved Reserved 17 USB0_IDS USB0_ID Status 0 USB port 0 used as a USB device port 1 USB port 0 used as a USB h...

Страница 82: ...0 USB host wake system up function disabled 1 USB host wake system up function enabled 30 USBD USB Device Wake System Up Enable 0 USB device wake system up function disabled 1 USB device wake system u...

Страница 83: ...0 Wake System Up Enable 0 CAN 0 wake system up function disabled 1 CAN 0 wake system up function enabled 17 EMAC1 Ethernet MAC 1 Wake System Up Enable 0 Ethernet MAC 1 wake system up function disabled...

Страница 84: ...p Enable 0 External Interrupt 5 wake system up function disabled 1 External Interrupt 5 wake system up function enabled 4 EINT4 External Interrupt 4 Wake System Up Enable 0 External Interrupt 4 wake s...

Страница 85: ...6 EINT5 EINT4 EITN3 EINT2 EINT1 EINT0 Bits Description 31 USBH USB Host Wake System Up Status 0 USB host didn t wake system up 1 USB host waked system up 30 USBD USB Device Wake System Up Status 0 USB...

Страница 86: ...m up 1 CAN 1 waked system up 18 CAN0 CAN 0 Wake System Up Status 0 CAN 0 didn t wake system up 1 CAN 0 waked system up 17 EMAC1 Ethernet MAC 1 Wake System Up Status 0 Ethernet MAC 1 didn t wake system...

Страница 87: ...l Interrupt 5 Wake System Up Status 0 External Interrupt 5 didn t wake system up 1 External Interrupt 5 waked system up 4 EINT4 External Interrupt 4 Wake System Up Status 0 External Interrupt 4 didn t...

Страница 88: ...le 0 SDIO controller reset disabled 1 SDIO controller reset enabled 23 CRYPTO Cryptographic Accelerator Reset Enable 0 Cryptographic Accelerator reset disabled 1 Cryptographic Accelerator reset enable...

Страница 89: ...Controller Reset Enable 0 LCD controller reset disabled 1 LCD controller reset enabled 8 I2S I2 S Controller Reset Enable 0 I2 S controller reset disabled 1 I2 S controller reset enabled 7 4 Reserved...

Страница 90: ...IMER2 TIMER1 TIMER0 7 6 5 4 3 2 1 0 ETIMER3 ETIMER2 ETIMER1 ETIMER0 GPIO Reserved Bits Description 31 27 Reserved Reserved 26 UART10 UART 10 Reset Enable 0 UART 10 reset disabled 1 UART 10 reset enabl...

Страница 91: ...4 reset disabled 1 TIMER 4 reset enabled 11 TIMER3 TIMER 3 Reset Enable 0 TIMER 3 reset disabled 1 TIMER 3 reset enabled 10 TIMER2 TIMER 2 Reset Enable 0 TIMER 2 reset disabled 1 TIMER 2 reset enabled...

Страница 92: ...Technical Reference Manual Publication Release Date Dec 15 2015 92 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 3 GPIO GPIO Reset Enable 0 GPIO reset disabled 1 GPIO reset enabled 2 0 Reserved Re...

Страница 93: ...1 SMC0 Reserved CAN1 CAN0 7 6 5 4 3 2 1 0 Reserved SPI1 SPI0 Reserved I2C1 I2C0 Bits Description 31 28 Reserved Reserved 27 PWM PWM Reset Enable 0 PWM reset disabled 1 PWM reset enabled 26 MTPC MTP Co...

Страница 94: ...0 CAN 0 Reset Enable 0 CAN 0 reset disabled 1 CAN 0 reset enabled 7 6 Reserved Reserved 5 SPI1 SPI 1 Reset Enable 0 SPI 1 reset disabled 1 SPI 1 reset enabled 4 SPI0 SPI 0 Reset Enable 0 SPI 0 reset d...

Страница 95: ...he chip 5 WDTRSTS Chip Reset by Watchdog Timer Status 0 No reset from watchdog timer 1 Watchdog timer had issued reset signal to reset the chip 4 CPURSTS CPU Reset by CPU_LVL AHBIPRST 1 or CPU_PLS AHB...

Страница 96: ..._GPA5 MFP_GPA4 15 14 13 12 11 10 9 8 MFP_GPA3 MFP_GPA2 7 6 5 4 3 2 1 0 MFP_GPA1 MFP_GPA0 Bits Description 31 28 MFP_GPA7 Pin PA 7 Multi Function Selection 0000 PA 7 0010 LCD_DATA7 0100 KPI_ROW3 Others...

Страница 97: ...NUC970 TECHNICAL REFERENCE MANUAL 11 8 MFP_GPA2 Pin PA 2 Multi Function Selection 0000 PA 2 0010 LCD_DATA2 Others PA 2 7 4 MFP_GPA1 Pin PA 1 Multi Function Selection 0000 PA 1 0010 LCD_DATA1 Others P...

Страница 98: ...18 17 16 MFP_GPA13 MFP_GPA12 15 14 13 12 11 10 9 8 MFP_GPA11 MFP_GPA10 7 6 5 4 3 2 1 0 MFP_GPA9 MFP_GPA8 Bits Description 31 28 MFP_GPA15 Pin PA 15 Multi Function Selection 0000 PA 15 0010 LCD_DATA15...

Страница 99: ...Selection 0000 PA 11 0010 LCD_DATA11 0100 KPI_COL3 Others PA 11 11 8 MFP_GPA10 Pin PA 10 Multi Function Selection 0000 PA 10 0010 LCD_DATA10 0100 KPI_COL2 Others PA 10 7 4 MFP_GPA9 Pin PA 9 Multi Func...

Страница 100: ...9 18 17 16 MFP_GPB5 MFP_GPB4 15 14 13 12 11 10 9 8 MFP_GPB3 MFP_GPB2 7 6 5 4 3 2 1 0 MFP_GPB1 MFP_GPB0 Bits Description 31 28 MFP_GPB7 Pin PB 7 Multi Function Selection 0000 PB 7 1011 SPI0_CLK Others...

Страница 101: ...PB 2 Multi Function Selection 0000 PB 2 1001 UR6_TXD 1101 PWM0 1111 ETMR0_TGL Others PB 2 7 4 MFP_GPB1 Pin PB 1 Multi Function Selection 0000 PB 1 0101 NAND_RDY1 1001 UR5_RXD 1011 SPI1_SS1 1101 ETMR1_...

Страница 102: ...20 19 18 17 16 MFP_GPB13 MFP_GPB12 15 14 13 12 11 10 9 8 MFP_GPB11 MFP_GPB10 7 6 5 4 3 2 1 0 MFP_GPB9 MFP_GPB8 Bits Description 31 28 MFP_GPB15 Pin PB 15 Multi Function Selection 0000 PB 15 1001 UR10_...

Страница 103: ...0000 PB 11 1001 UR10_RXD 1011 SPI0_DATA3 1100 CAN0_TX Others PB 11 11 8 MFP_GPB10 Pin PB 10 Multi Function Selection 0000 PB 10 1001 UR10_TXD 1011 SPI0_DATA2 1100 CAN0_RX Others PB 10 7 4 MFP_GPB9 Pin...

Страница 104: ...23 22 21 20 19 18 17 16 MFP_GPC5 MFP_GPC4 15 14 13 12 11 10 9 8 MFP_GPC3 MFP_GPC2 7 6 5 4 3 2 1 0 MFP_GPC1 MFP_GPC0 Bits Description 31 28 MFP_GPC7 Pin PC 7 Multi Function Selection 0000 PC 7 0101 NAN...

Страница 105: ...lection 0000 PC 3 0101 NAND_DATA3 0110 eMMC_DATA3 Others PC 3 11 8 MFP_GPC2 Pin PC 2 Multi Function Selection 0000 PC 2 0101 NAND_DATA2 0110 eMMC_DATA2 Others PC 2 7 4 MFP_GPC1 Pin PC 1 Multi Function...

Страница 106: ...GPC13 MFP_GPC12 15 14 13 12 11 10 9 8 MFP_GPC11 MFP_GPC10 7 6 5 4 3 2 1 0 MFP_GPC9 MFP_GPC8 Bits Description 31 28 Reserved Reserved 27 24 MFP_GPC14 Pin PC 14 Multi Function Selection 0000 PC 14 0101...

Страница 107: ...Pin PC 10 Multi Function Selection 0000 PC 10 0101 NAND_CLE 1001 UR4_TXD 1101 ETMR2_TGL Others PC 10 7 4 MFP_GPC9 Pin PC 9 Multi Function Selection 0000 PC 9 0101 NAND_ALE 1001 UR10_CTS 1101 ETMR1_CAP...

Страница 108: ...MFP_GPD4 15 14 13 12 11 10 9 8 MFP_GPD3 MFP_GPD2 7 6 5 4 3 2 1 0 MFP_GPD1 MFP_GPD0 Bits Description 31 28 MFP_GPD7 Pin PD 7 Multi Function Selection 0000 PD 7 Others PD 7 27 24 MFP_GPD6 Pin PD 6 Mult...

Страница 109: ...n Release Date Dec 15 2015 109 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 7 4 MFP_GPD1 Pin PD 1 Multi Function Selection 0000 PD 1 0110 SD0_CLK Others PD 1 3 0 MFP_GPD0 Pin PD 0 Multi Function S...

Страница 110: ...27 26 25 24 MFP_GPD15 MFP_GPD14 23 22 21 20 19 18 17 16 MFP_GPD13 MFP_GPD12 15 14 13 12 11 10 9 8 MFP_GPD11 MFP_GPD10 7 6 5 4 3 2 1 0 MFP_GPD9 MFP_GPD8 Bits Description 31 28 MFP_GPD15 Pin PD 15 Multi...

Страница 111: ...S4 Others PD 12 15 12 MFP_GPD11 Pin PD 11 Multi Function Selection 0000 PD 11 0010 LCD_DATA19 1001 UR9_TXD 1110 EBI_nCS3 Others PD 11 11 8 MFP_GPD10 Pin PD 10 Multi Function Selection 0000 PD 10 0010...

Страница 112: ...MFP_GPE5 MFP_GPE4 15 14 13 12 11 10 9 8 MFP_GPE3 MFP_GPE2 7 6 5 4 3 2 1 0 MFP_GPE1 MFP_GPE0 Bits Description 31 28 MFP_GPE7 Pin PE 7 Multi Function Selection 0000 PE 7 0001 RMII1_REFCLK 0110 SD1_DATA3...

Страница 113: ...nction Selection 0000 PE 3 0001 RMII1_MDIO 0110 SD1_CLK 1001 UR1_RXD Others PE 3 11 8 MFP_GPE2 Pin PE 2 Multi Function Selection 0000 PE 2 0001 RMII1_MDC 0110 SD1_CMD 1001 UR1_TXD Others PE 2 7 4 MFP_...

Страница 114: ...MFP_GPE12 15 14 13 12 11 10 9 8 MFP_GPE11 MFP_GPE10 7 6 5 4 3 2 1 0 MFP_GPE9 MFP_GPE8 Bits Description 31 28 MFP_GPE15 Pin PE 15 Multi Function Selection 0000 PE 15 0111 USBH_PPWR1 Others PE 15 27 24...

Страница 115: ...MFP_GPE10 Pin PE 10 Multi Function Selection 0000 PE 10 0001 RMII1_CRSDV 1001 UR8_TXD Others PE 10 7 4 MFP_GPE9 Pin PE 9 Multi Function Selection 0000 PE 9 0001 RMII1_RXDATA1 0110 SD1_nPWR 1001 UR1_n...

Страница 116: ...12 11 10 9 8 MFP_GPF3 MFP_GPF2 7 6 5 4 3 2 1 0 MFP_GPF1 MFP_GPF0 Bits Description 31 28 MFP_GPF7 Pin PF 7 Multi Function Selection 0000 PF 7 0001 RMII0_RXDATA1 Others PF 7 27 24 MFP_GPF6 Pin PF 6 Mult...

Страница 117: ...Release Date Dec 15 2015 117 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 7 4 MFP_GPF1 Pin PF 1 Multi Function Selection 0000 PF 1 0001 RMII0_MDIO Others PF 1 3 0 MFP_GPF0 Pin PF 0 Multi Function...

Страница 118: ...14 23 22 21 20 19 18 17 16 MFP_GPF13 MFP_GPF12 15 14 13 12 11 10 9 8 MFP_GPF11 MFP_GPF10 7 6 5 4 3 2 1 0 MFP_GPF9 MFP_GPF8 Bits Description 31 28 MFP_GPF15 Pin PF 15 Multi Function Selection 0000 PF 1...

Страница 119: ...Multi Function Selection 0000 PF 11 1001 UR2_TXD 1101 ETMR2_TGL 1111 EINT0 Others PF 11 11 8 MFP_GPF10 Pin PF 10 Multi Function Selection 0000 PF 10 0111 USBH_PPWR Others PF 10 7 4 MFP_GPF9 Pin PF 9...

Страница 120: ...P_GPG5 MFP_GPG4 15 14 13 12 11 10 9 8 MFP_GPG3 MFP_GPG2 7 6 5 4 3 2 1 0 MFP_GPG1 MFP_GPG0 Bits Description 31 28 MFP_GPG7 Pin PG 7 Multi Function Selection 0000 PG 7 0010 LCD_HSYNC Others PG 7 27 24 M...

Страница 121: ...30 NUC970 TECHNICAL REFERENCE MANUAL 11 8 MFP_GPG2 Pin PG 2 Multi Function Selection 0000 PG 2 1000 I2C1_SCL Others PG 2 7 4 MFP_GPG1 Pin PG 1 Multi Function Selection 0000 PG 1 1000 I2C0_SDA Others P...

Страница 122: ...1 20 19 18 17 16 MFP_GPG13 MFP_GPG12 15 14 13 12 11 10 9 8 MFP_GPG11 MFP_GPG10 7 6 5 4 3 2 1 0 MFP_GPG9 MFP_GPG8 Bits Description 31 28 MFP_GPG15 Pin PG 15 Multi Function Selection 0000 PG 15 1111 EIN...

Страница 123: ...Function Selection 0000 PG 11 1000 I2S_DATAO 1001 UR6_TXD 1010 SMC0_CLK Others PG 11 11 8 MFP_GPG10 Pin PG 10 Multi Function Selection 0000 PG 10 1000 I2S_SYSCLK 1010 SMC0_RST Others PG 10 7 4 MFP_GP...

Страница 124: ...MFP_GPH7 MFP_GPH6 23 22 21 20 19 18 17 16 MFP_GPH5 MFP_GPH4 15 14 13 12 11 10 9 8 MFP_GPH3 MFP_GPH2 7 6 5 4 3 2 1 0 MFP_GPH1 MFP_GPH0 Bits Description 31 28 MFP_GPH7 Pin PH 7 Multi Function Selection...

Страница 125: ...4 15 12 MFP_GPH3 Pin PH 3 Multi Function Selection 0000 PH 3 1000 I2C1_SDA 1001 UR9_RXD 1100 CAN0_TX 1101 PWM3 1111 EINT3 Others PH 3 11 8 MFP_GPH2 Pin PH 2 Multi Function Selection 0000 PH 2 1000 I2C...

Страница 126: ...FP_GPH14 23 22 21 20 19 18 17 16 MFP_GPH13 MFP_GPH12 15 14 13 12 11 10 9 8 MFP_GPH11 MFP_GPH10 7 6 5 4 3 2 1 0 MFP_GPH9 MFP_GPH8 Bits Description 31 28 MFP_GPH15 Pin PH 15 Multi Function Selection 000...

Страница 127: ...11 Multi Function Selection 0000 PH 11 0100 KPI_COL3 0110 SD1_DATA3 1001 UR4_CTS 1110 EBI_ADDR7 Others PH 11 11 8 MFP_GPH10 Pin PH 10 Multi Function Selection 0000 PH 10 0100 KPI_COL2 0110 SD1_DATA2 1...

Страница 128: ...25 24 MFP_GPI7 MFP_GPI6 23 22 21 20 19 18 17 16 MFP_GPI5 MFP_GPI4 15 14 13 12 11 10 9 8 MFP_GPI3 MFP_GPI2 7 6 5 4 3 2 1 0 MFP_GPI1 MFP_GPI0 Bits Description 31 28 MFP_GPI7 Pin PI 7 Multi Function Sele...

Страница 129: ...P_PCLK 0101 NAND_CLE 1000 I2C1_SDA 1100 CAN0_TX 1110 EBI_DATA4 Others PI 4 15 12 MFP_GPI3 Pin PI 3 Multi Function Selection 0000 PI 3 0011 VCAP_CLKO 0101 NAND_ALE 1000 I2C1_SCL 1100 CAN0_RX 1101 RTC_T...

Страница 130: ...ster 0x0000_0000 31 30 29 28 27 26 25 24 MFP_GPI15 MFP_GPI14 23 22 21 20 19 18 17 16 MFP_GPI13 MFP_GPI12 15 14 13 12 11 10 9 8 MFP_GPI11 MFP_GPI10 7 6 5 4 3 2 1 0 MFP_GPI9 MFP_GPI8 Bits Description 31...

Страница 131: ...SD1_nCD 0101 NAND_DATA4 1001 UR8_TXD 1010 SMC0_CLK 1110 EBI_DATA12 Others PI 12 15 12 MFP_GPI11 Pin PI 11 Multi Function Selection 0000 PI 11 0011 VCAP_DATA3 0101 NAND_DATA3 1010 SMC0_RST 1110 EBI_DA...

Страница 132: ...15 2015 132 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 3 0 MFP_GPI8 Pin PI 8 Multi Function Selection 0000 PI 8 0011 VCAP_DATA0 0100 SD1_DATA1 0101 NAND_DATA0 0110 eMMC_DATA0 1001 UR1_CTS 1010 S...

Страница 133: ...ved MFP_GPJ4 15 14 13 12 11 10 9 8 MFP_GPJ3 MFP_GPJ2 7 6 5 4 3 2 1 0 MFP_GPJ1 MFP_GPJ0 Bits Description 31 20 Reserved Reserved 19 16 MFP_GPJ4 Pin PJ 4 Multi Function Selection 0000 PJ 4 1111 JTAG_nTR...

Страница 134: ...DATA_DS ADDR_DS CTRL_DS CLK_DS Bits Description 31 8 Reserved Reserved 7 6 DATA_DS DDR Data I O Driving Strength Selection This bit controls the driving strength for DDR I O used as data 00 Reserved...

Страница 135: ...se Date Dec 15 2015 135 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 1 0 CLK_DS DDR Clock I O Driving Strength Selection This bit controls the driving strength for DDR I O used as clock 00 Reserve...

Страница 136: ...ite protection Bits When powered on the Power On Reset POR circuit generates a reset signal to reset whole chip function However after power is ready the POR circuit would consume a few power To minim...

Страница 137: ...ction is disabled user can check the protection disable bit at address 0xB000_01FC bit0 1 is protection disable and 0 is protection enable Then user can update the target protected register value and...

Страница 138: ...nored 1 Write protection Disabled for writing protected registers The protected registers are SYS_PDID Product Identifier Register address 0xB000_0000 SYS_MISCFCR Miscellaneous Function Control Regist...

Страница 139: ...omes from the PLL or from the external crystal input directly For each clock there is a bit on the CLKEN register to control the clock ON or OFF individually and the divider setting is in the CLK_DIVC...

Страница 140: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 140 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 3 3 Block diagram Clock Controller Top View 5 3 3 1...

Страница 141: ...W_DIV UART7_SW_DIV UART8_SW_DIV UART9_SW_DIV UART10_SW_DIV USB_SW_DIV ECLKWDT ECLKTIMER0 ECLKTIMER1 ECLKTIMER2 ECLKTIMER3 ECLKTIMER4 GPIO_SW_DIV ECLKWWDT ECLKGPIO KPI_SW_DIV ECLKKPI SYS_SW_DIV SYS_CLK...

Страница 142: ...ivider 5 3 3 3 APLLFout eMMC_SDIV CLK_DIVCTL3 2 0 eMMC_N CLK_DIVCTL3 15 8 eMMC_SrcCLK eMMC_CLK eMMC CLK_HCLKEN 22 ACLKOut UCLKout CLK_SW4 4 to 1 MUX CLK_DIVn eMMC_N 1 UPLLFout eMMC_S CLK_DIVCTL3 4 3 X...

Страница 143: ...rcCLK ECLKGPIO GPIO CLK_PCLKEN0 3 CLK_SW2 2 to 1 MUX CLK_DIVn GPIO_N 1 X32_IN 32 768 kHz GPIO_S CLK_DIVCTL7 7 GPIO_N CLK_DIVCTL7 6 0 Note Before clock switching both the pre selected and newly selecte...

Страница 144: ...CD_SrcCLK ECLKLCD LCD CLK_HCLKEN 25 ACLKOut UCLKout CLK_SW4 4 to 1 MUX CLK_DIVn LCD_N 1 UPLLFout LCD_S CLK_DIVCTL1 4 3 XT1_IN CLK_DIVn LCD_SDIV 1 CLK_DIVn LCD_SDIV 1 Note Before clock switching both t...

Страница 145: ...rd Host Controller Clock Divider 5 3 3 12 XT1_IN 12 MHz ECLKSMCx SMCx CLK_PCLKEN1 x 12 CLK_DIVn SMCx_N 1 SMCx_N CLK_DIVCTL6 x 4 27 x 4 24 x 0 1 Note Before clock switching both the pre selected and ne...

Страница 146: ...gure 5 3 14 UART Clock Divider Block Diagram USB 1 1 Host 48 MHz Clock Divider 5 3 3 15 USBPHY0_480M USB11_SrcCLK USB_CLK 48MZ USBH CLK_HCLKEN 18 CLK_SW2 2 to 1 MUX CLK_DIVn 10 USBPHY1_480M USBID SYS_...

Страница 147: ...imer Clock Divider 5 3 3 17 WWDT_SrcCLK ECLKWWDT WWDT CLK_PCLKEN0 1 CLK_SW4 4 to 1 MUX WWDT_S CLK_DIVCTL8 11 10 XT1_IN 12 MHz X32_IN 32 768 kHz XT1_IN 128 PCLK 4096 Note Before clock switching both th...

Страница 148: ...CLK_PCLKEN0 16 PCLKUART0 UART1 CLK_PCLKEN0 17 PCLKUART1 PCLKUART2 UART3 CLK_PCLKEN0 19 PCLKUART3 UART2 CLK_PCLKEN0 18 UART4 CLK_PCLKEN0 20 PCLKUART4 UART5 CLK_PCLKEN0 21 PCLKUART5 PCLKUART6 UART7 CLK...

Страница 149: ...processor into a low power state until either an interrupt IRQ or FIQ or a debug request occurs In this mode the clocks of all functionalities are on The clock frequency of DRAM AHB peripherals and AP...

Страница 150: ...3 4 5 To extremely reduce the power consumption user could put the chip inot Deep Power down mode without SRAM retention by turning off power supply to all power pin except RTC_VDD In this mode only R...

Страница 151: ...TL1 CLK_BA 0x024 R W Clock Divider Control Register 1 0x0000_0000 CLK_DIVCTL2 CLK_BA 0x028 R W Clock Divider Control Register 2 0x0000_0000 CLK_DIVCTL3 CLK_BA 0x02C R W Clock Divider Control Register...

Страница 152: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 152 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 3 6 Register description...

Страница 153: ...d 23 22 21 20 19 18 17 16 PRESCALE 15 14 13 12 11 10 9 8 PRESCALE 7 6 5 4 3 2 1 0 Reserved SEN_OFF_ST Reserved XIN_CTL XTAL_EN Bits Description 31 24 Reserved Reserved 23 8 PRESCALE Pre scalar Counter...

Страница 154: ...Controller Clock Enable 0 SD card controller clock disabled 1 SD card controller clock enabled 29 JPEG JPEG Codec Clock Enable 0 JPEG codec clock disabled 1 JPEG codec clock enabled 28 GE2D 2D Graphi...

Страница 155: ...Host Controller Clock Enable 0 USB host controller clock disabled 1 USB host controller clock enabled 17 EMAC1 Ethernet MAC Controller 1 Clock Enable 0 Ethernet MAC controller 1 clock disabled 1 Ether...

Страница 156: ...ernal AHB 4 Bus Clock Enable 0 Internal AHB 4 bus clock disabled 1 Internal AHB 4 bus clock enabled 3 HCLK3 Internal AHB 3 Bus Clock Enable 0 Internal AHB 3 bus clock disabled 1 Internal AHB 3 bus clo...

Страница 157: ...TIMER3 TIMER2 TIMER1 TIMER0 7 6 5 4 3 2 1 0 ETIMER3 ETIMER2 ETIMER1 ETIMER0 GPIO RTC WWDT WDT Bits Description 31 27 Reserved Reserved 26 UART10 UART 10 Clock Enable 0 UART 10 clock disabled 1 UART 10...

Страница 158: ...R3 Timer 3 Clock Enable 0 Timer 3 clock disabled 1 Timer 3 clock enabled 10 TIMER2 Timer 2 Clock Enable 0 Timer 2 clock disabled 1 Timer 2 clock enabled 9 TIMER1 Timer 1 Clock Enable 0 Timer 1 clock d...

Страница 159: ...roller Clock Enable 0 GPIO controller clock disabled 1 GPIO controller clock enabled 2 RTC RTC Clock Enable 0 RTC clock disabled 1 RTC clock enabled 1 WWDT Windowed Watch dog Clock Enable 0 Windowed W...

Страница 160: ...served 27 PWM PWM Clock Enable 0 PWM clock disabled 1 PWM clock enabled 26 MTPC MTP Controller Clock Enable 0 MTP controller clock disabled 1 MTP controller clock enabled 25 KPI Keypad Controller Cloc...

Страница 161: ...SPI Interface 1 Clock Enable 0 SPI Interface 1 clock disabled 1 SPI Interface 1 clock enabled 4 SPI0 SPI Interface 0 Clock Enable 0 SPI Interface 0 clock disabled 1 SPI Interface 0 clock enabled 3 2 R...

Страница 162: ...ber is PCLK_N 1 So PCLK HCLK1 PCLK_N 1 23 20 HCLK234_N AHB234 Clock Divider This field defines the clock divide number for clock divider to generate the HCLK for AHB2 AHB3 AHB4 bus and controllers in...

Страница 163: ...cCLK is from XIN 01 Reserved 10 SYSTEM_SrcCLK is from ACLKOut 11 SYSTEM_SrcCLK is from UCLKOut 2 0 SYSTEM_SDIV System Source Clock Divider This field defines the source clock divide number for clock d...

Страница 164: ...23 21 Reserved Reserved 20 19 I2S_S I2 S Controller Clock Source Selection This field selects which clock is used to be the source of engine clock for I2 S controller 00 I2S_SrcCLK is from XIN 01 Rese...

Страница 165: ...ontroller 00 LCD_SrcCLK is from XIN 01 Reserved 10 LCD_SrcCLK is from ACLKOut 11 LCD_SrcCLK is from UCLKOut 2 0 LCD_SDIV LCD Engine Source Clock Divider This field defines the source clock divide numb...

Страница 166: ...mber for clock divider to generate the engine clock for GE2D codec The actual clock divide number is GE2D_N 1 So ECLKge2d HCLK3 GE2D_N 1 27 12 Reserved Reserved 11 8 USB_N USB 1 1 Host Controller Engi...

Страница 167: ...vide number is JPG_N 1 So ECLKjpg HCLK3 JPG_N 1 27 24 SENSOR_N Sensor Clock Divider This field defines the clock divide number for clock divider to generate the sensor clock The actual clock divide nu...

Страница 168: ...C_S eMMC Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for eMMC controller 00 eMMC_SrcCLK XIN 01 eMMC_SrcCLK Reserved 10 eMMC_SrcCLK ACLKOut 11...

Страница 169: ...N 1 So ECLKuart3 UART3_SrcCLK UART3_N 1 28 27 UART3_S UART3 Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for UART3 controller 00 UART3_SrcCLK i...

Страница 170: ..._N 1 So ECLKuart1 UART1_SrcCLK UART1_N 1 12 11 UART1_S UART1 Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for UART1 controller 00 UART1_SrcCLK...

Страница 171: ...ne Source Clock Divider This field defines the source clock divide number for clock divider of APLL and UPLL output This field only takes effect while the UART0_S CLK_DIVCTL4 4 3 is 2 b10 APLL or 2 b1...

Страница 172: ...N 1 So ECLKuart7 UART7_SrcCLK UART7_N 1 28 27 UART7_S UART7 Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for UART7 controller 00 UART7_SrcCLK i...

Страница 173: ..._N 1 So ECLKuart5 UART5_SrcCLK UART5_N 1 12 11 UART5_S UART5 Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for UART5 controller 00 UART5_SrcCLK...

Страница 174: ...Engine Source Clock Divider This field defines the source clock divide number for clock divider of APLL and UPLL output This field only takes effect while the UART4_S CLK_DIVCTL5 4 3 is 2 b10 APLL or...

Страница 175: ...clock for Smart card controller The actual clock divide number is SMC1_N 1 So ECLKsmc1 XIN12M SMC1_N 1 27 24 SMC0_N Smart Card 0 Engine Clock Divider This field defines the clock divide number for cl...

Страница 176: ...V UART9 Engine Source Clock Divider This field defines the source clock divide number for clock divider of APLL and UPLL output This field only takes effect while the UART9_S CLK_DIVCTL6 12 11 is 2 b1...

Страница 177: ...ber is ADC_N 1 So ADC_CLK ADC_SrcCLK ADC_N 1 23 21 Reserved Reserved 20 19 ADC_S ADC Engine Clock Source Selection This field selects which clock is used to be the source of engine clock for ADC contr...

Страница 178: ...I controller The actual clock divide number is KPI_N 1 So ECLKkpi KPI_SrcCLK KPI_N 1 7 GPIO_S GPIO Engine Clock Source Selection This field selects which clock is used to be the source of engine clock...

Страница 179: ...lection This field selects which clock is used to be the source of engine clock for Enhanced Timer 3 controller 00 ETIMER3_SrcCLK XIN 01 ETIMER3_SrcCLK PCLK 10 ETIMER3_SrcCLK PCLK 4096 11 ETIMER3_SrcC...

Страница 180: ...tion This field selects which clock is used to be the source of engine clock for WWDT controller 00 WWDT_SrcCLK XIN 01 WWDT_SrcCLK XIN 128 10 WWDT_SrcCLK PCLK 4096 11 WWDT_SrcCLK 32 768 kHz 9 8 WDT_S...

Страница 181: ...21 Reserved Reserved 20 19 CKO_S Reference Clock Out Source Selection This field selects which clock is used to be the source of reference clock output 00 CKO_SrcCLK is from XIN 01 Reserved 10 CKO_Src...

Страница 182: ...troller 00 SDH_SrcCLK is from XIN 01 Reserved 10 SDH_SrcCLK is from ACLKOut 11 SDH_SrcCLK is from UCLKOut 2 0 SDH_SDIV SD Host Engine Source Clock Divider This field defines the source clock divide nu...

Страница 183: ...ble Flag 0 PLL is not stable 1 PLL is stable 500us after PLL setting changed 30 RESETN Reset Mode Enable 0 PLL is in reset mode 1 PLL is in normal operation mode Default 29 BYPASS Bypass Mode Enable 0...

Страница 184: ...M from 1 to 64 The M IN_DV 5 0 1 6 0 FB_DV PLL VCO Output Clock Feedback Divider Integer Part Set the feedback divider factor N from 1 to 128 The N FB_DV 6 0 1 The formula to calculate the PLL output...

Страница 185: ...l Register CLK_PLLSTBCNTR Register Offset R W Description Reset Value CLK_PLLSTBC NTR CLK_BA 0x080 R W PLL Stable Counter and Test Clock Control Register 0x0000_1800 31 30 29 28 27 26 25 24 Reserved 2...

Страница 186: ...t priority and the priority level 7 is the lowest In order to make this scheme work properly a certain priority level must be specified to each interrupt source during power on initialization otherwis...

Страница 187: ...rrupt vector table to select the appropriate interrupt service routine vector Priority Controller 5 4 4 2 An 8 level priority encoder controls the NIRQ line Each interrupt source belongs to priority g...

Страница 188: ...FIQ can be enabled or disabled individually by using the command registers AIC_MECR and AIC_MDCR The status of interrupt mask can be read from the read only register AIC_IMR A disabled interrupt doesn...

Страница 189: ...debug system must not write to the AIC_IPER as this would cause undesirable effects The following table shows the main steps of an interrupt and the order in which they are performed according to the...

Страница 190: ...T Positive Level EMC 0 RX Interrupt 20 EMC1_RX_INT Positive Level EMC 1 RX Interrupt 21 EMC0_TX_INT Positive Level EMC 0 TX Interrupt 22 EMC1_TX_INT Positive Level EMC 1 TX Interrupt 23 EHCI_INT Posit...

Страница 191: ...r 0 Interrupt 48 ETMR1_INT Positive Level Enhanced Timer 1 Interrupt 49 ETMR2_INT Positive Level Enhanced Timer 2 Interrupt 50 ETMR3_INT Positive Level Enhanced Timer 3 Interrupt 51 SPI0_INT Positive...

Страница 192: ...0x030 R W AIC Source Control Register 13 0x4747_4747 AIC_SCR14 AIC_BA 0x034 R W AIC Source Control Register 14 0x4747_4747 AIC_SCR15 AIC_BA 0x038 R W AIC Source Control Register 15 0x4747_4747 AIC_SC...

Страница 193: ...Register High Undefined AIC_SSCR AIC_BA 0x140 W AIC Source Set Command Register Undefined AIC_SSCRH AIC_BA 0x144 W AIC Source Set Command Register High Undefined AIC_SCCR AIC_BA 0x148 W AIC Source Cle...

Страница 194: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 194 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 4 6 Register Description...

Страница 195: ...7 AIC_SCR10 AIC_BA 0x024 R W AIC Source Control Register 10 0x4747_4747 AIC_SCR11 AIC_BA 0x028 R W AIC Source Control Register 11 0x4747_4747 AIC_SCR12 AIC_BA 0x02C R W AIC Source Control Register 12...

Страница 196: ...riority Level 0 7 The level 0 indicates the highest priority and the level 7 indicates the lowest priority An interrupt is treated as a FIQ for the priority level 0 and is treated as an IRQ for other...

Страница 197: ...S28 IRS27 IRS26 IRS25 IRS24 23 22 21 20 19 18 17 16 IRS23 IRS22 IRS21 IRS20 IRS19 IRS18 IRS17 IRS16 15 14 13 12 11 10 9 8 IRS15 IRS14 IRS13 IRS12 IRS11 IRS10 IRS9 IRS8 7 6 5 4 3 2 1 0 IRS7 IRS6 IRS5 I...

Страница 198: ...R60 ISR59 ISR58 ISR57 IRS56 23 22 21 20 19 18 17 16 IRS55 IRS54 IRS53 IRS52 IRS51 IRS50 IRS49 IRS48 15 14 13 12 11 10 9 8 IRS47 IRS46 IRS45 IRS44 IRS43 IRS42 IRS41 IRS40 7 6 5 4 3 2 1 0 IRS39 IRS38 IR...

Страница 199: ...ffset R W Description Reset Value AIC_IASR AIC_BA 0x108 R AIC Interrupt Active Status Register 0x0000_0000 31 30 29 28 27 26 25 24 IAS31 IAS30 IAS29 IAS28 IAS27 IAS26 IAS25 IAS24 23 22 21 20 19 18 17...

Страница 200: ...ription Reset Value AIC_IASRH AIC_BA 0x10C R AIC Interrupt Active Status Register High 0x0000_0000 31 30 29 28 27 26 25 24 Reserved IAS61 IAS60 IAS59 IAS58 IAS57 IAS56 23 22 21 20 19 18 17 16 IAS55 IA...

Страница 201: ...29 28 27 26 25 24 IS31 IS30 IS29 IS28 IS27 IS26 IS25 IS24 23 22 21 20 19 18 17 16 IS23 IS22 IS21 IS20 IS19 IS18 IS17 IS16 15 14 13 12 11 10 9 8 IS15 IS14 IS13 IS12 IS11 IS10 IS9 IS8 7 6 5 4 3 2 1 0 IS...

Страница 202: ...26 25 24 Reserved IS61 IS60 IS59 IS58 IS57 IS56 23 22 21 20 19 18 17 16 IS55 IS54 IS53 IS52 IS51 IS50 IS49 IS48 15 14 13 12 11 10 9 8 IS47 IS46 IS45 IS44 IS43 IS42 IS41 IS40 7 6 5 4 3 2 1 0 IS39 IS38...

Страница 203: ...C_ISNR thereafter by the AIC This register was restored a value 0 after it was read by the interrupt handler This register can help indexing into a branch table to quickly jump to the corresponding in...

Страница 204: ...pt channel number that is active enabled and has the highest priority Register Offset R W Description Reset Value AIC_ISNR AIC_BA 0x120 R AIC Interrupt Source Number Register 0x0000_0000 31 30 29 28 2...

Страница 205: ...RQ and FIQ are equal to 0 it means there is no interrupt occurred Register Offset R W Description Reset Value AIC_OISR AIC_BA 0x124 R AIC Output Interrupt Status Register 0x0000_0000 31 30 29 28 27 26...

Страница 206: ...IM16 15 14 13 12 11 10 9 8 IM15 IM14 IM13 IM12 IM11 IM10 IM9 IM8 7 6 5 4 3 2 1 0 IM7 IM6 IM5 IM4 IM3 IM2 IM1 Reserved Bits Description 31 1 IM x Interrupt Mask This bit determines whether the corresp...

Страница 207: ...14 13 12 11 10 9 8 IM47 IM46 IM45 IM44 IM43 IM42 IM41 IM40 7 6 5 4 3 2 1 0 IM39 IM38 IM37 IM36 IM35 IM34 IM33 IM32 Bits Description 31 30 Reserved Reserved 29 0 IM x Interrupt Mask This bit determines...

Страница 208: ...x130 W AIC Mask Enable Command Register Undefined 31 30 29 28 27 26 25 24 MEC31 MEC30 MEC29 MEC28 MEC27 MEC26 MEC25 MEC24 23 22 21 20 19 18 17 16 MEC23 MEC22 MEC21 MEC20 MEC19 MEC18 MEC17 MEC16 15 14...

Страница 209: ...sk Enable Command Register High Undefined 31 30 29 28 27 26 25 24 Reserved MEC61 MEC60 MEC59 MEC58 MEC57 MEC56 23 22 21 20 19 18 17 16 MEC55 MEC54 MEC53 MEC52 MEC51 MEC50 MEC49 MEC48 15 14 13 12 11 10...

Страница 210: ...138 W AIC Mask Disable Command Register Undefined 31 30 29 28 27 26 25 24 MDC31 MDC30 MDC29 MDC28 MDC27 MDC26 MDC25 MDC24 23 22 21 20 19 18 17 16 MDC23 MDC22 MDC21 MDC20 MDC19 MDC18 MDC17 MDC16 15 14...

Страница 211: ...k Disable Command Register High Undefined 31 30 29 28 27 26 25 24 Reserved MDC61 MDC60 MDC59 MDC58 MDC57 MDC56 23 22 21 20 19 18 17 16 MDC55 MDC54 MDC53 MDC52 MDC51 MDC50 MDC49 MDC48 15 14 13 12 11 10...

Страница 212: ...ardware verification or software debugging Register Offset R W Description Reset Value AIC_SSCR AIC_BA 0x140 W AIC Source Set Command Register Undefined 31 30 29 28 27 26 25 24 SSC31 SSC30 SSC29 SSC28...

Страница 213: ...cation or software debugging Register Offset R W Description Reset Value AIC_SSCRH AIC_BA 0x144 W AIC Source Set Command Register High Undefined 31 30 29 28 27 26 25 24 Reserved SSC61 SSC60 SSC59 SSC5...

Страница 214: ...ardware verification or software debugging Register Offset R W Description Reset Value AIC_SCCR AIC_BA 0x148 W AIC Source Clear Command Register Undefined 31 30 29 28 27 26 25 24 SCC31 SCC30 SCC29 SCC...

Страница 215: ...ication or software debugging Register Offset R W Description Reset Value AIC_SCCRH AIC_BA 0x14C W AIC Source Clear Command Register High Undefined 31 30 29 28 27 26 25 24 Reserved SCC61 SCC60 SCC59 S...

Страница 216: ...to this register to indicate the end of its interrupt service Register Offset R W Description Reset Value AIC_EOSCR AIC_BA 0x150 W AIC End of Service Command Register Undefined 31 30 29 28 27 26 25 2...

Страница 217: ...r The maximum EAHB access number is 16 The SDRAM controller also builds a BIST module to test the external memory device An internal arbiter is used to schedule the access from the masters and the BIS...

Страница 218: ...s AHB 3 Bus BIST SDRAM _BIST Scheduler ReqSchedule Queue 0 Queue 1 SDRAM Type SdramType Refresh Counter PWR_REF Bank Control BankCtl SDRAM FSM SdramFSM Skew Control CLK_MUX SDRAM FSM SdramFSM I O PAD...

Страница 219: ...control the SDRAM to enter self refresh mode to reduce the power consumption in power down mode The SDIC provides the fixed sequential burst type and burst length is 4 In addition SDIC implements som...

Страница 220: ...ply a MRS Mode Register Set command to MR Mode Register with A8 high to set DDR SDRAM in normal operation with resetting the DLL This is accomplished by writing appropriate value with bit 8 high to th...

Страница 221: ...d completed 12 Apply two or more AUTOREFRESH commands This is accomplished by writing 1 to REF_CMD SDIC_CMD 3 twice or more The REF_CMD is auto cleared after SDRAM controller completes each CAS BEFORE...

Страница 222: ...10 9 8 7 6 5 4 3 2 1 For DDR2 SDRAM Type R X C R C BA2 BA1 BA0 A12 A11 A10 A09 A08 A07 A06 A05 A04 A03 A02 A01 A00 128M 8Mx16 12x9 R 11 10 23 12 13 22 21 20 19 18 17 16 15 14 C AP 9 8 7 6 5 4 3 2 1 25...

Страница 223: ...0 Size Register 0x0000_000X SDIC_SIZE1 SDIC_BA 0x014 R W SDRAM 1 Size Register 0x1000_0000 SDIC_MR SDIC_BA 0x018 R W SDRAM Mode Register 0x0000_0032 SDIC_EMR SDIC_BA 0x01C R W SDRAM Extended Mode Reg...

Страница 224: ...e more turn around cycle is inserted between memory read and write access 19 OEDelay Output Enable Delay Half MCLK This bit control the data output enable signal If set high the data output enable wil...

Страница 225: ...memory request is stop Otherwise the SDRAM is in IDLE state CKE high 0 Disable auto power down mode 1 Enable auto power down mode Default 15 11 Reserved Reserved 10 8 RDBUFTH The AHB Read SDRAM Read B...

Страница 226: ...be enabled the SDRAM controller will pre charge bank after each burst read or write cycle This could make the SDRAM consume less power If set this bit high the state machine will keep on the bank act...

Страница 227: ...cur Default 4 SELF_REF Self refresh Command Set this bit high the SDRAM controller will make SDRAM to enter self refresh mode SDRAM controller will not have response to any read write or refresh reque...

Страница 228: ...the initialize state SDRAM controller will not accept any SDRAM read or write request The logical state of the internal circuit of the SDRAM is undefined after power on The SDRAM must be initialized...

Страница 229: ...e SDRAM controller would never issue auto refresh command to SDRAM automatically However if refresh period counter is enabled the SDRAM controller will issue auto refresh command to SDRAM automaticall...

Страница 230: ...the SDRAM could be mapped to address 0x0000_0000 0x1fff_ffff of system memory and shadow address on 0x8000_0000 0x9fff_ffff of system memory The minimum supported SDRAM size is 2M bytes Based on the a...

Страница 231: ...e SDRAM type is DDR DDR2 the default size is 16MB 8Mx16 Otherwise the default size is 2MB 1Mx16 Note In register SDIC_SIZE1 this field is reserved 2 0 SIZE of SDRAM Byte 0 0 0 SDRAM disable 0 0 1 2M 0...

Страница 232: ...Register Offset R W Description Reset Value SDIC_MR SDIC_BA 0x018 R W SDRAM Mode Register 0x0000_0032 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved...

Страница 233: ...d Reserved Reserved Reserved 0 0 1 Reserved Reserved Reserved Reserved 0 1 0 2 2 2 Reserved 0 1 1 3 3 Reserved 3 1 0 0 4 Reserved Reserved 4 1 0 1 Reserved Reserved Reserved 5 Inhibit 1 1 0 Reserved 2...

Страница 234: ...rnal SDRAM device SDRAM controller only supports the burst length 4 Setting burst length to be other value is inhibited Burst Length SDR DDR DDR2 0 0 0 1 Inhibit Reserved Reserved 0 0 1 2 Inhibit 2 In...

Страница 235: ...e Register 0x0000_4000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved Configure 7 6 5 4 3 2 1 0 Configure DrvStrength DLLEN Bits Description 31 14 Res...

Страница 236: ...command to the SDRAM This Extended Mode Register is only used for DDR2 SDRAM Register Offset R W Description Reset Value SDIC_EMR2 SDIC_BA 0x020 R W SDRAM Extended Mode Register 2 0x0000_8000 31 30 29...

Страница 237: ...s only used for DDR2 SDRAM Register Offset R W Description Reset Value SDIC_EMR3 SDIC_BA 0x024 R W SDRAM Extended Mode Register 3 0x0000_C000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 R...

Страница 238: ...Internal Write to Read Command Delay This timing defines the minimum delay latency from last write data to next new valid READ command and only takes effect while SDRAM type is DDR or DDR2 tWTR tHCLK...

Страница 239: ...mand tRAS tHCLK tRAS 1 HCLK It s the operating clock of SDRAM controller 7 5 tRCD Active to READ or WRITE Delay This timing defines the minimum delay latency from a ACTIVE command to READ or WRITE com...

Страница 240: ...r DQS1 generation Register Offset R W Description Reset Value SDIC_DQSODS SDIC_BA 0x030 R W DQS Output Delay Selection Register 0x0000_1010 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Res...

Страница 241: ...lay value This delay value is controlled by the following equation DQS1 delay DQS1_ODS 11 8 DelayCLKMUX DelayCLKMUX It s the gate delay of a CLKMUX gate 7 5 Reserved Reserved 4 0 DQS0_ODS DQS0 Output...

Страница 242: ...6 Decoder 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 DQS_ODS 3 0 DQS_ODS 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 3 2 1 0 5 bit Comparator DQS_ODS DQS_OSD_is_16 DQS_ODS_is_0 XOR DRAM_C...

Страница 243: ...elay value is controlled by the following equation DQS11_CLKIn delay DQS1_DS1 DelayCLKMUX DelayCLKMUX It s the gate delay of a CLKMUX gate 19 16 DQS1_DS0 DQS1 Input Delay Selection 0 This field contro...

Страница 244: ...al DataCLK If SDRAM type is DDR or DDR2 the DataCLK is used to sample the data registered by DQS11_CLKIn DQS10_CLKIn DQS01_CLKIn DQS00_CLKIn Or the DataCLK is used to sample the data outputted by SDRA...

Страница 245: ...18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 DALATDLY Resrved DALATDS Bits Description 31 8 Reserved Reserved 7 DALATDLY Data Latch Delay 1 MCLK Enable 0 Data latch delay 1 MCLK Di...

Страница 246: ...PROM in this chip and it can be programmed 15 times User can program 256 bit key and 8 bit user defined fields each time The 256 bit key is program only and only can be used by IP Security Engine User...

Страница 247: ...al Publication Release Date Dec 15 2015 247 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 6 3 Block Diagram MTP Control Logics APB_BIU_REGS APB BUS MTP Macro Cryptographic Accelerator Figure 5 6...

Страница 248: ...ATA PENABLE DFT_mode MTP APB interface signals MISC interface signals MTP macro interface signals MTP_PDOB MTP_PA MPT_PTM MTP_PDIN MTP_PWE MTP_PPROG POR MTP_PRD 256 bits MTP KEY output MTP_KEY Figure...

Страница 249: ...249 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 6 5 Functional Description MTP provide the software control MTP macro and provide Key to the Cryptographic Accelerator User can follow the recom...

Страница 250: ...not 0 Program MTP Enable MTP refer to the Enable MTP flow Write 0x2 to MTP_CTL Write 0x60AE to MTP_PCYCLE if PCLK 75Mhz MTP_PCYCLE 24750 Write the 256 bits key to MTP_KEY0 MTP_KEY7 Write 8 bits user...

Страница 251: ...000_0000 MTP_KEY2 MTP_BA 0x018 W MTP KEY Value 2 Register 0x0000_0000 MTP_KEY3 MTP_BA 0x01c W MTP KEY Value 3 Register 0x0000_0000 MTP_KEY4 MTP_BA 0x020 W MTP KEY Value 4 Register 0x0000_0000 MTP_KEY5...

Страница 252: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 252 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 6 8 Register Description...

Страница 253: ...Register Offset R W Description Reset Value MTP_KEYEN MTP_BA 0x000 R W MTP Key Enable Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Rese...

Страница 254: ...MTP_USERDATA MTP_BA 0x00c R W MTP User Defined Data Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 UDAT Bits Des...

Страница 255: ...EY Value 1 Register 0x0000_0000 MTP_KEY2 MTP_BA 0x018 W MTP KEY Value 2 Register 0x0000_0000 MTP_KEY3 MTP_BA 0x01c W MTP KEY Value 3 Register 0x0000_0000 MTP_KEY4 MTP_BA 0x020 W MTP KEY Value 4 Regist...

Страница 256: ...0x030 R W MTP Program Cycle Control Register 0x0000_60AE 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 PCYCLE 7 6 5 4 3 2 1 0 PCYCLE Bits Description 31 16 Re...

Страница 257: ...r Offset R W Description Reset Value MTP_CTL MTP_BA 0x034 R W MTP Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4...

Страница 258: ...ription Reset Value MTP_PSTART MTP_BA 0x038 R W MTP Program Start Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0...

Страница 259: ...ed 24 BUSY MTP Busy Status 0 MTP engine is idle 1 MTP engine is busy 19 16 PRGCNT MTP Program Counts This register show the program times of MTP after read MTP Maximum program count is 15 15 5 Reserve...

Страница 260: ...L 7 1 REGLCTL 0 REGPRTDIS Bits Description 31 8 Reserved Reserved 7 0 REGLCTL Register Write protection Code Write Only Some registers have write protection function Writing these registers have to di...

Страница 261: ...s bus It supports 8 bit and 16 bit external data bus width for each bank 5 7 2 Features Support SRAM and external I O devices Support 8 16 bit data bus width Support 80 and 68 mode interface signals S...

Страница 262: ...w how to configure related pins as the EBI function To enable EBI s clock for operation please set EBI CLK_HCLKEN 9 high 5 7 5 Functional Description EBI Memory Space 5 7 5 1 In this chip two system m...

Страница 263: ...BA 0x000 R W EBI Control Register 0x0001_0001 EBI_BNKCTL0 EBI_BA 0x018 R W External Bus Bank 0 Control Register 0x0000_0000 EBI_BNKCTL1 EBI_BA 0x01C R W External Bus Bank 1 Control Register 0x0000_000...

Страница 264: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 264 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 7 7 Register Description...

Страница 265: ...d WAITVT LITTLE Bits Description 31 29 Reserved Reserved 28 EXBE4 External Bus Bank 4 Byte Enable This bit and M68E4 EBI_CTL 23 defines how the pins EBI_nBE1 EBI_nBE0 and EBI_nWE are used when externa...

Страница 266: ...sed when external bus bank 2 accessed Please refer to the table shown below for detail information EXBE2 M68E2 Description 0 0 80 type interface Pin EBI_nBE1 and EBI_nBE0 used as byte write strobe sig...

Страница 267: ...how the pins EBI_nBE1 EBI_nBE0 and EBI_nWE are used when external bus bank 3 accessed Please refer to the description of EXBE3 EBI_CTL 27 for detail information 21 M68E2 External Bus Bank 2 M68 Mode E...

Страница 268: ...0000 EBI_BNKCTL 4 EBI_BA 0x028 R W External Bus Bank 4 Control Register 0x0000_0000 31 30 29 28 27 26 25 24 BASADDR 23 22 21 20 19 18 17 16 BASADDR SIZE 15 14 13 12 11 10 9 8 ADRS tACC tCOH 7 6 5 4 3...

Страница 269: ...MCLK 010 Chip Selection Hold On Time on nOE or nWBE is 2 MCLK 011 Chip Selection Hold On Time on nOE or nWBE is 3 MCLK 100 Chip Selection Hold On Time on nOE or nWBE is 4 MCLK 101 Chip Selection Hold...

Страница 270: ...Reference Manual Publication Release Date Dec 15 2015 270 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 1 0 DBWD Programmable Data Bus Width for External I O Bank 0 4 00 Disable bus 01 8 bit 10 16...

Страница 271: ...hnical Reference Manual Publication Release Date Dec 15 2015 271 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Figure 5 7 2 External I O Write operation timing Figure 5 7 3 External I O Read operat...

Страница 272: ...y user to meet various system configurations and design requirements After reset all 148 I O pins are configured in General Purpose I O Input mode When any of the 148 I O pins used as a General Purpos...

Страница 273: ...register SYS_GPA_MFPL SYS_GPA_MFPH SYS_GPB_MFPL SYS_GPB_MFPH SYS_GPC_MFPL SYS_GPC_MFPH SYS_GPD_MFPL SYS_GPD_MFPH SYS_GPE_MFPL SYS_GPE_MFPH SYS_GPF_MFPL SYS_GPF_MFPH SYS_GPG_MFPL SYS_GPG_MFPH SYS_GPH_...

Страница 274: ...rt A Interrupt Mode Register 0x0000_0000 GPIOA_IREN GPIO_BA 0x010 R W GPIO Port A Interrupt Rising Edge or Level High Enable Register 0x0000_0000 GPIOA_IFEN GPIO_BA 0x014 R W GPIO Port A Interrupt Fal...

Страница 275: ...0 GPIOC_ICEN GPIO_BA 0x0A8 R W GPIO Port C CMOS Input Enable Register 0x0000_EFFF GPIOC_ISEN GPIO_BA 0x0AC R W GPIO Port C Schmitt Trigger Input Enable Register 0x0000_0000 GPIOD_DIR GPIO_BA 0x0C0 R W...

Страница 276: ...Port F Interrupt Falling Edge or Level Low Enable Register 0x0000_0000 GPIOF_ISR GPIO_BA 0x158 R W GPIO Port F Interrupt Status Register 0x0000_0000 GPIOF_DBEN GPIO_BA 0x15C R W GPIO Port F De bounce...

Страница 277: ...Control Register 0x0000_0000 GPIOI_DATAOUT GPIO_BA 0x204 R W GPIO Port I Data Output Register 0x0000_0000 GPIOI_DATAIN GPIO_BA 0x208 R GPIO Port I Data Input Register 0x0000_xxxx GPIOI_IMD GPIO_BA 0x2...

Страница 278: ...00 GPIOJ_PUEN GPIO_BA 0x260 R W GPIO Port J Pull Up Enable Register 0x0000_0000 GPIOJ_PDEN GPIO_BA 0x264 R W GPIO Port J Pull Down Enable Register 0x0000_0000 GPIOJ_ICEN GPIO_BA 0x268 R W GPIO Port J...

Страница 279: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 279 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 8 7 Register Description...

Страница 280: ..._0000 GPIOF_DIR GPIO_BA 0x140 R W GPIO Port F Direction Control Register 0x0000_0000 GPIOG_DIR GPIO_BA 0x180 R W GPIO Port G Direction Control Register 0x0000_0000 GPIOH_DIR GPIO_BA 0x1C0 R W GPIO Por...

Страница 281: ...BA 0x144 R W GPIO Port F Data Output Register 0x0000_0000 GPIOG_DATAOUT GPIO_BA 0x184 R W GPIO Port G Data Output Register 0x0000_0000 GPIOH_DATAOUT GPIO_BA 0x1C4 R W GPIO Port H Data Output Register...

Страница 282: ...ata Input Register 0x0000_xxxx GPIOI_DATAIN GPIO_BA 0x208 R GPIO Port I Data Input Register 0x0000_xxxx GPIOJ_DATAIN GPIO_BA 0x248 R GPIO Port J Data Input Register 0x0000_00xx 31 30 29 28 27 26 25 24...

Страница 283: ...W GPIO Port F Interrupt Mode Register 0x0000_0000 GPIOG_IMD GPIO_BA 0x18C R W GPIO Port G Interrupt Mode Register 0x0000_0000 GPIOH_IMD GPIO_BA 0x1CC R W GPIO Port H Interrupt Mode Register 0x0000_000...

Страница 284: ...Level High Enable Register 0x0000_0000 GPIOE_IREN GPIO_BA 0x110 R W GPIO Port E Interrupt Rising Edge or Level High Enable Register 0x0000_0000 GPIOF_IREN GPIO_BA 0x150 R W GPIO Port F Interrupt Risi...

Страница 285: ...ng edge or level high detection of a General Purpose I O When this bit is high and corresponding bit of GPIOx_IMD is low rising edge detection enabled When this bit is high and corresponding bit of GP...

Страница 286: ...r Level Low Enable Register 0x0000_0000 GPIOE_IFEN GPIO_BA 0x114 R W GPIO Port E Interrupt Falling Edge or Level Low Enable Register 0x0000_0000 GPIOF_IFEN GPIO_BA 0x154 R W GPIO Port F Interrupt Fall...

Страница 287: ...ing edge or level low detection of a General Purpose I O When this bit is high and corresponding bit of GPIOx_IMD is low falling edge detection enabled When this bit is high and corresponding bit of G...

Страница 288: ...0x158 R W GPIO Port F Interrupt Status Register 0x0000_0000 GPIOG_ISR GPIO_BA 0x198 R W GPIO Port G Interrupt Status Register 0x0000_0000 GPIOH_ISR GPIO_BA 0x1D8 R W GPIO Port H Interrupt Status Regis...

Страница 289: ...F_DBEN GPIO_BA 0x15C R W GPIO Port F De bounce Enable Register 0x0000_0000 GPIOG_DBEN GPIO_BA 0x19C R W GPIO Port G De bounce Enable Register 0x0000_0000 GPIOH_DBEN GPIO_BA 0x1DC R W GPIO Port H De bo...

Страница 290: ...Register 0x0000_0000 GPIOG_PUEN GPIO_BA 0x1A0 R W GPIO Port G Pull Up Enable Register 0x0000_0000 GPIOH_PUEN GPIO_BA 0x1E0 R W GPIO Port H Pull Up Enable Register 0x0000_0000 GPIOI_PUEN GPIO_BA 0x220...

Страница 291: ...Register 0x0000_0000 GPIOG_PDEN GPIO_BA 0x1A4 R W GPIO Port G Pull Down Enable Register 0x0000_0000 GPIOH_PDEN GPIO_BA 0x1E4 R W GPIO Port H Pull Down Enable Register 0x0000_0000 GPIOI_PDEN GPIO_BA 0x...

Страница 292: ...ble Register 0x0000_FFFF GPIOG_ICEN GPIO_BA 0x1A8 R W GPIO Port G CMOS Input Enable Register 0x0000_FFFF GPIOH_ICEN GPIO_BA 0x1E8 R W GPIO Port H CMOS Input Enable Register 0x0000_FFFF GPIOI_ICEN GPIO...

Страница 293: ...mitt Trigger Input Enable Register 0x0000_0000 GPIOE_ISEN GPIO_BA 0x12C R W GPIO Port E Schmitt Trigger Input Enable Register 0x0000_0000 GPIOF_ISEN GPIO_BA 0x16C R W GPIO Port F Schmitt Trigger Input...

Страница 294: ...This fields controls the Schmitt trigger input buffer enable of the pin that can be configured as a General Purpose I O This control bit always takes effect no matter the pin configured as a General...

Страница 295: ...Reserved Reserved 5 ICLK_ON Interrupt Clock on Mode This bit controls the interrupt detection clock enable of the pin that can be configured as a General Purpose I O When this bit is high interrupt d...

Страница 296: ...upt input once per 16 clocks 0101 Sample interrupt input once per 32 clocks 0110 Sample interrupt input once per 64 clocks 0111 Sample interrupt input once per 128 clocks 1000 Sample interrupt input o...

Страница 297: ...terrupt Status This bit indicates if the GPIO interrupt triggered by pin of GPIO port J 0 GPIO port J did not trigger GPIO interrupt 1 GPIO port J trigger GPIO interrupt 8 GPIOIINT GPIO Port I Interru...

Страница 298: ...Status This bit indicates if the GPIO interrupt triggered by pin of GPIO port D 0 GPIO port D did not trigger GPIO interrupt 1 GPIO port D trigger GPIO interrupt 2 GPIOCINT GPIO Port C Interrupt Statu...

Страница 299: ...n stopped The CPU can recognize the completion of a GDMA operation by software polling or when it receives an internal GDMA interrupt The GDMA controller can increment source or destination address de...

Страница 300: ...ngle operation The GDMA transfer is completed when the current transfer count register reaches zero Descriptor Mode 5 9 5 4 The descriptor fetch function works when RUN GDMA_DADRx 3 is set and NON_DSP...

Страница 301: ...xt Descriptor Address 0 Source Address 0 Destination Address 0 Command Information 0 Next Descriptor Address 1 Source Address 1 Destination Address 1 Command Information 1 Next Descriptor Address 2 So...

Страница 302: ...ription The Allocation of Command Information in Descriptor List 4 GDMA will depend on the information to request a bus ownership and start the data transfer when GDMA has gotten a bus grant from the...

Страница 303: ...Fetch Function 5 9 5 9 The non descriptor fetch function will take place when current GDMA_DADRx NON_DSPTRMODE is set and the GDMA_DADRx register will have no any intention for the GDMA controller The...

Страница 304: ...nel 1 Source Base Address Register 0x0000_0000 GDMA_DSTBA1 GDMA_BA 0x028 R W Channel 1 Destination Base Address Register 0x0000_0000 GDMA_TCNT1 GDMA_BA 0x02C R W Channel 1 Transfer Count Register 0x00...

Страница 305: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 305 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 9 7 Register Description...

Страница 306: ...BNDERR DABNDERR and GDMAERR can be read at descriptor fetch mode Regardless of GDMA operate in descriptor mode or non descriptor mode when transfer width is 16 bit half word and the address with decre...

Страница 307: ...ter bits just can be read only 20 Reserved Reserved 19 AUTOIEN Auto Initialization Enable 0 Disables auto initialization 1 Enables auto initialization the GDMA_CSRC0 1 GDMA_CDST0 1 and GDMA_CTCNT0 1 r...

Страница 308: ...data were transferred from multiple sources to a single destination 5 DADIR Source Address Direction 0 Source address is incremented successively 1 Source address is decremented successively 4 DADIR D...

Страница 309: ...the bus during the period of transfer 16 SOFTREQ Software Triggered GDMA Request Software can request the GDMA transfer service by setting this bit to 1 This bit is automatically cleared by hardware...

Страница 310: ...ination address is decremented successively 3 2 GDMAMS GDMA Mode Select 00 Software mode Memory to Memory 01 Reserved 10 Reserved 11 Reserved 1 BME Burst Mode Enable 0 Disables the 8 data burst mode 1...

Страница 311: ...GDMA_SRCBA0 GDMA_BA 0x004 R W Channel 0 Source Base Address Register 0x0000_0000 GDMA_SRCBA1 GDMA_BA 0x024 R W Channel 1 Source Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BADDR 23 22 21...

Страница 312: ...00_0000 GDMA_DSTBA1 GDMA_BA 0x028 R W Channel 1 Destination Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BADDR 23 22 21 20 19 18 17 16 BADDR 15 14 13 12 11 10 9 8 BADDR 7 6 5 4 3 2 1 0 BA...

Страница 313: ...DMA_BA 0x02C R W Channel 1 Transfer Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 COUNT 15 14 13 12 11 10 9 8 COUNT 7 6 5 4 3 2 1 0 COUNT Bits Description 31 24 R...

Страница 314: ...ource Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CADDR 23 22 21 20 19 18 17 16 CADDR 15 14 13 12 11 10 9 8 CADDR 7 6 5 4 3 2 1 0 CADDR Bits Description 31 0 CADDR Current Source Address The...

Страница 315: ...Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CADDR 23 22 21 20 19 18 17 16 CADDR 15 14 13 12 11 10 9 8 CADDR 7 6 5 4 3 2 1 0 CADDR Bits Description 31 0 CADDR Current Destination Address The...

Страница 316: ...nnel 0 Current Transfer Count Register 0x0000_0000 GDMA_CTCNT1 GDMA_BA 0x038 R Channel 1 Current Transfer Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 CCNT 15 14...

Страница 317: ...escriptor interrupt is determined by bit 10 of the GDMA_CTLx Register 0 Stops the channel 1 Starts the channel Note must co operate to NON_DSPTRMODE to start the channel with Descriptor fetch function...

Страница 318: ...rom the current GDMA_DADRx Descriptor Address register GDMA_DADRx ORDEN is relevant only for descriptor fetch function GDMA_DADRx NON_DSPTRMODE 0 0 Disable descriptor ordering Fetch the next descripto...

Страница 319: ...0x08C R GDMA Internal Buffer Word 3 Register 0x0000_0000 GDMA_BUFFER4 GDMA_BA 0x090 R GDMA Internal Buffer Word 4 Register 0x0000_0000 GDMA_BUFFER5 GDMA_BA 0x094 R GDMA Internal Buffer Word 5 Register...

Страница 320: ...Buffer Read Select 00 Read Internal Buffer for Channel 0 01 Read Internal Buffer for Channel 1 10 RESERVED 11 RESERVED 15 12 Reserved Reserved 11 TERR1F Channel 1 Transfer Error O No error occurs 1 H...

Страница 321: ...c 1 TC0 is the GDMA interrupt flag TC0 or GDMATERR0 will generate interrupt 7 4 Reserved Reserved 3 TEER1EN Channel 1 Interrupt Enable for Transfer Error 0 Disable Interrupt 1 Enable Interrupt 2 TC1EN...

Страница 322: ...programmable counting period The timer can generate an interrupt signal upon timeout or provide the current value of count during operation 5 10 2 Features Independent Clock Source for each Timer cha...

Страница 323: ...to enable clock of each Timer 5 10 5 Functional Description Timer controller provides One shot Periodic and Continuous operation modes Each operating function mode is shown as follows One Shot Mode 5...

Страница 324: ...nterrupt flag TIF TMRx_ISR 0 is cleared by software once the timer counter value TDR TMRx_DR 23 0 reaches timer compare register TCMP TMRx_CMPR 23 0 value again TIF TMRx_ISR 0 will set to 1 also That...

Страница 325: ...ister 1 0x0000_0005 TMR1_CMPR TMR1_BA 0x004 R W Timer Compare Register 1 0x0000_0000 TMR1_DR TMR1_BA 0x008 R Timer Data Register 1 0x0000_0000 TMR2_CSR TMR2_BA 0x000 R W Timer Control and Status Regis...

Страница 326: ...21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 PRESCALE Bits Description 31 Reserved Reserved 30 CE Counter Enable 0 Stops counting 1 Starts counting 29 IE Interrupt Enable...

Страница 327: ...rdware automatically 25 CACT Timer Is in Active This bit indicates the counter status of timer 0 Timer is not active 1 Timer is in active 24 8 Reserved Reserved 7 0 PRESCALE Clock Pre scale Divide Cou...

Страница 328: ...are Register 4 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 TCMP 23 16 15 14 13 12 11 10 9 8 TCMP 15 8 7 6 5 4 3 2 1 0 TCMP 7 0 Bits Description 30 24 Reserved Reserved 23 0 TC...

Страница 329: ...1_BA 0x008 R Timer Data Register 1 0x0000_0000 TMR2_DR TMR2_BA 0x008 R Timer Data Register 2 0x0000_0000 TMR3_DR TMR3_BA 0x008 R Timer Data Register 3 0x0000_0000 TMR4_DR TMR4_BA 0x008 R Timer Data Re...

Страница 330: ...0 It indicates that the timer 3 does not count up to TCMP TMR3_CMPR 23 0 value yet Software can reset this bit after the timer interrupt 3 had occurred 1 It indicates that the counter of timer 3 is i...

Страница 331: ...upt Flag 0 0 It indicates that the timer 0 does not count up to TCMP TMR0_CMPR 23 0 value yet Software can reset this bit after the timer interrupt 0 had occurred 1 It indicates that the counter of ti...

Страница 332: ...24 bit up counter is readable through TDR Timer Data Register Supports One shot Periodic Output Toggle and Continuous Counting Operation mode Supports external pin capture for interval measurement Sup...

Страница 333: ...ating function mode is shown as follows One Shot Mode 5 11 5 1 If the timer is operated in One shot mode MODE_SEL 1 0 is 00 and ETMR_EN ETMRn_CTL 0 timer counter enable bit is set to 1 the timer count...

Страница 334: ...pt enable bit is set to 1 then the interrupt signal is generated and sent to AIC to inform CPU for indicating that the timer counting overflow happens If ETMR_IE ETMRn_IER 0 timer interrupt enable bit...

Страница 335: ...om 224 1 to 0 TMRx_DR 100 TMRx_DR 200 TMRx_DR 300 TMRx_DR 400 TMRx_DR 500 TMRx_DR 224 1 TMRx_DR 200 and TMR_IS 1 Clear TMR_IS as 0 and Set TMRx_CMPR 500 TMRx_DR 500 and TMR_IS 1 Clear TMR_IS as 0 and...

Страница 336: ...ssary and recommended 5 11 6 Register Map R read only W write only R W both read and write Register Offset R W Description Reset Value ETMR Base Address ETMR0_BA 0x4001_0000 ETMR1_BA 0x4001_0100 ETMR2...

Страница 337: ...recommended to save power consumption 21 Reserved Reserved 20 CAP_CNT_MOD Timer Capture Counting Mode Selection This bit indicates the behavior of 24 bit up counting timer while TCAP_EN is set to high...

Страница 338: ...timer to start counting while 2nd rising edge triggers 24 bit timer to stop counting 10 Falling edge on Tcapture pin triggers 24 bit timer to start counting while rising edge triggers 24 bit timer to...

Страница 339: ...n this mode the associated interrupt signal is generated periodically if ETMR_IER ETMR_IE is enabled while the value of 24 bit up counter equals the ETMRn_CMPR After that the 24 bit counter will be re...

Страница 340: ...1 Reset Timer s pre scale counter internal 24 bit up counter and ETMR_CTL ETMR_EN bit Note This bit will be auto cleared and takes at least 3 ECLKetmr clock cycles 0 ETMR_EN Timer Counter Enable Bit 0...

Страница 341: ...alue ETMRn_PRE CNT n 0 1 2 3 ETMRn_BA 0x004 R W Enhance Timer n Pre Scale Counter Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved...

Страница 342: ...Reserved 23 0 ETMR_CMP Timer Compared Value ETMR_CMP is a 24 bit compared register When the internal 24 bit up counter counts and its value is equal to ETMR_CMP value a Timer Interrupt is requested if...

Страница 343: ...4 3 2 1 0 Reserved TCAP_IE ETMR_IE Bits Description 31 2 Reserved Reserved 1 TCAP_IE Timer Capture Function Interrupt Enable 0 Timer External Pin Function Interrupt Disabled 1 Timer External Pin Funct...

Страница 344: ...detect before CPU clearing TCAP_IS status 1 New incoming capture event detected before CPU clearing TCAP_IS status 4 ETMR_WAKE_ST S Timer Wake up Status If timer causes CPU wakes up from power down m...

Страница 345: ...ister Offset R W Description Reset Value ETMRn_DR n 0 1 2 3 ETMRn_BA 0x014 R Enhance Timer n Data Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 TDR 15 14 13 12 11 10 9...

Страница 346: ...ance Timer n Capture Data Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 CAP 15 14 13 12 11 10 9 8 CAP 7 6 5 4 3 2 1 0 CAP Bits Description 31 24 Reserved Reserved 23 0...

Страница 347: ...generator is enabled two outputs of the corresponding PWM channel pair will be replaced by the output of Dead Zone generator The Dead Zone generator is used to control off chip power device To preven...

Страница 348: ...e PWM pin functions are configured in PA_H_MFP PB_L_MFP PC_H_MFP PD_H_MFP and PH_L_MFP registers The clock enable of PWM function is configured in PCLKEN1 27 5 12 5 Functional Description PWM Timer Op...

Страница 349: ...If CH0MOD PWM_CTL 3 is set to one periodic mode the controller loads CNR PWM_CNR 15 0 to PWM counter when PWM counter reaches zero If CNR PWM_CNR 15 0 is set to zero PWM counter will be halt when PWM...

Страница 350: ...ime gap called Dead Zone to delay PWM rising output and it is in order to prevent damage for the power switch devices that connected to the PWM output pins User can program Dead Zone counter to determ...

Страница 351: ..._CNR 15 0 for setting PWM period and duty length Enable PWM down counter start running Set CH0EN 1 PWM_PCR 0 The procedure mentioned above may be set up not in the order and PWM Timer can still work f...

Страница 352: ...0 0x0000_0000 PWM0_PDR PWM_BA 0x014 R PWM Data Register 0 0x0000_0000 PWM1_CNR PWM_BA 0x018 R W PWM Counter Register 1 0x0000_0000 PWM1_CMR PWM_BA 0x01C R W PWM Comparator Register 1 0x0000_0000 PWM1_...

Страница 353: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 353 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 12 7 Register Description...

Страница 354: ...Register 1 These 8 bits determine the dead zone length of channel 2 3 pair The unit time of dead zone length is received from clock selector 1 23 16 DZL01 Dead Zone Length Register 0 These 8 bits dete...

Страница 355: ...14 12 CLKSEL3 Channel 3 Clock Source Selection Select PWM clock source for PWM timer channel 3 000 Prescale output divided by 2 001 Prescale output divided by 4 010 Prescale output divided by 8 011 P...

Страница 356: ...nnel 3 Inverter Switch 0 Inverter OFF The output polarity of PWM channel 3 will be kept as usual 1 Inverter ON The output polarity of PWM channel 3 will be inverted 17 Reserved Reserved 16 CH3EN Chann...

Страница 357: ...0 Disable the Dead Zone output of PWM channel 2 3 1 Enable the Dead Zone output of PWM channel 2 3 4 DZEN01 Dead zone Generator 0 Enable Disable 0 Disable the Dead Zone output of PWM channel 0 1 1 En...

Страница 358: ...0x0000_0000 PWM2_CNR PWM_BA 0x024 R W PWM Counter Register 2 0x0000_0000 PWM3_CNR PWM_BA 0x030 R W PWM Counter Register 3 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved...

Страница 359: ...1 0x0000_0000 PWM2_CMR PWM_BA 0x028 R W PWM Comparator Register 2 0x0000_0000 PWM3_CMR PWM_BA 0x034 R W PWM Comparator Register 3 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16...

Страница 360: ...Register 0 0x0000_0000 PWM1_PDR PWM_BA 0x020 R PWM Data Register 1 0x0000_0000 PWM2_PDR PWM_BA 0x02C R PWM Data Register 2 0x0000_0000 PWM3_PDR PWM_BA 0x038 R PWM Data Register 3 0x0000_0000 31 30 29...

Страница 361: ...R1 PIER0 Bits Description 31 4 Reserved Reserved 3 PIER3 PWM Timer Channel 3 Interrupt Enable 0 Disable the PWM interrupt function of channel 3 1 Enable the PWM interrupt function of channel 3 2 PIER2...

Страница 362: ...served 3 PIIR3 PWM Timer Channel 3 Interrupt Flag This flag is set by hardware when PWM3 down counter reaches zero software can clear this bit by writing a one into this bit 2 PIIR2 PWM Timer Channel...

Страница 363: ...orts to force WDT enabled after chip powered on or reset by setting WDTON in PWRON register Supports WDT time out wake up function only if WDT clock source is selected as 32 kHz 5 13 3 Block Diagram 1...

Страница 364: ...the TOUTSEL WDTCR 10 8 settings WDT time out interrupt will occur then WDT time out interrupt flag IF WDT_CTL 3 will be set to 1 immediately WDT Reset Delay Period and Reset System 5 13 5 2 There is...

Страница 365: ...dog Reset Period TRST 00 5 3 us 01 682 us 10 87 3 ms 11 1 95 ms Table 5 13 2 Watchdog Reset Period Selection TTIS WDT reset low reset TRSTD TRST TWDT TWDT Watchdog Clock Time Period TTIS Watchdog Time...

Страница 366: ...led Notice that user should set XTAL_EN CLK_PMCON 0 to enable crystal clock source before system entries power down mode because the system peripheral clock are disabled when system is power down mode...

Страница 367: ...NICAL REFERENCE MANUAL 5 13 6 Register Map R read only W write only R W both read and write Register Offset R W Description Reset Value WDT Base Address WDT_BA 0xB800_1800 WDT_CTL WDT_BA 0x00 R W WDT...

Страница 368: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 368 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 13 7 Register Description...

Страница 369: ...edgement affects WDT counting WDT up counter will be held while CPU is held by ICE 1 ICE debug mode acknowledgement Disabled WDT up counter will keep going no matter CPU is held by ICE or not Note Thi...

Страница 370: ...p by WDT time out interrupt signal generated only if WDT clock source is selected to 32 kHz oscillator 3 IF WDT Time out Interrupt Flag This bit will set to 1 while WDT up counter value reaches the se...

Страница 371: ...ription 31 2 Reserved Reserved 1 0 RSTDSEL WDT Reset Delay Selection Write Protect When WDT time out happened user has a time named WDT Reset Delay Period to clear WDT counter by setting RSTCNT WDT_CT...

Страница 372: ...Supports 4 bit value PSCSEL to programmable maximum 11 bit prescale counter period of WWDT counter 5 14 3 Block Diagram 6 bit down counter 11 bit Prescale 6 bit compare value CMPDAT WWDT_CLK 0x3F Wri...

Страница 373: ...WWDT_CLK 32 KHz 0000 1 1 64 TWWDT 2 ms 0001 2 2 64 TWWDT 4 ms 0010 4 4 64 TWWDT 8 ms 0011 8 8 64 TWWDT 16 ms 0100 16 16 64 TWWDT 32 ms 0101 32 32 64 TWWDT 64 ms 0110 64 64 64 TWWDT 128 ms 0111 128 128...

Страница 374: ...terrupt 5 14 5 2 During down counting by the WWDT counter the WWDTIF WWDT_STATUS 0 is set to 1 while the WWDT counter value CNTDAT is equal to window compare value CMPDAT and WWDTIF can be cleared by...

Страница 375: ...o 0 and generate WWDT reset system signal to info system reset If current CNTDAT WWDT_CNT 5 0 is larger than CMPDAT WWDT_CTL 21 16 and user writes 0x00005AA5 to the WWDT_RLDCNT register the WWDT reset...

Страница 376: ...d command to actually perform reload action Notice that if user set PSCSEL WWDT_CTL 11 8 to 0000 the counter prescale value should be as 1 and the CMPDAT WWDT_CTL 21 16 must be larger than 2 Otherwise...

Страница 377: ...nly R W both read and write Register Offset R W Description Reset Value WWDT Base Address WWDT_BA 0xB800_1900 WWDT_RLDC NT WWDT_BA 0x00 W WWDT Reload Counter Register 0x0000_0000 WWDT_CTL WWDT_BA 0x04...

Страница 378: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 378 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 14 7 Register Description...

Страница 379: ...3 22 21 20 19 18 17 16 WWDT_RLDCNT 23 16 15 14 13 12 11 10 9 8 WWDT_RLDCNT 15 8 7 6 5 4 3 2 1 0 WWDT_RLDCNT 7 0 Bits Description 31 0 WWDT_RLDCNT WWDT Reload Counter Register Writing 0x00005AA5 to thi...

Страница 380: ...WDT Window Compare Register Set this register to adjust the valid reload window Note User can only write WWDT_RLDCNT register to reload WWDT counter value when current WWDT counter value between 0 and...

Страница 381: ...cale is 1536 Max time out period is 1536 64 TWWDT 1111 Pre scale is 2048 Max time out period is 2048 64 TWWDT 7 2 Reserved Reserved 1 INTEN WWDT Interrupt Enable Control Bit If this bit is enabled the...

Страница 382: ...Reserved 7 6 5 4 3 2 1 0 Reserved WWDTRF WWDTIF Bits Description 31 2 Reserved Reserved 1 WWDTRF WWDT Timer out Reset Flag This bit indicates the system has been reset by WWDT time out reset or not 0...

Страница 383: ...fset R W Description Reset Value WWDT_CNT WWDT_BA 0x0C R WWDT Counter Value Register 0x0000_003F 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5...

Страница 384: ...al to alarm time and calendar settings in RTC_TALM and RTC_CALM the ALMIF RTC_INTSTS 0 RTC Alarm Interrupt Flag is set to 1 and the RTC alarm interrupt signal is generated if the ALMIEN RTC_INTEN 0 Al...

Страница 385: ...clock for RTC control register access By setting MFP_GPH4 SYS_MFP_GPHL 19 16 and MFP_GPI3 SYS_MFP_GPIL 15 12 properly RTC will output tick signal to pin PH 4 or PI 4 Please refer to register SYS_MFP_...

Страница 386: ...5 6 Count from Sunday to Saturday Tick Time interrupt 5 15 5 7 RTC block use a counter to calibrate the tick time count value When the value in counter reaches zero RTC will issue an interrupt RTC re...

Страница 387: ...0000 RTC_INTSTS RTC_BA 0x02C R W RTC Interrupt Status Register 0x0000_0000 RTC_TICK RTC_BA 0x030 R W RTC Time Tick Register 0x0000_0000 RTC_PWRCTL RTC_BA 0x034 R W RTC Power Control Register 0x0000_70...

Страница 388: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 388 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL RTC_SPR15 RTC_BA 0x07C R W RTC Spare Register 15 0x0000_0000...

Страница 389: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 389 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 15 7 Register Description...

Страница 390: ...20 19 18 17 16 INIT 15 14 13 12 11 10 9 8 INIT 7 6 5 4 3 2 1 0 INIT INIT Active Bits Description 31 1 INIT RTC Initiation After RTC block is powered on RTC is at reset state User has to write a numbe...

Страница 391: ...18 17 16 Reserved RWENF 15 14 13 12 11 10 9 8 RWENPASSWD 7 6 5 4 3 2 1 0 RWENPASSWD Bits Description 31 17 Reserved Reserved 16 RWENF RTC Register Access Enable Flag Read Only 0 RTC register read writ...

Страница 392: ...art Integer part of detected value RTC_FREQADJ 11 8 Integer part of detected value RTC_FREQADJ 11 8 32776 1111 32768 0111 32775 1110 32767 0110 32774 1101 32766 0101 32773 1100 32765 0100 32772 1011 3...

Страница 393: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 393 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Fraction part 0 27 X 60 16 2 0x10 RTC_FREQADJ 5 0 0x10...

Страница 394: ...23 22 21 20 19 18 17 16 Reserved TENHOUR HOUR 15 14 13 12 11 10 9 8 Reserved TENMINUTE MINUTE 7 6 5 4 3 2 1 0 Reserved TENSECOND SECOND Bits Description 31 22 Reserved Reserved 21 20 TENHOUR 10 Hour...

Страница 395: ...d 23 22 21 20 19 18 17 16 TENYEAR YEAR 15 14 13 12 11 10 9 8 Reserved TENMONTH MONTH 7 6 5 4 3 2 1 0 Reserved TENDAY DAY Bits Description 31 24 Reserved Reserved 23 20 TENYEAR 10 Year Calendar Digit 0...

Страница 396: ...3 2 1 0 Reserved 24HEN Bits Description 31 1 Reserved Reserved 0 24HEN 24 hour 12 hour Mode Selection It indicate that TLR and TAR are in 24 hour mode or 12 hour mode 0 12 hour time format with am an...

Страница 397: ...ription Reset Value RTC_WEEKDAY RTC_BA 0x018 R W RTC Day of the Week Register 0x0000_0006 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1...

Страница 398: ...OUR RTC_TALM 19 16 could trigger RTC time alarm 1 TENHOUR RTC_TALM 21 20 and HOUR RTC_TALM 19 16 couldn t trigger RTC time alarm 29 MINALM_MSK Minute Alarm Mask This bit control if TENMINUTE RTC_TALM...

Страница 399: ...70 TECHNICAL REFERENCE MANUAL 11 8 MINUTE 1 Min Time Digit 0 9 7 Reserved Reserved 6 4 TENSECOND 10 Sec Time Digit 0 5 3 0 SECOND 1 Sec Time Digit 0 9 Note1 RTC_TALM is a BCD digit counter and RTC wil...

Страница 400: ...dn t trigger RTC time alarm 30 YRALM_MSK Year Alarm Mask This bit controls if TENYEAR RTC_CALM 23 20 and YEAR RTC_CALM 19 16 could trigger RTC timer alarm 0 TENYEAR RTC_CALM 23 20 and YEAR RTC_CALM 19...

Страница 401: ...day 111 Reserved 23 20 TENYEAR 10 Year Calendar Digit 0 9 19 16 YEAR 1 Year Calendar Digit 0 9 15 13 Reserved Reserved 12 TENMINUTE 10 Month Calendar Digit 0 1 11 8 MINUTE 1 Month Calendar Digit 0 9 7...

Страница 402: ...iption Reset Value RTC_LEAPYEAR RTC_BA 0x024 R RTC Leap Year Indicator Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2...

Страница 403: ...Reserved 5 KEYPRESIEN Key Press Interrupt Enable 0 Key Press interrupt disable 1 RTC Relative Alarm interrupt enable 4 RELALMIEN Relative Alarm Interrupt Enable 0 RTC Relative Alarm interrupt disable...

Страница 404: ...tes the SYS_nWAKEUP keep in low user pressed the key for 1 second when SYS_PWREN is high stage machine is in Power_On state User can write 1 to clear this bit 0 SYS_nWAKEUP pin didn t keep in low for...

Страница 405: ...m low to high 1 TICKINT RTC Time Tick Interrupt Indication REGISTER This bit indicates the RTC timer tick value configured in RTC_TICK has reached User can write 1 to clear this bit 0 RTC timer tick v...

Страница 406: ...ter 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved TTR Bits Description 2 0 TTR RTC Tick Time Interrupt Request I...

Страница 407: ...alarm condition 0 Pin SYS_PWREN be forced to low by alarm function Disabled 1 Pin SYS_PWREN be forced to low by alarm function Enabled 27 16 RELALM_TIME Relative Alarm Time This field defines the rel...

Страница 408: ...interrupt status to high 0 Alarm function Disabled 1 Alarm function Enabled 2 HW_PCLR_EN Hardware Power Clear Enable 0 H W wouldn t take any active on SYS_PWREN pin 1 H W set SYS_PWREN pin to low auto...

Страница 409: ...5 4 3 2 1 0 RELARM_CNT Bits Description 31 21 Reserved Reserved 20 16 PWR_OFF_CNT Power Off Counter Current Value This field shows the current value of power off counter This field is read only and w...

Страница 410: ...58 R W RTC Spare Register 6 0x0000_0000 RTC_SPR7 RTC_BA 0x05C R W RTC Spare Register 7 0x0000_0000 RTC_SPR8 RTC_BA 0x060 R W RTC Spare Register 8 0x0000_0000 RTC_SPR9 RTC_BA 0x064 R W RTC Spare Regist...

Страница 411: ...d All of the controllers support auto flow control function that uses two low level signals CTS clear to send and RTS request to send to control the flow of data transfer between the UART and external...

Страница 412: ...l individually Supports CTS wake up function Supports 8 bit receiver buffer time out detection function Programmable transmitting data delay time between the last stop and the next start bit by settin...

Страница 413: ...control block RX shift Register This block is the shifting the receiving data in serially control block Baud Rate Generator Divide the external clock by the divisor to get the desired baud rate clock...

Страница 414: ...diagram demonstrates the auto flow control block diagram Refer to Auto Flow Control section for detail description Figure 5 16 2 Auto Flow Control Block Diagram 5 16 4 Basic Configuration Before using...

Страница 415: ...Forced Mask Parity 1 0 1 Parity bit always logic 1 Parity bit on the serial byte is set to 1 regardless of total number of 1 s even or odd counts Forced Space Parity 1 1 1 Parity bit always logic 0 P...

Страница 416: ...2 A 62 B 8 A 46 B 11 A 34 B 15 0x2800_003E 0x2B00_002E 0x2F00_0022 A 574 0x3000_023E 19200 A 70 0x0000_0046 A 126 B 8 A 94 B 11 A 70 B 15 0x2800_007E 0x2B00_005E 0x2F00_0046 A 1150 0x3000_047E 9600 A...

Страница 417: ...cts CTSn is asserted CTSn high from external device If a valid asserted CTSn is not detected the UART controller will not send data out The auto flow function is implemented in High speed UART only Th...

Страница 418: ...decoder The IrDA SIR protocol is half duplex only So it cannot transmit and receive data at the same time The IrDA SIR physical layer specifies a minimum 10 ms transfer delay between transmission and...

Страница 419: ...late Non Return to Zero NRZ transmit bit stream output from UART The IrDA SIR physical layer specifies use of Return to Zero Inverted RZI modulation scheme which represent logic 0 as an infra light pu...

Страница 420: ...ecoder The IrDA SIR Receive Decoder demodulates the return to zero bit stream from the input detector and outputs the NRZ serial bits stream to the UART received data input The decoder input is normal...

Страница 421: ...the 9 th bit When the PBE UA_LCR 3 EPE UA_LCR 4 and SPE UA_LCR 5 are set the 9 th bit is transmitted 0 and when PBE and SPE are set and EPE is cleared the 9 th bit is transmitted 1 The Controller sup...

Страница 422: ...ed in the RX FIFO If the receiver is be enabled RX_DIS UA_FCR 8 is low all received byte data will be accepted and stored in the RX FIFO and if the receiver is disabled RX_DIS UA_FCR 8 is high all rec...

Страница 423: ...AAD mode don t fill any value to RX_DIS UA_CTL 2 bit Program Sequence example 1 Program FUN_SEL UART_FUN_SEL 1 0 to select RS 485 function 2 Program the RS485_AAD UA_ALT_CSR 9 3 When an address byte...

Страница 424: ...n control function The RS 485 driver control is implemented using the RTS control signal from an asynchronous serial port to enable the RS 485 driver The RTS line is connected to the RS 485 driver ena...

Страница 425: ...s programmed for auto address match value Determine auto direction control by programming RS 485_AUD Figure 5 16 10 RS 485 Frame Structure LIN Local Interconnection Network Mode 5 16 5 8 The UART supp...

Страница 426: ...header provided by the master task consists of a break field and sync field followed by a frame identifier frame ID The frame identifier uniquely defines the purpose of the frame The slave task appoin...

Страница 427: ...d software must handle the sequence to sending a complete header to bus by filled frame ID data to UA_THR register 3 If the header selected is break field sync field and frame ID field hardware will c...

Страница 428: ...dware LIN_IDPEN UA_LIN_CTL 9 1 software fill ID0 ID5 hardware will calculi P0 and P1 Procedure with software error monitoring in Master mode 1 Choose if the hardware transmission header field only inc...

Страница 429: ...ection and break flag is shown in the following figure Case 1 break signal not long enough ignore this break signal and LIN_BKDET_F is not set Case 2 break signal long enough break detect and LIN_BKDE...

Страница 430: ...state Case 3 break occurring while a data is being received not master sending break state Figure 5 16 13 Relationship between Break Detection and Frame Error Detection IDLE Sync 0x55 PID Data SIN RD...

Страница 431: ...er can transmitter response master is the publisher of the response and receive response master is the subscriber of the response When the master is the publisher of the response the master send respo...

Страница 432: ...stop bit NSB UA_LCR 2 1 with value one recessive in accordance with the LIN standard In LIN slave mode software may need some initial process and the initialization process flow of LIN slave mode is s...

Страница 433: ...r is received the LINS_HDET_F UA_LIN_SR 0 flag will be set If the LIN_RX_BRK_IEN UA_IER 8 1 an interrupt will be generated User can enable frame ID parity check function by setting LIN_IDPEN UA_LIN_CT...

Страница 434: ...he subscriber of the response the slave received n data bytes by other slave node the maximum of n is 8 Note When LIN data transmission is active software can monitor the LIN bus transfer state by har...

Страница 435: ...out counter If the entire header is not received within the maximum time limit of 57 bit times the header error flag LIN_HERR_F UA_LIN_SR 1 will be set The time out counter is enabled at each break d...

Страница 436: ...CTL 23 22 is break field when detect a valid LIN break delimiter the controller will enable the receiver left mute mode and the following data sync data and frame ID data will be stored in RX FIFO Whi...

Страница 437: ...n to fix the communication baud rate When operating in without automatic resynchronization mode software needs some initial process and the initialization process flow of without automatic resynchroni...

Страница 438: ...tween five falling edges is sampled on engine clock and the result of this measurement is stored in an internal 13 bit register BAUD_LIN and the result will be updated to UA_BAUD register automaticall...

Страница 439: ...elease Date Dec 15 2015 439 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Case1 UA_BAUD read write operation when LINS_DUM_EN UA_LIN_CTL 3 0 Case2 UA_BAUD read write operation when LINS_DUM_EN UA_L...

Страница 440: ...set If the difference between 15 and 14 the header error flag LINS_HERR_F UA_LIN_SR 1 may either set or not depending on the data dephasing Check2 Based on measurement of time between each falling ed...

Страница 441: ...c field measure time out with automatic resynchronization mode LIN header reception time out Interrupt 5 16 5 9 The UART Controller supports seven types of interrupts including 1 LIN function interrup...

Страница 442: ...the counting clock baud rate clock whenever the RX FIFO receives a new data word Once the content of time out counter TOUT_CNT is equal to that of time out interrupt comparator TOIC UA_TOR 7 0 a recei...

Страница 443: ...0 UARTn_BA 0x000 W UART n Transmit Holding Register Undefined UAn_IER n 0 1 2 3 4 5 6 7 8 9 10 UARTn_BA 0x004 R W UART n Interrupt Enable Register 0x0000_0000 UAn_FCR n 0 1 2 3 4 5 6 7 8 9 10 UARTn_BA...

Страница 444: ...ARTn_BA 0x028 R W UART n IrDA Control Register 0x0000_0040 UAn_ALT_CSR n 0 1 2 3 4 5 6 7 8 9 10 UARTn_BA 0x02C R W UART n Alternate Control Status Register 0x0000_000C UAn_FUN_SEL n 0 1 2 3 4 5 6 7 8...

Страница 445: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 445 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 16 7 Register Description...

Страница 446: ...ption Reset Value UAn_RBR n 0 1 2 3 4 5 6 7 8 9 10 UARTn_BA 0x000 R UART n Receive Buffer Register Undefined 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Res...

Страница 447: ...ion Reset Value UAn_THR n 0 1 2 3 4 5 6 7 8 9 10 UARTn_BA 0x000 W UART n Transmit Holding Register Undefined 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Res...

Страница 448: ...n CTS auto flow is enabled the UART will send data to external device when CTS input assert UART will not send data to device until CTS is asserted 12 AUTO_RTS_EN RTS Auto Flow Control Enable Control...

Страница 449: ...RTO_IEN RX Time out Interrupt Enable Control 0 INT_TOUT masked off 1 INT_TOUT Enabled 3 MODEM_IEN Modem Status Interrupt Enable Control 0 INT_MODEM masked off 1 INT_MODEM Enabled 2 RLS_IEN Receive Li...

Страница 450: ...14 Trigger Level Bytes 0100 30 14 High speed Normal Speed Trigger Level Bytes 0101 46 14 High speed Normal Speed Trigger Level Bytes 0110 62 14 High speed Normal Speed Trigger Level Bytes others 62 14...

Страница 451: ...2 TFR TX Field Software Reset When TFR UA_FCR 2 is set all the byte in the transmit FIFO and TX internal state machine are cleared 0 No effect 1 Reset the TX internal state machine and pointers Note...

Страница 452: ...er logic 5 SPE Stick Parity Enable Control 0 Stick parity Disabled 1 If bit 3 and 4 are logic 1 the parity bit is transmitted and checked as logic 0 If bit 3 is 1 and bit 4 is 0 then the parity bit is...

Страница 453: ...UC970 Technical Reference Manual Publication Release Date Dec 15 2015 453 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 01 6 bit character length 10 7 bit character length 11 8 bit character length...

Страница 454: ...2 3 4 5 6 7 8 9 10 UARTn_BA 0x010 R W UART n Modem Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved RTS_ST Reserved LEV_RTS...

Страница 455: ...n RTS_ST MCR 13 UART Mode LEV_RTS MCR 9 0 RS 485 Mode LEV_RTS MCR 9 0 TX Pin RTS_ST MCR 13 TX Pin RTS_ST MCR 13 RS 485 Mode LEV_RTS MCR 9 1 Start Bit D0 D1 D2 D3 D4 D5 D6 D7 Start Bit D0 D1 D2 D3 D4 D...

Страница 456: ...9 8 Reserved LEV_CTS 7 6 5 4 3 2 1 0 Reserved CTS_ST Reserved DCTSF Bits Description 31 9 Reserved Reserved 8 LEV_CTS CTS Trigger Level This bit can change the CTS trigger level 0 Low level triggered...

Страница 457: ...it is cleared automatically when TX FIFO is not empty or the last byte transmission has not completed 27 25 Reserved Reserved 24 TX_OVER_IF TX Overflow Error Interrupt Flag Read Only 0 TX FIFO is not...

Страница 458: ...bits and is reset whenever the CPU writes 1 to this bit Note This bit is read only but it can be cleared by writing 1 to it 5 FEF Framing Error Flag Read Only 0 No any frame data error in stop bit 1 T...

Страница 459: ...NUC970 TECHNICAL REFERENCE MANUAL 0 RX FIFO no overflow 1 RX FIFO overflow Note If the number of bytes of received data is greater than RX_FIFO UA_RBR size 64 16 bytes of High Speed UART Low Speed UAR...

Страница 460: ...set to 1 0 No LIN RX Break interrupt is generated 1 LIN RX Break interrupt is generated 14 Reserved Reserved 13 BUF_ERR_INT Buffer Error Interrupt Indicator Read Only This bit is set if BUF_ERR_IEN UA...

Страница 461: ...enerated Note This bit is cleared when both TX_OVER_IF UA_FSR 24 and RX_OVER_IF UA_FSR 0 are cleared 4 TOUT_IF Time out Interrupt Flag Read Only This bit is set when the RX FIFO is not empty and no ac...

Страница 462: ...Receive Data Available Interrupt Flag Read Only When the number of bytes in the RX FIFO equals the RFITL then the RDA_IF will be set If RDA_IEN UA_IER 0 is enabled the RDA interrupt will be generated...

Страница 463: ...2 1 0 TOIC Bits Description 31 16 Reserved Reserved 15 8 DLY TX Delay Time Value This field is use to programming the transfer delay time between the last stop bit and next start bit Note The counter...

Страница 464: ...d Reserved 29 DIV_X_EN Divider X Enable Control 0 Divider X Disabled the equation of M 16 1 Divider X Enabled the equation of M X 1 but DIVIDER_X UA_BAUD 27 24 must 8 Refer to the table below for more...

Страница 465: ...9 8 Reserved 7 6 5 4 3 2 1 0 TPS INV_RX INV_TX Reserved TX_SELECT Reserved Bits Description 31 7 Reserved Reserved 7 TPS TX Pulse Width 0 IrDA TX output Pulse width is equal to UART s 3 16 bit frame...

Страница 466: ...ddress Detection Enable Control This bit is use to enable RS 485 address detection mode 0 address detection mode Disabled 1 Address detection mode Enabled Note This field is used for RS 485 any operat...

Страница 467: ...eader Enabled Note When transmitter header field it may be break or break sync or break sync frame ID selected by LIN_HEAD_SEL UA_LIN_CTL 23 22 field transfer operation finished this bit will be clear...

Страница 468: ...1 2 3 4 5 6 7 8 9 10 UARTn_BA 0x030 R W UART n Function Select Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Re...

Страница 469: ...PEN UA_LIN_CTL 9 1 user fill ID0 ID5 hardware will calculi P0 and P1 otherwise user must filled frame ID and parity in this field Note1 User can fill any 8 bit value to this field and the bit 24 indic...

Страница 470: ...he BIT_ERR_F UA_LIN_SR 9 flag will be asserted 11 LIN_RX_DIS If the receiver is be enabled LIN_RX_DIS 0 all received byte data will be accepted and stored in the RX FIFO and if the receiver is disable...

Страница 471: ...ception Note1 This bit only valid in LIN slave mode LINS_EN UA_LIN_CTL 0 1 Note2 This bit is used for LIN slave automatic resynchronization mode for non automatic resynchronization mode this bit shoul...

Страница 472: ...ed Reserved 9 BIT_ERR_F Bit Error Detect Status Flag Read Only 0 The input pin SIN state is equals to the output pin SOUT state 1 The input pin SIN state not equals to the output pin SOUT state Note1...

Страница 473: ...1 LINS_HERR_F LIN Slave Header Error Flag Read Only This bit is set by hardware when a LIN header error is detected in LIN slave mode and be cleared by writing 1 to it The header include break delimi...

Страница 474: ...bit timers for Answer to Request ATR and waiting times processing Supports auto inverse convention function Supports transmitter and receiver error retry and error number limiting function Supports ha...

Страница 475: ...x_N 1 SCx_EN CLK_KEEPx SCx_CLK Clock Controller x SCx_EN CLK_KEEPx 0 PCLKEN1 12 SC0_PINCSR 6 1 PCLKEN1 13 SC1_PINCSR 6 SCx_N CLK_DIV6 27 24 CLK_DIV6 31 28 Figure 5 17 1 SC Clock Control Diagram 4 bit...

Страница 476: ...K Output UART Transmit Data Table 5 17 2 UART Pin Description 5 17 5 Functional description Basically the smart card interface acts as a half duplex asynchronous communication port and its data format...

Страница 477: ...programming procedure provides user has a simple setting for activation sequence Following is the activation control sequence generated by hardware 1 Set activation timing by setting INITSEL SC_ALTCT...

Страница 478: ...TCTL 4 to 1 and the interface will perform the warm reset sequence by hardware The SC_RST to SC_DATA reception mode T4 and SC_DATA reception mode to SC_RST assert T5 can be selected by programming INI...

Страница 479: ...PWR by programming PWRSTS SC_PINCTL 18 to 0 The deactivation sequence can be controlled in two ways The procedure is shown as follows Software Timing Control Set SC_PINCTL and SC_TMRCTL0 to process th...

Страница 480: ...t to CPU at the same time if INITIEN SC_IER 8 1 Undefined Time Comment 00 01 10 11 97 145 177 177 83 87 131 135 163 167 163 167 Unit SC Clock T9 T7 T8 T7 T8 T9 T7 T8 T9 SC_PWR SC_CLK SC_RST SC_DATA IN...

Страница 481: ...gure If the TS pattern is 1100_0000 it is inverse convention When decoded by inverse convention the conveyed byte is equal to 0x3F If the TS pattern is 1101_1100 it is direct convention When decoded b...

Страница 482: ...RTY SC_CTL 22 20 The re transmit number is up to TXRTY 1 and if the re transmit number is equal to TXRTY 1 TXOVERR flag will be set by hardware and if TERRIEN SC_INTEN 2 SC controller will generate a...

Страница 483: ...ed when counter time out The time out value will be CNT SC_TMRCTL0 23 0 SC_TMRCTL1 7 0 SC_TMRCTL2 7 0 1 Start Start counting when the first START bit reception detected bit after CNTENx SC_ALTCTL 7 5...

Страница 484: ...T SC_TMRCTL0 23 0 SC_TMRCTL1 7 0 SC_TMRCTL2 7 0 1 Start Start counting when the first START bit detected after CNTENx SC_ALTCTL 7 5 set to 1 End Stop counting after CNTENx SC_ALTCTL 7 5 set to 0 1000...

Страница 485: ...with 12000000 115200 1 5 Select the data format include data length by setting WLS SC_UARTCTL 5 4 parity format by setting OPE SC_UARTCTL 7 and PBOFF SC_UARTCTL 6 and stop bit length by setting NSB S...

Страница 486: ...r 0x0000_0000 SC_ETUCTL x 0 1 SCx_BA 0x014 R W SC ETU Control Register 0x0000_0173 SC_INTEN x 0 1 SCx_BA 0x018 R W SC Interrupt Enable Control Register 0x0000_0000 SC_INTSTS x 0 1 SCx_BA 0x01C R W SC...

Страница 487: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 487 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL...

Страница 488: ...00 R W SC Receiving Transmit Holding Buffer Register 0xXXXX_XXXX 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 DAT Bits Description 3...

Страница 489: ...When hardware detects the card detect pin SC_CD from high to low it indicates a card is detected 1 When hardware detects the card detect pin from low to high it indicates a card is detected Note Softw...

Страница 490: ...le RXRTYEN first and then fill in new retry value 15 NSB Stop Bit Length This field indicates the length of stop bit 0 The stop bit length is 2 ETU 1 The stop bit length is 1 ETU Note The default stop...

Страница 491: ...and the TS is direct convention CONSEL SC_CTL 5 4 will be set to 00 automatically otherwise if the TS is inverse convention and CONSEL SC_CTL 5 4 will be set to 11 If software enables auto convention...

Страница 492: ...eserved 16 OUTSEL Smartcard Data Pin Output Mode Selection Use this bit to select smartcard data pin SC_DATA output mode 0 Quasi mode 1 Open drain mode 15 ACTSTS2 Internal Timer2 Active State Read Onl...

Страница 493: ...counting Note1 This field is used for internal 8 bit timer when TMRSEL SC_CTL 14 13 11 Don t fill CNTEN2 when TMRSEL SC_CTL 14 13 00 or TMRSEL SC_CTL 14 13 01 or TMRSEL SC_CTL 14 13 10 Note2 If the o...

Страница 494: ...N SC_CTL 0 is not enabled this field cannot be programmed 3 ACTEN Activation Sequence Generator Enable Bit This bit enables SC controller to initiate the card by activation sequence 0 No effect 1 Acti...

Страница 495: ...30 NUC970 TECHNICAL REFERENCE MANUAL 0 TXRST TX Software Reset When TXRST is set all the bytes in the transmit buffer and TX internal state machine will be cleared 0 No effect 1 Reset the TX internal...

Страница 496: ...n Reset Value SC_EGT x 0 1 SCx_BA 0x00C R W SC Extend Guard Time Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 E...

Страница 497: ...13 12 11 10 9 8 Reserved RFTM 7 6 5 4 3 2 1 0 RFTM Bits Description 31 9 Reserved Reserved 8 0 RFTM SC Receiver FIFO Time out ETU Base The time out counter resets and starts counting whenever the RX...

Страница 498: ...Reserved ETURDIV 7 6 5 4 3 2 1 0 ETURDIV Bits Description 31 16 Reserved Reserved 15 CMPEN Compensation Mode Enable Bit This bit enables clock compensation function When this bit enabled hardware will...

Страница 499: ...tion error interrupt Enabled 9 RXTOIEN Receiver Buffer Time out Interrupt Enable Bit This field is used for receiver buffer time out interrupt enable 0 Receiver buffer time out interrupt Disabled 1 Re...

Страница 500: ...S register which includes receiver break error BEF SC_STATUS 6 frame error FEF SC_STATUS 5 parity error PEF SC_STATUS 4 receiver buffer overflow error RXOV SC_STATUS 0 transmit buffer overflow error T...

Страница 501: ...us flag Note This field is the status flag of receiver buffer time out state If software wants to clear this bit software must read all receivers buffer remaining data by reading SC_DAT buffer 8 INITI...

Страница 502: ...mit buffer overflow error TXOV SC_STATUS 8 receiver retry over limit error RXOVERR SC_STATUS 22 and transmitter retry over limit error TXOVERR SC_STATUS 30 Note This field is the status flag of BEF SC...

Страница 503: ...retry number limitation Note This bit is read only but it can be cleared by writing 1 to it 29 TXRERR Transmitter Retry Error Read Only This bit is set by hardware when transmitter re transmits Note1...

Страница 504: ...e cleared by writing 1 to it Note2 The card detect engine will start after SCEN SC_CTL 0 set 11 CREMOVE Card Detect Removal Status of SC_CD Pin Read Only This bit is set whenever card has been removal...

Страница 505: ...whenever the received character does not have a valid parity bit Note1 This bit is read only but it can be cleared by writing 1 to it Note2 If CPU sets receiver retries function by setting RXRTY_EN SC...

Страница 506: ...ing a new value to SC_PINCTL register 0 Synchronizing is completion user can write new data to SC_PINCTL register 1 Last value is synchronizing Note This bit is read only 29 19 Reserved Reserved 18 RS...

Страница 507: ...e SCDATOUT pin to low 1 Drive SCDATOUT pin to high Note When SC is at activation warm reset or deactivation mode this bit will be changed automatically So don t fill this field when SC is in these mod...

Страница 508: ...e SC_PWR pin Refer PWRINV SC_PINCTL 11 description for programming SC_PWR pin voltage level Read this field to get SC_PWR pin status 0 SC_PWR pin status is low 1 SC_PWR pin status is high Note When op...

Страница 509: ...ontrol Register 0 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OPMODE 23 22 21 20 19 18 17 16 CNT 15 14 13 12 11 10 9 8 CNT 7 6 5 4 3 2 1 0 CNT Bits Description 31 28 Reserved Reserved 27 24 OPMODE Ti...

Страница 510: ...1 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OPMODE 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 CNT Bits Description 31 28 Reserved Reserved 27 24 OPMODE Timer 1...

Страница 511: ...2 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OPMODE 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 CNT Bits Description 31 28 Reserved Reserved 27 24 OPMODE Timer 2...

Страница 512: ...or check the data word and parity bits in receiving mode Note This bit has effect only when PBOFF bit is 0 6 PBOFF Parity Bit Disable Control 0 Parity bit is generated or checked between the last data...

Страница 513: ...rence Manual Publication Release Date Dec 15 2015 513 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Bits Description 0 Note3 When UART is enabled hardware will generate a reset to reset FIFO and in...

Страница 514: ...ister Offset R W Description Reset Value SC_TMRDAT0 x 0 1 SCx_BA 0x038 R SC Timer Current Data Register 0 0x0000_07FF 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 CNT0 15 14 13 12 11 10 9...

Страница 515: ...x 0 1 SCx_BA 0x03C R SC Timer Current Data Register 1 0x0000_7F7F 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 CNT2 7 6 5 4 3 2 1 0 CNT1 Bits Description 31...

Страница 516: ...ave with byte by byte basis Each data byte is 8 bits long There is one SCL clock pulse for each data bit with the MSB being transmitted first An acknowledge bit follows each transferred byte Each bit...

Страница 517: ...y it s necessary to configure I O pins as the I2C function and enable I 2 C s clock Write 0x8 to MFP_GPG0 SYS_GPG_MFPL 3 0 and MFP_GPG1 SYS_GPG_MFPL 7 4 configures pin PG 0 and PG 1 to be I2C0_SCL and...

Страница 518: ...RT or STOP Please refer to the following figure for more detailed I 2 C BUS Timing tBUF STOP SDA SCL START tHD STA tLOW tHD DAT tHIGH tf tSU DAT Repeated START tSU STA tSU STO STOP tr Figure 5 18 2 I...

Страница 519: ...ree idle meaning no master device is engaging the bus both SCL and SDA lines are high a master can initiate a transfer by sending a START signal A START signal usually referred to as the S bit is defi...

Страница 520: ...2 A3 A4 A5 A6 slave address The first byte after the START procedure Data Transfer 5 18 5 5 When a slave receives a correct address with an R W bit the data will follow R W bit specified to transfer E...

Страница 521: ...knowledge on the I 2 C bus Data transfer on the I 2 C bus 5 18 5 6 The following figure shows a master transmits data to slave A master addresses a slave with a 7 bit address and 1 bit write index to...

Страница 522: ...er from the highest byte first For example if CSR Tx_NUM 0x3 Tx 31 24 will be transmitted first then Tx 23 16 and so on In case of a data transfer all bits will be treated as data In case of a slave a...

Страница 523: ...not visible Example 2 Read a byte of data from an I 2 C memory device using single byte transfer mode Slave address 0x4E 7 b1001110 Memory location to read from 0x20 I 2 C sequence generate start sig...

Страница 524: ...and sequence ACK Second command sequence SCL SDA R ACK Third command sequence NACK P Fourth command sequence Sr D6 D7 D5 D4 D3 D2 D1 D0 Figure 5 18 10 Read a byte of data NOTE Please note that the tim...

Страница 525: ...tion Release Date Dec 15 2015 525 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL sda_pad_i Software can read write this register at any time but the output enable scl_padoen_o and sda_padoen_o are c...

Страница 526: ...R W I2C n Control and Status Register 0x0000_0000 I2Cn_DIVIDER n 0 1 I2Cn_BA 0x004 R W I2C n Clock Prescale Register 0x0000_0000 I2Cn_CMDR n 0 1 I2Cn_BA 0x008 R W I2C n Command Register 0x0000_0000 I...

Страница 527: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 527 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 18 7 Register Description...

Страница 528: ...y Read Only 0 After STOP signal detected 1 After START signal detected 9 I2C_AL Arbitration Lost Read Only This bit is set when the I2 C core lost arbitration Arbitration is lost when A STOP signal is...

Страница 529: ...completed Transfer has not been completed but slave responded NACK in multi byte transmit mode Arbitration is lost NOTE This bit is read only but can be cleared by writing 1 to this bit 1 IE Interrupt...

Страница 530: ...erved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 DIVIDER 15 8 7 6 5 4 3 2 1 0 DIVIDER 7 0 Bits Description 15 0 DIVIDER Clock Prescale Register It is used to prescale the SCL clock line Du...

Страница 531: ...TOP READ WRITE ACK NOTE Software can write this register only when I2C_EN 1 Bits Description 31 5 Reserved Reserved 4 START Generate Start Condition Generate repeated start condition on I2 C bus 3 STO...

Страница 532: ...1 0 Reserved SDR SCR Reserved SDW SCW Bits Description 31 5 Reserved Reserved 4 SDR Serial Interface SDA Status Read Only 0 SDA is Low 1 SDA is High 3 SCR Serial Interface SCK Status Read Only 0 SCL i...

Страница 533: ...cription Reset Value I2Cn_RXR n 0 1 I2Cn_BA 0x010 R I2C n Data Receive Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2...

Страница 534: ...egister Offset R W Description Reset Value I2Cn_TXR n 0 1 I2Cn_BA 0x014 R W I2C n Data Transmit Register 0x0000_0000 31 30 29 28 27 26 25 24 Tx 23 22 21 20 19 18 17 16 Tx 15 14 13 12 11 10 9 8 Tx 7 6...

Страница 535: ...rsion on data characters received from CPU This interface can drive up to 2 external peripherals and is seen as the master 5 19 2 Features Support master mode Full duplex synchronous serial data trans...

Страница 536: ...slave device 5 19 4 Basic Configuration Before using SPI functionality it s necessary to configure I O pins as the SPI function and enable SPI s clock Write 0xB to MFP_GPB6 SYS_GPB_MFPL 27 24 MFP_GPB7...

Страница 537: ...32 bit transmit receive buffers and can provide burst mode operation The maximum bits can be transmitted received is 32 bits and can transmit receive data up to four times successive It also supports...

Страница 538: ...t is cleared slave select signals are asserted and de asserted by setting and clearing related bits in SSR register If this bit is set mw_ss_o signals are generated automatically It means that device...

Страница 539: ...is used to define the direction of the transfer data When set the DIR_2QM bit to 1 the controller will send the data to external device When the DIR_2QM bit set 0 the controller will read the data fr...

Страница 540: ...Technical Reference Manual Publication Release Date Dec 15 2015 540 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Figure 5 19 5 Dual IO Input Sequence SS SCLK mw_si_i 0 Input mw_si_i 1 Input DUALM...

Страница 541: ...cification of device for the detailed steps Write a divisor into DIVIDER to determine the frequency of serial clock Write in SSR set ASS 0 SS_LVL 0 and SSR 0 or SSR 1 to 1 to activate the device you w...

Страница 542: ...ave Select Register 0x0000_0000 SPIn_RX0 n 0 1 SPIn_BA 0x010 R SPI n Data Receive Register 0 0x0000_0000 SPIn_RX1 n 0 1 SPIn_BA 0x014 R SPI n Data Receive Register 1 0x0000_0000 SPIn_RX2 n 0 1 SPIn_BA...

Страница 543: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 543 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 19 7 Register Description...

Страница 544: ...e polarity 22 DUALM Dual I O Mode Enable Control 0 Dual I O mode Disabled 1 Dual I O mode Enabled 21 QUADM Quad I O Mode Enable Control 0 Quad I O mode Disabled 1 Quad I O mode Enabled 20 DIR_2QM Quad...

Страница 545: ...it receive will be executed in one transfer 10 Three successive transmit receive will be executed in one transfer 11 Four successive transmit receive will be executed in one transfer 7 3 Tx_BIT_LEN Tr...

Страница 546: ...ter Offset R W Description Reset Value SPIn_DIVIDER n 0 1 SPIn_BA 0x004 R W SPI n Clock Divider Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10...

Страница 547: ...unction Enabled 2 SS_LVL Slave Select Active Level 0 The slave select signal mw_ss_o is active on low level 1 The slave select signal mw_ss_o is active on high level 1 0 SSR Slave Select Register If S...

Страница 548: ...0x01C R SPI n Data Receive Register 3 0x0000_0000 31 30 29 28 27 26 25 24 Rx 23 22 21 20 19 18 17 16 Rx 15 14 13 12 11 10 9 8 Rx 7 6 5 4 3 2 1 0 Rx Bits Description 31 0 Rx Data Receive Register The D...

Страница 549: ...Description 31 0 Tx Data Transmit Register The Data Transmit Registers hold the data to be transmitted in the next transfer Valid bits depend on the transmit bit length field in the CNTRL register Fo...

Страница 550: ...n LSB of a 32 bit word The following are the property of the DMA When 16 bit precision the DMA always 8 beat incrementing burst FIFO_TH 0 or 4 beat incrementing burst FIFO_TH 1 When 24 20 18 bit preci...

Страница 551: ...agram 5 20 4 Basic Configuration Before using I 2 S functionality it s necessary to configure I O pins as the I 2 S function and enable I 2 S s clock Write 0x8 to MFP_GPG10 SYS_GPG_MFPH 11 8 MFP_GPG11...

Страница 552: ...gnals are shown as the following figure I2S Controller Master I2S_LRCK I2S_BCLK I2S_DO I2S_DI I2S_MCLK Audio Codec Slave Figure 5 20 2 I 2 S Interface Signal of Master Mode I2S Controller Slave I2S_LR...

Страница 553: ...LSB MSB word N 1 right channel word N lef channel word N 1 right channel BCLK WS DI DO MSB Justified format Figure 5 20 4 I 2 S MSB Justified Format The sampling rate bit shift clock frequency could b...

Страница 554: ...0 NUC970 TECHNICAL REFERENCE MANUAL SLOT1 BCLK FS DI DO SLOT position 0 1 2 7 8 MSB LSB 16 SLOT2 17 23 MSB LSB FS_PERIOD 1 0 SLOT1_x_START SLOT2_x_START SLOT1_O_START ACTL_PCMS1ST 25 16 1 SLOT2_O_STAR...

Страница 555: ...PDESB I2S_BA 0x014 R W I2S Play DMA Destination Base Address Register 0x0000_0000 I2S_PDES_LENGTH I2S_BA 0x018 R W I2S Play DMA Destination Length Register 0x0000_0000 I2S_PDESC I2S_BA 0x01C R I2S Pla...

Страница 556: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 556 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 20 7 Register Description...

Страница 557: ...pt Request Enable Bit 0 not allowed to generation R_FIFO_FULL_IRQ 1 allowed to generation R_FIFO_FULL_IRQ The R_FIFO_FULL_IRQ_EN bit is read write 18 R_FIFO_EMPTY_IRQ_EN Record FIFO Empty Interrupt Re...

Страница 558: ...destination end address the P_DMA_RIA_IRQ will be issued 11 When play DMA address reach each eighth of DMA play destination end address the P_DMA_RIA_IRQ will be issued The P_DMA_IRQ_SEL bits are rea...

Страница 559: ...is set to 1 The IRQ_DMA_CNTER_EN bit is read write 3 IRQ_DMA_DATA_ZERO_EN IRQ_DMA_DATA Zero and Sign Detect Enable Bit 0 not allowed to set P_DMA_IRQ I2S_CON 10 if I2S_PSR 3 is set to 1 1 allowed to s...

Страница 560: ...ot1 Slot2 Data Note this bit work at stereo dual slot mode only 1 Left channel data at I2S_RDESB I2S_PDESB address Right channel data at I2S_RDESB2 I2S_PDESB2 0 Left Right channel data place at I2S_RD...

Страница 561: ...0x0 R R R R 19 17 Reserved Reserved 16 RESET Audio Controller Reset Control Bit 0 The audio controller is normal operation 1 The whole audio controller is reset The RESET bit is read write 15 14 RECOR...

Страница 562: ...This function is supported to count playback data for software monitoring When one playback data is transferred to codec the DMA counter subtracts 1 When the I2S_COUNTER 31 0 register is Zero that set...

Страница 563: ...Reset Value I2S_RDESB I2S_BA 0x008 R W I2S Record DMA Destination Base Address Register 0x0000_0000 Bits Description 31 0 AUDIO_RDESB 32 bit Record Destination Base Address This bit field indicates th...

Страница 564: ...Value I2S_RDES_LENGTH I2S_BA 0x00C R W I2S Record DMA Destination Length Register 0x0000_0000 Bits Description 31 0 AUDIO_RDES_L 32 bit Record Destination Address Length The AUDIO_RDES_L 31 0 bits are...

Страница 565: ...set Value I2S_RDESC I2S_BA 0x010 R I2S Record DMA Destination Current Address Register 0x0000_0000 Bits Description 31 0 AUDIO_RDESC 32 bit Record Destination Current Address This bit field indicates...

Страница 566: ...n Reset Value I2S_PDESB I2S_BA 0x014 R W I2S Play DMA Destination Base Address Register 0x0000_0000 Bits Description 31 0 AUDIO_PDESB 32 bit Play Destination Base Address This bit field indicates the...

Страница 567: ...Value I2S_PDES_LENGTH I2S_BA 0x018 R W I2S Play DMA Destination Length Register 0x0000_0000 Bits Description 31 0 AUDIO_PDES_L 32 bit Play Destination Address Length The AUDIO_PDES_L 31 0 bits are re...

Страница 568: ...Reset Value I2S_PDESC I2S_BA 0x01C R I2S Play DMA Destination Current Address Register 0x0000_0000 Bits Description 31 0 AUDIO_PDESC 32 bit Play Destination Current Address This bit field indicates th...

Страница 569: ...of record FIFO is not happened 1 the full error of record FIFO is happened The R_FIFO_FULL bit is readable and only can be clear by write 1 to this bit 1 R_FIFO_EMPTY Record FIFO EMPTY Indicator Bit...

Страница 570: ...unter subtracts 1 The counting of playback data number is used for software monitoring If the DMA counter I2S_COUNTER 31 0 is Zero this bit DMA_CNTER_IRQ will be set to 1 0 DMA counter I2S_COUNTER 31...

Страница 571: ...EMPTY Playback FIFO EMPTY Indicator Bit When playback FIFO is empty and the playback data is read from playback FIFO the P_FIFO_EMPTY bit is set to 1 This bit indicates the empty error of playback FIF...

Страница 572: ...ALER Selection Bits FPLL Is the Input PLL Frequency MCLK Is the Output Main Clock 0000 MCLK FPLL 1 0001 MCLK FPLL 2 0010 MCLK FPLL 3 0011 MCLK FPLL 4 0100 MCLK FPLL 5 0101 MCLK FPLL 6 0110 MCLK FPLL 7...

Страница 573: ...ween PLL and I2 S serial data clock The frequency of I2 S serial data clock follows the formula below BCLK PLL PRS BCLK_DIV 1 2 4 MCLK_SEL MCLK Clock Selection Bit 0 I2 S MCLK output will follow the P...

Страница 574: ...gister 0xFFFF_FFFF Bits Description 31 0 COUNTER Play DMA Down Counter This bit field is used to count playback data number for software monitoring When one playback data is transferred to codec the D...

Страница 575: ...1 PCM_MCLK FPLL 4 0100 PCM_MCLK FPLL 5 0101 PCM_MCLK FPLL 6 0110 PCM_MCLK FPLL 7 0111 PCM_MCLK FPLL 8 1000 RESERVED 1001 PCM_MCLK FPLL 10 1010 RESERVED 1011 PCM_MCLK FPLL 12 1100 RESERVED 1101 PCM_MCL...

Страница 576: ...70 TECHNICAL REFERENCE MANUAL 15 8 PCM_PRS PCM_BCLK Frequency PRE_SCALER Selection Bits BCLK PCM_MCLK 2 PCM_PRS 1 7 1 Reserved Reserved 0 BCLKP BCLK Polarity 0 send data at rising edge latch data at f...

Страница 577: ...t Position This bit field is used to set the start position of slot1 output data Example For Short Frame Sync set SLOT1_O_START to 1 For Long Frame Sync set SLOT1_O_START to 0 15 10 Reserved Reserved...

Страница 578: ...r 0x0000_0000 Bits Description 31 26 Reserved Reserved 25 16 SLOT2_O_START Slot 2 Data Out Start Position This bit field is used to set the start position of slot2 output data 15 10 Reserved Reserved...

Страница 579: ...I2S_RDESB2 I2S_BA 0x040 R W I2S Record DMA Destination Base Address 2 Register 0x0000_0000 Bits Description 31 0 AUDIO_RDESB2 32 bit Record Destination Base Address for Right Channel This bit field in...

Страница 580: ...e I2S_PDESB2 I2S_BA 0x044 R W I2S Play DMA Destination Base Address 2 Register 0x0000_0000 Bits Description 31 0 AUDIO_PDESB2 32 bit Play Destination Base Address for Right Channel This bit field indi...

Страница 581: ...e EMAC supports RMII Reduced MII interface to connect with external Ethernet PHY 5 21 2 Features Supports IEEE Std 802 3 CSMA CD protocol Supports Ethernet frame time stamping for IEEE Std 1588 2002 p...

Страница 582: ...ngine IEEE 1588 PTP Engine Figure 5 21 1 Ethernet MAC Controller Block Diagram 5 21 4 Basic Configuration Before using EMAC functionality it s necessary to configure I O pins as the EMAC function and...

Страница 583: ...fter the finish of the frame transmission the TXDMA updates the transmit status of current frame and write the transmit descriptor back to the system memory to indicate the frame transmission has fini...

Страница 584: ...sent data will be assembled with the preamble the start frame delimiter SFD the frame check sequence and the padding for enforcing those less than 64 bytes to meet the minimum size frame and CRC sequ...

Страница 585: ...cribes how the 64 bit counter works to generate the reference timing The 64 bit counter formed by two 32 bit counters the EMACn_TSSEC and EMACn_TSSUBSEC a updated using the EMAC s input reference cloc...

Страница 586: ...ation of each frame Through the descriptor CPU and EMAC exchange the information for frame reception and transmission Two different descriptors defined in EMAC One named as RXDMA descriptor for frame...

Страница 587: ...0 If the O 1 b0 indicates the CPU is the owner of RX descriptor After the CPU completed the frame processing it modified the ownership field to 1 b1 and released the RX descriptor to EMAC RXDMA 0 The...

Страница 588: ...me is a long frame 18 Reserved Reserved 17 CRCE CRC Error The CRCE indicates the frame stored in the data buffer pointed by RX descriptor incurred CRC error 0 The frame does not incur CRC error 1 The...

Страница 589: ...ow 31 30 29 28 27 26 25 24 RXBSA TSLSB 23 22 21 20 19 18 17 16 RXBSA TSLSB 15 14 13 12 11 10 9 8 RXBSA TSLSB 7 6 5 4 3 2 1 0 RXBSA TSLSB Bits Description 31 0 RXBSA Receive Buffer Starting Address The...

Страница 590: ...sion V1 30 NUC970 TECHNICAL REFERENCE MANUAL RXDES 2 RXDMA Descriptor Word 2 The RXDMA descriptor word 2 is reserved 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10...

Страница 591: ...21 20 19 18 17 16 NRXDSA TSMSB 15 14 13 12 11 10 9 8 NRXDSA TSMSB 7 6 5 4 3 2 1 0 NRXDSA TSMSB Bits Description 31 0 NRXDSA Next RX Descriptor Starting Address NRXDSA is the starting address of the n...

Страница 592: ...of four 32 bit words The data structure of TXDMA descriptor shown in figure below 0 15 31 Transmit Frame Buffer Starting Address Time Stamp Least Significant 32 Bit P Next TxDMA Descriptor Starting A...

Страница 593: ...for frame transmission After the frame transmission completed EMAC TXDMA modify ownership field to 1 b0 and return the ownership of TX descriptor to CPU If the O 1 b0 indicates the CPU is the owner o...

Страница 594: ...PP is enabled the 4 bytes CRC checksum will be appended to frame at the end of frame transmission 0 4 bytes CRC appending Disabled 1 4 bytes CRC appending Enabled 0 PADEN Padding Enable Control The PA...

Страница 595: ...24 TXBSA TSLSB 23 22 21 20 19 18 17 16 TXBSA TSLSB 15 14 13 12 11 10 9 8 TXBSA TSLSB 7 6 5 4 3 2 1 0 TXBSA TSLSB Bits Description 31 2 TXBSA Transmit Buffer Starting Address The TXBSA is the starting...

Страница 596: ...smitted out on MII RMII 0 TX Descriptor Word 1 and TX Descriptor Word 3 does not keep the time stamp value 1 TX Descriptor Word 1 and TX Descriptor Word 3 keep the time stamp value 26 SQE SQE Error Th...

Страница 597: ...CRS signal does not active at the start of or during the packet transmission 1 CRS signal actives correctly 20 EXDEF Defer Exceed The EXDEF indicates the frame waiting for transmission has deferred ov...

Страница 598: ...TXDSA TSMSB 15 14 13 12 11 10 9 8 NTXDSA TSMSB 7 6 5 4 3 2 1 0 NTXDSA TSMSB Bits Description 31 0 NTXDSA Next TX Descriptor Starting Address NTXDSA is the starting address of the next TX descriptor Wh...

Страница 599: ...Least Significant Word Register 0x0000_0000 EMACn_CAM2M n 0 1 EMACn_BA 0x018 R W EMAC n CAM 2 Most Significant Word Register 0x0000_0000 EMACn_CAM2L n 0 1 EMACn_BA 0x01C R W EMAC n CAM 2 Least Signif...

Страница 600: ...11 Most Significant Word Register 0x0000_0000 EMACn_CAM11L n 0 1 EMACn_BA 0x064 R W EMAC n CAM 11 Least Significant Word Register 0x0000_0000 EMACn_CAM12M n 0 1 EMACn_BA 0x068 R W EMAC n CAM 12 Most S...

Страница 601: ...errupt Status Register 0x0000_0000 EMACn_MGSTA n 0 1 EMACn_BA 0x0B4 R W EMAC n MAC General Status Register 0x0000_0000 EMACn_MPCNT n 0 1 EMACn_BA 0x0B8 R W EMAC n Missed Packet Count Register 0x0000_7...

Страница 602: ..._BA 0x11C R W EMAC n Time Stamp Addend Register 0x0000_0000 EMACn_UPDSEC n 0 1 EMACn_BA 0x120 R W EMAC n Time Stamp Update Second Register 0x0000_0000 EMACn_UPDSUBSEC n 0 1 EMACn_BA 0x124 R W EMAC n T...

Страница 603: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 603 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 21 8 Register Description...

Страница 604: ...to receive a packet with specific destination MAC address configures the MAC address into CAM 12 0 then enables that CAM entry and set ECMP to 1 0 CAM comparison function for destination MAC address...

Страница 605: ...all unicast packets CAMCMR Setting and Comparison Results The following table is the address recognition result in different CAMCMR configuration The column Result shows the incoming packet type that...

Страница 606: ...MANUAL 1 0 0 0 1 C B 1 0 0 1 0 C M 1 0 0 1 1 C M B 1 0 1 0 0 C U 1 0 1 0 1 C U B 1 0 1 1 0 C U M 1 0 1 1 1 C U M B 1 1 0 0 0 U M B 1 1 0 0 1 U M B 1 1 0 1 0 U M B 1 1 0 1 1 U M B 1 1 1 0 0 C U M B 1 1...

Страница 607: ...0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 CAM15EN CAM14EN CAM13EN CAM12EN CAM11EN CAM10EN CAM9EN CAM8EN 7 6 5 4 3 2 1 0 CAM7EN CAM6EN CAM5EN C...

Страница 608: ...ificant Word Register 0x0000_0000 EMACn_CAM2M n 0 1 EMACn_BA 0x018 R W EMAC n CAM 2 Most Significant Word Register 0x0000_0000 EMACn_CAM3M n 0 1 EMACn_BA 0x020 R W EMAC n CAM 3 Most Significant Word R...

Страница 609: ...2 11 10 9 8 CAMxM 7 6 5 4 3 2 1 0 CAMxM Bits Description 31 0 CAMxM CAMx Most Significant Word The CAMxM keeps the bit 47 16 of MAC address The x can be the 0 12 The register pair EMACn_CAMxM EMACn_CA...

Страница 610: ...nt Word Register 0x0000_0000 EMACn_CAM2L n 0 1 EMACn_BA 0x01C R W EMAC n CAM 2 Least Significant Word Register 0x0000_0000 EMACn_CAM3L n 0 1 EMACn_BA 0x024 R W EMAC n CAM 3 Least Significant Word Regi...

Страница 611: ...erved 7 6 5 4 3 2 1 0 Reserved Bits Description 31 16 CAMxL CAMx Least Significant Word The CAMxL keeps the bit 15 0 of MAC address The x can be the 0 14 The register pair EMACn_CAMxM EMACn_CAMxL repr...

Страница 612: ...estination MAC address The corresponding CAM enable bit CAMxEN EMACn_CAMEN x is also needed be enabled The x can be the 0 to 12 The register pairs EMACn_CAM13M EMACn_CAM13L EMACn_CAM14M EMACn_CAM14L a...

Страница 613: ...keep a destination MAC address The corresponding CAM enable bit CAMxEN EMACn_CAMEN x is also needed be enabled The x can be the 0 to 12 The register pairs EMACn_CAM13M EMACn_CAM13L EMACn_CAM14M EMACn...

Страница 614: ...n Reset Value EMACn_TXDLS A n 0 1 EMACn_BA 0x088 R W EMAC n Transmit Descriptor Link List Start Address Register 0xFFFF_FFFC 31 30 29 28 27 26 25 24 TXDLSA 23 22 21 20 19 18 17 16 TXDLSA 15 14 13 12 1...

Страница 615: ...ption Reset Value EMACn_RXDLSA n 0 1 EMACn_BA 0x08C R W EMAC n Receive Descriptor Link List Start Address Register 0xFFFF_FFFC 31 30 29 28 27 26 25 24 RXDLSA 23 22 21 20 19 18 17 16 RXDLSA 15 14 13 12...

Страница 616: ...erved NDEF TXON 7 6 5 4 3 2 1 0 PTP_SRC MGP_WAKE SPCRC AEP ACP ARP ALP RXON Bits Description 31 25 Reserved Reserved 24 SWR Software Reset The SWR implements a reset function to make the EMAC return d...

Страница 617: ...the SDPZ will be cleared automatically It is recommended that only enabling SPDZ while EMAC is operating in Full Duplex mode 0 PAUSE control frame transmission completed 1 PAUSE control frame transmis...

Страница 618: ...reception If the ACP is set to high the EMAC will accept the control frame Otherwise the control frame will be dropped It is recommended that S W only enable ACP while EMAC is operating on full duple...

Страница 619: ...mand or the data that is read from the registers of external PHY for read command Register Offset R W Description Reset Value EMACn_MIID n 0 1 EMACn_BA 0x09 4 R W EMAC n MII Management Data Register 0...

Страница 620: ...controls the MDC clock generation If the MDCON is set to high the MDC clock actives always Otherwise the MDC will only active while S W issues a MII management command 0 MDC clock only actives while S...

Страница 621: ...unction is used for the purpose of controlling the PHY and gathering status from the PHY The MII management frame format is shown as follow Management Frame Fields PRE ST OP PHYAD REGAD TA DATA IDLE R...

Страница 622: ...n_FFTCR also defines the burst length of AHB bus cycle for system memory access Register Offset R W Description Reset Value EMACn_FFTCR n 0 1 EMACn_BA 0x09 C R W EMAC n FIFO Threshold Control Register...

Страница 623: ...than TXFIFO high threshold the TXMAC starts to transmit the frame out after the frame data are all inside the TXFIFO 00 Undefined 10 TXFIFO low threshold is 80B and high threshold is 160B 01 TXFIFO l...

Страница 624: ...17 16 TSD 15 14 13 12 11 10 9 8 TSD 7 6 5 4 3 2 1 0 TSD Bits Description 31 0 TSD Transmit Start Demand If the TX descriptor is not available for use of TXDMA after the TXON EMACn_MCMDR 8 is enabled...

Страница 625: ...18 17 16 RSD 15 14 13 12 11 10 9 8 RSD 7 6 5 4 3 2 1 0 RSD Bits Description 31 0 RSD Receive Start Demand If the RX descriptor is not available for use of RXDMA after the RXON EMACn_MCMDR 0 is enabled...

Страница 626: ...F C n 0 1 EMACn_BA 0x0 A8 R W EMAC n Maximum Receive Frame Control Register 0x0000_0800 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 RXMS 7 6 5 4 3 2 1 0 RXM...

Страница 627: ...ion 31 29 Reserved Reserved 28 TSALMIEN Time Stamp Alarm Interrupt Enable Control The TSALMIEN controls the TSALS EMACn_MISTA 28 interrupt generation If TSALS EMACn_MISTA 28 is set and both TSALMIEN a...

Страница 628: ...generated to CPU even the TXABT EMACn_MISTA 21 is set 0 TXABT EMACn_MISTA 21 trigger TX interrupt Disabled 1 TXABT EMACn_MISTA 21 trigger TX interrupt Enabled 20 NCSIEN No Carrier Sense Interrupt Enab...

Страница 629: ...s the RX interrupt to CPU If WOLIEN or RXIEN EMACn_MIEN 0 is disabled no RX interrupt is generated to CPU even the MPR EMACn_MISTA 15 is set 0 MPR EMACn_MISTA 15 trigger RX interrupt Disabled 1 MPR EM...

Страница 630: ...0 is disabled no RX interrupt is generated to CPU even the MMP EMACn_MISTA 7 is set 0 MMP EMACn_MISTA 7 trigger RX interrupt Disabled 1 MMP EMACn_MISTA 7 trigger RX interrupt Enabled 6 RPIEN Runt Pac...

Страница 631: ...interrupt Disabled 1 RXOV EMACn_MISTA 2 trigger RX interrupt Enabled 1 CRCEIEN CRC Error Interrupt Enable Control The CRCEIEN controls the CRCE EMACn_MISTA 1 interrupt generation If CRCE EMACn_MISTA...

Страница 632: ...4 3 2 1 0 MMP RP ALIE RXGD PTLE RXOV CRCE RXINTR Bits Description 31 29 Reserved Reserved 28 TSALS Time Stamp Alarm Interrupt The TSALS high indicates the EMACn_TSMSR register value equals to EMACn_T...

Страница 633: ...operating on half duplex mode If the TXABT is high and TXABTIEN EMACn_MIEN 21 is enabled the TXINTR will be high Write 1 to this bit clears the TXABT status 0 Packet does not incur 16 consecutive coll...

Страница 634: ...s a logic OR result clears EMC_MISTA 28 17 makes TXINTR be cleared too 0 No status bit in EMACn_MISTA 28 17 is set or no enable bit in EMACn_MIEN 28 17 is enabled 1 At least one status in EMACn_MISTA...

Страница 635: ...ng packet doesn t exceed the length limitation configured in DMARFC 1 The length of the incoming packet has exceeded the length limitation configured in DMARFC 7 MMP More Missed Packet Interrupt The M...

Страница 636: ...uring packet reception 1 RXFIFO overflow occurred during packet reception 1 CRCE CRC Error Interrupt The CRCE high indicates the incoming packet incurred the CRC error and the packet is dropped If the...

Страница 637: ...counting actives After Ethernet MAC controller sent PAUSE frame out successfully it starts the remote pause counter down counting When this bit high it s predictable that remote Ethernet MAC controlle...

Страница 638: ...during a packet transmission If the packet incurred 16 consecutive collisions during transmission the CCNT will be 4 h0 and bit TXABT will be set to 1 3 Reserved Reserved 2 RXFFULL RXFIFO Full The RX...

Страница 639: ...ounter is overflow the MMP EMACn_MISTA 7 will be set Register Offset R W Description Reset Value EMACn_MPCNT n 0 1 EMACn_BA 0x0B8 R W EMAC n Missed Packet Count Register 0x0000_7FFF 31 30 29 28 27 26...

Страница 640: ...l keep the same while TX of EMAC is pausing due to the PAUSE control frame is received The EMACn_MRPC is read only and write to this register has no effect Register Offset R W Description Reset Value...

Страница 641: ...R W EMAC n DMA Receive Frame Status Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 RXFLT 7 6 5 4 3 2 1 0 RXFLT Bits Description 31 16 Res...

Страница 642: ...Cn_CTXDSA n 0 1 EMACn_BA 0x0CC R EMAC n Current Transmit Descriptor Start Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CTXDSA 23 22 21 20 19 18 17 16 CTXDSA 15 14 13 12 11 10 9 8 CTXDSA 7 6 5...

Страница 643: ...Cn_CTXBSA n 0 1 EMACn_BA 0x0D 0 R EMAC n Current Transmit Buffer Start Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CTXBSA 23 22 21 20 19 18 17 16 CTXBSA 15 14 13 12 11 10 9 8 CTXBSA 7 6 5 4 3...

Страница 644: ...Cn_CRXDSA n 0 1 EMACn_BA 0x0D 4 R EMAC n Current Receive Descriptor Start Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CRXDSA 23 22 21 20 19 18 17 16 CRXDSA 15 14 13 12 11 10 9 8 CRXDSA 7 6 5...

Страница 645: ...ACn_CRXBSA n 0 1 EMACn_BA 0x0D8 R EMAC n Current Receive Buffer Start Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CRXBSA 23 22 21 20 19 18 17 16 CRXBSA 15 14 13 12 11 10 9 8 CRXBSA 7 6 5 4 3...

Страница 646: ...to EMACn_ALMSEC and EMACn_TSSUBSEC equals to EMACn_ALMSUBSEC 0 Alarm disabled when EMACn_TSSEC equals to EMACn_ALMSEC and EMACn_TSSUBSEC equals to EMACn_ALMSUBSEC 1 Alarm enabled when EMACn_TSSEC equ...

Страница 647: ...After the load operation finished Ethernet MAC controller clear this bit to low automatically 0 Time stamp counter initialization done 1 Time stamp counter initialization Enabled 0 TSEN Time Stamp Fun...

Страница 648: ...lue EMACn_TSSEC n 0 1 EMACn_BA 0x110 R W EMAC n Time Stamp Counter Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SEC 23 22 21 20 19 18 17 16 SEC 15 14 13 12 11 10 9 8 SEC 7 6 5 4 3 2 1 0 SEC Bit...

Страница 649: ...SSUB SEC n 0 1 EMACn_BA 0x114 R W EMAC n Time Stamp Counter Sub Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SUBSEC 23 22 21 20 19 18 17 16 SUBSEC 15 14 13 12 11 10 9 8 SUBSEC 7 6 5 4 3 2 1 0 S...

Страница 650: ...Cn_BA 0x118 R W EMAC n Time Stamp Increment Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 CNTINC Bits Descriptio...

Страница 651: ...0 29 28 27 26 25 24 ADDEND 23 22 21 20 19 18 17 16 ADDEND 15 14 13 12 11 10 9 8 ADDEND 7 6 5 4 3 2 1 0 ADDEND Bits Description 31 0 ADDEND Time Stamp Counter Addend This register keeps a 32 bit value...

Страница 652: ...MACn_UPDSE C n 0 1 EMACn_BA 0x120 R W EMAC n Time Stamp Update Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SEC 23 22 21 20 19 18 17 16 SEC 15 14 13 12 11 10 9 8 SEC 7 6 5 4 3 2 1 0 SEC Bits De...

Страница 653: ...EC n 0 1 EMACn_BA 0x12 4 R W EMAC n Time Stamp Update Sub Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SUBSEC 23 22 21 20 19 18 17 16 SUBSEC 15 14 13 12 11 10 9 8 SUBSEC 7 6 5 4 3 2 1 0 SUBSEC...

Страница 654: ...e Stamp Alarm Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SEC 23 22 21 20 19 18 17 16 SEC 15 14 13 12 11 10 9 8 SEC 7 6 5 4 3 2 1 0 SEC Bits Description 31 0 SEC Time Stamp Counter Second Alar...

Страница 655: ...Alarm Sub Second Register 0x0000_0000 31 30 29 28 27 26 25 24 SUBSEC 23 22 21 20 19 18 17 16 SUBSEC 15 14 13 12 11 10 9 8 SUBSEC 7 6 5 4 3 2 1 0 SUBSEC Bits Description 31 0 SUBSEC Time Stamp Counter...

Страница 656: ...erface The USB device controller is complaint with USB 2 0 specification and it contains 12 configurable endpoints in addition to control endpoint These endpoints could be configured to BULK INTERRUPT...

Страница 657: ...Description Operation of different In transfer modes 5 22 5 1 The data for any in transfer is written into the internal buffer when in turn is sent to the host on receipt of an in token There are thre...

Страница 658: ...ken This mode requires intervention of CPU for each transfer But this would be useful if the data count to be sent each time is not fixed and it is being decided by CPU EPxTXCNT Written Data Availabil...

Страница 659: ...s the real memory address and length The descriptor will be an 8 byte format like the following Format 31 30 29 0 Word0 MEM_ADDR 31 0 Word1 EOT RD Reserved Count 19 0 MEM_ADDR It specifies the memory...

Страница 660: ...0x034 R W Control Endpoint Interrupt Status 0x0000_1800 USBD_CEPTXCNT USBD_BA 0x038 R W Control Endpoint In Transfer Data Count 0x0000_0000 USBD_CEPRXCNT USBD_BA 0x03C R Control Endpoint Out Transfer...

Страница 661: ...nt B RAM Start Address Register 0x0000_0000 USBD_EPBBUFEND USBD_BA 0x0B0 R W Endpoint B RAM End Address Register 0x0000_0000 USBD_EPCDAT USBD_BA 0x0B4 R W Endpoint C Data Register 0x0000_0000 USBD_EPC...

Страница 662: ...oint E RAM End Address Register 0x0000_0000 USBD_EPFDAT USBD_BA 0x12C R W Endpoint F Data Register 0x0000_0000 USBD_EPFINTSTS USBD_BA 0x130 R W Endpoint F Interrupt Status Register 0x0000_0003 USBD_EP...

Страница 663: ...point I Data Register 0x0000_0000 USBD_EPIINTSTS USBD_BA 0x1A8 R W Endpoint I Interrupt Status Register 0x0000_0003 USBD_EPIINTEN USBD_BA 0x1AC R W Endpoint I Interrupt Enable Register 0x0000_0000 USB...

Страница 664: ...0x0000_00B2 USBD_EPKBUFSTART USBD_BA 0x214 R W Endpoint K RAM Start Address Register 0x0000_0000 USBD_EPKBUFEND USBD_BA 0x218 R W Endpoint K RAM End Address Register 0x0000_0000 USBD_EPLDAT USBD_BA 0x...

Страница 665: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 665 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 22 7 Register Description...

Страница 666: ...interrupt event is occurred 12 EPKIF Endpoints K Interrupt When set the corresponding Endpoint K s interrupt status register should be read to determine the cause of the interrupt 0 No interrupt event...

Страница 667: ...occurred 4 EPCIF Endpoints C Interrupt When set the corresponding Endpoint C s interrupt status register should be read to determine the cause of the interrupt 0 No interrupt event occurred 1 The rel...

Страница 668: ...bled 1 The related interrupt Enabled 12 EPKIEN Interrupt Enable Control for Endpoint K When set this bit enables a local interrupt to be generated when an interrupt is pending for the endpoint K 0 The...

Страница 669: ...related interrupt Disabled 1 The related interrupt Enabled 4 EPCIEN Interrupt Enable Control for Endpoint C When set this bit enables a local interrupt to be generated when an interrupt is pending for...

Страница 670: ...ear this bit to 0 7 Reserved Reserved 6 PHYCLKVLDIF Usable Clock Interrupt 0 Usable clock is not available 1 Usable clock is available from the transceiver Note Write 1 to clear this bit to 0 5 DMADON...

Страница 671: ...as occurred Note Write 1 to clear this bit to 0 1 RSTIF Reset Status When set this bit indicates that either the USB root port reset is end 0 No USB root port reset is end 1 USB root port reset is end...

Страница 672: ...rupt Enable Control This bit enables the VBUS floating detection interrupt 0 VBUS floating detection interrupt Disabled 1 VBUS floating detection interrupt Enabled 7 Reserved Reserved 6 PHYCLKVLDIEN U...

Страница 673: ...EN Resume This bit enables the Resume interrupt 0 Resume interrupt Disabled 1 Resume interrupt Enabled 1 RSTIEN Reset Status This bit enables the USB Reset interrupt 0 USB Reset interrupt Disabled 1 U...

Страница 674: ...on 31 3 Reserved Reserved 2 CURSPD USB Current Speed 0 The device has settled in Full Speed 1 The USB device controller has settled in High speed 1 HISPDEN USB High speed 0 The USB device controller t...

Страница 675: ...me Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved FRAMECNT 7 6 5 4 3 2 1 0 FRAMECNT MFRAMECNT Bits Description 31 14 Reserv...

Страница 676: ...Reset Value USBD_FADDR USBD_BA 0x020 R W USB Function Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Rese...

Страница 677: ...W USB Test Mode Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved TESTMODE Bits Description 31 3 Reserved...

Страница 678: ...ffset R W Description Reset Value USBD_CEPDAT USBD_BA 0x028 R W Control Endpoint Data Buffer 0x0000_0000 31 30 29 28 27 26 25 24 DAT 23 22 21 20 19 18 17 16 DAT 15 14 13 12 11 10 9 8 DAT 7 6 5 4 3 2 1...

Страница 679: ...packet to the host during Data stage to an IN token 1 USB device controller can send a zero length packet to the host during Data stage to an IN token This bit gets cleared once the zero length data...

Страница 680: ...ce controller will be responding with NAKs for the subsequent status phase This mechanism holds the host from moving to the next request until the local CPU is also ready to process the next request 1...

Страница 681: ...ndpoint Enabled 11 BUFFULLIEN Buffer Full Interrupt 0 The buffer full interrupt in Control Endpoint Disabled 1 The buffer full interrupt in Control Endpoint Enabled 10 STSDONEIEN Status Completion Int...

Страница 682: ...t Control Endpoint Enabled 3 INTKIEN In Token Interrupt 0 The IN token interrupt in Control Endpoint Disabled 1 The IN token interrupt in Control Endpoint Enabled 2 OUTTKIEN Out Token Interrupt 0 The...

Страница 683: ...e 1 to clear this bit to 0 11 BUFFULLIF Buffer Full Interrupt 0 The control endpoint buffer is not full 1 The control endpoint buffer is full Note Write 1 to clear this bit to 0 10 STSDONEIF Status Co...

Страница 684: ...oken from the host 1 The control endpoint receives a ping token from the host Note Write 1 to clear this bit to 0 3 INTKIF In Token Interrupt 0 The control endpoint does not received an IN token from...

Страница 685: ...0 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 TXCNT Bits Description 31 8 Reserved Reserved 7 0 TXCNT In transfer Data Count There is no mode selection for the control endpoint...

Страница 686: ...Reset Value USBD_CEPRXCNT USBD_BA 0x03C R Control Endpoint Out Transfer Data Count 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4...

Страница 687: ...set R W Description Reset Value USBD_CEPDATCNT USBD_BA 0x040 R Control Endpoint Data Count 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 DATCNT 7...

Страница 688: ...10 9 8 SETUP1 7 6 5 4 3 2 1 0 SETUP0 Bits Description 31 16 Reserved Reserved 15 8 SETUP1 Setup Byte 1 15 8 This register provides byte 1 of the last setup packet received For a Standard Device Reque...

Страница 689: ...7 0 This register provides byte 0 of the last setup packet received For a Standard Device Request the following bmRequestType information is returned Bit 7 Direction 0 Host to device 1 Device to host...

Страница 690: ...ved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 SETUP3 7 6 5 4 3 2 1 0 SETUP2 Bits Description 31 16 Reserved Reserved 15 8 SETUP3 Setup Byte 3 15 8 This register provides byte 3 of the las...

Страница 691: ...served 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 SETUP5 7 6 5 4 3 2 1 0 SETUP4 Bits Description 31 16 Reserved Reserved 15 8 SETUP5 Setup Byte 5 15 8 This register provides byte 5 of the...

Страница 692: ...ed 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 SETUP7 7 6 5 4 3 2 1 0 SETUP6 Bits Description 31 16 Reserved Reserved 15 8 SETUP7 Setup Byte 7 15 8 This register provides byte 7 of the last...

Страница 693: ...W Description Reset Value USBD_CEPBUFSTART USBD_BA 0x054 R W Control Endpoint RAM Start Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10...

Страница 694: ...R W Description Reset Value USBD_CEPBUFEND USBD_BA 0x058 R W Control Endpoint RAM End Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9...

Страница 695: ...tion 31 8 Reserved Reserved 7 DMARST Reset DMA State Machine 0 No reset the DMA state machine 1 Reset the DMA state machine 6 SGEN Scatter Gather Function Enable Control 0 Scatter gather function Disa...

Страница 696: ...R W Description Reset Value USBD_DMACNT USBD_BA 0x060 R W DMA Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved DMACNT 15 14 13 12 11 10 9 8 DMACNT 7 6 5 4...

Страница 697: ...0000 USBD_EPFDAT USBD_BA 0x12C R W Endpoint F Data Register 0x0000_0000 USBD_EPGDAT USBD_BA 0x154 R W Endpoint G Data Register 0x0000_0000 USBD_EPHDAT USBD_BA 0x17C R W Endpoint H Data Register 0x0000...

Страница 698: ...er 0x0000_0003 USBD_EPHINTSTS USBD_BA 0x180 R W Endpoint H Interrupt Status Register 0x0000_0003 USBD_EPIINTSTS USBD_BA 0x1A8 R W Endpoint I Interrupt Status Register 0x0000_0003 USBD_EPJINTSTS USBD_B...

Страница 699: ...received from the host 1 A Data PING token has been received from the host Note Write 1 to clear this bit to 0 6 INTKIF Data IN Token Interrupt 0 Not Data IN token has been received from the host 1 A...

Страница 700: ...t a count of 0 1 The currently selected buffer has a count of 0 or no buffer is available on the local side nothing to read Note This bit is read only 0 BUFFULLIF Buffer Full For an IN endpoint the cu...

Страница 701: ...dpoint G Interrupt Enable Register 0x0000_0000 USBD_EPHINTEN USBD_BA 0x184 R W Endpoint H Interrupt Enable Register 0x0000_0000 USBD_EPIINTEN USBD_BA 0x1AC R W Endpoint I Interrupt Enable Register 0x0...

Страница 702: ...ontrol When set this bit enables a local interrupt to be set when a PING token has been received from the host 0 PING token interrupt Disabled 1 PING token interrupt Enabled 6 INTKIEN Data IN Token In...

Страница 703: ...host 0 Short data packet interrupt Disabled 1 Short data packet interrupt Enabled 1 BUFEMPTYIEN Buffer Empty Interrupt When set this bit enables a local interrupt to be set when a buffer empty conditi...

Страница 704: ...USBD_EPFDATCN T USBD_BA 0x138 R Endpoint F Data Available Count Register 0x0000_0000 USBD_EPGDATCN T USBD_BA 0x160 R Endpoint G Data Available Count Register 0x0000_0000 USBD_EPHDATCN T USBD_BA 0x188...

Страница 705: ...ICAL REFERENCE MANUAL 15 0 DATCNT Data Count For an IN endpoint EPDIR USBD_EPxCFG 3 is high this register returns the number of valid bytes in the IN endpoint packet buffer For an OUT endpoint EPDIR U...

Страница 706: ...sponse Control Register 0x0000_0000 USBD_EPFRSPCT L USBD_BA 0x13C R W Endpoint F Response Control Register 0x0000_0000 USBD_EPGRSPCT L USBD_BA 0x164 R W Endpoint G Response Control Register 0x0000_000...

Страница 707: ...t on reception of an IN token 4 HALT Endpoint Halt This bit is used to send a STALL handshake as response to the token from the host When an Endpoint Set Feature ep_halt is detected by the local CPU i...

Страница 708: ...USBD_EPFMPS USBD_BA 0x140 R W Endpoint F Maximum Packet Size Register 0x0000_0000 USBD_EPGMPS USBD_BA 0x168 R W Endpoint G Maximum Packet Size Register 0x0000_0000 USBD_EPHMPS USBD_BA 0x190 R W Endpo...

Страница 709: ...1C R W Endpoint E Transfer Count Register 0x0000_0000 USBD_EPFTXCN T USBD_BA 0x144 R W Endpoint F Transfer Count Register 0x0000_0000 USBD_EPGTXCN T USBD_BA 0x16C R W Endpoint G Transfer Count Registe...

Страница 710: ...15 2015 710 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 10 0 TXCNT Endpoint Transfer Count For IN endpoints this field determines the total number of bytes to be sent to the host in case of manua...

Страница 711: ...ndpoint E Configuration Register 0x0000_0052 USBD_EPFCF G USBD_BA 0x148 R W Endpoint F Configuration Register 0x0000_0062 USBD_EPGCF G USBD_BA 0x170 R W Endpoint G Configuration Register 0x0000_0072 U...

Страница 712: ...dpoint Direction 0 out endpoint Host OUT to Device 1 in endpoint Host IN to Device Note A maximum of one OUT and IN endpoint is allowed for each endpoint number 2 1 EPTYPE Endpoint Type This field sel...

Страница 713: ...USBD_EPFBUFSTART USBD_BA 0x14C R W Endpoint F RAM Start Address Register 0x0000_0000 USBD_EPGBUFSTAR T USBD_BA 0x174 R W Endpoint G RAM Start Address Register 0x0000_0000 USBD_EPHBUFSTAR T USBD_BA 0x1...

Страница 714: ...0 USBD_EPFBUFEND USBD_BA 0x150 R W Endpoint F RAM End Address Register 0x0000_0000 USBD_EPGBUFEND USBD_BA 0x178 R W Endpoint G RAM End Address Register 0x0000_0000 USBD_EPHBUFEND USBD_BA 0x1A0 R W End...

Страница 715: ...Offset R W Description Reset Value USBD_DMAADDR USBD_BA 0x700 R W AHB DMA Address Register 0x0000_0000 31 30 29 28 27 26 25 24 DMAADDR 23 22 21 20 19 18 17 16 DMAADDR 15 14 13 12 11 10 9 8 DMAADDR 7 6...

Страница 716: ...20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved PHYEN DPPUEN 7 6 5 4 3 2 1 0 Reserved Bits Description 31 VBUSDET VBUS Status 0 The VBUS is not detected yet 1 The VBUS is detected 30 25 Reserv...

Страница 717: ...s The attached peripherals share USB bandwidth through a host scheduled token based protocol Peripherals may be attached configured used and detached while the host and other peripherals continue oper...

Страница 718: ...als and performs the necessary operation register read writes The CPU acts as a bus master having initiated this transfer At that time EHCI acts as a target and responds to the transfer initiated by t...

Страница 719: ...ntroller is through the slave interface List Processing The List Processor manages the data structures from the Host Controller Driver and coordinates all activity within the Host Controller Frame Man...

Страница 720: ...ll as the Serial Interface Engine SIE and USB clock generator The interface combines responsibility for executing bus transactions requested by the HC as well as the hub and port management specified...

Страница 721: ...CI_BA 0x068 R W USB Port 1 Status and Control Register 0x0000_2000 USBPCR0 EHCI_BA 0x0C4 R W USB PHY 0 Control Register 0x0000_0060 USBPCR1 EHCI_BA 0x0C8 R W USB PHY 1 Control Register 0x0000_0020 HcR...

Страница 722: ...H OHCI_BA 0x044 R W Host Controller Low Speed Threshold Register 0x0000_0628 HcRhDeA OHCI_BA 0x048 R W Host Controller Root Hub Descriptor A Register 0x0100_0002 HcRhDeB OHCI_BA 0x04C R W Host Control...

Страница 723: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 723 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 23 7 Register Description...

Страница 724: ...4 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 CRLEN Bits Description 31 16 VERSION Host Controller Interface Version Number This is a two byte register containing a BCD encoding of the EHCI revision numb...

Страница 725: ...r companion host controller It is used to indicate the port routing configuration to system software For example if N_PORTS has a value of 6 and N_CC has a value of 2 then N_PCC could have a value of...

Страница 726: ...ous Scheduling Threshold This field indicates relative to the current position of the executing host controller where software can reliably update the isochronous schedule When bit 7 is zero the value...

Страница 727: ...eshold Control R W This field is used by system software to select the maximum rate at which the host controller will issue interrupts The only valid values are defined below If software writes an inv...

Страница 728: ...ter to access the Periodic Schedule 3 2 FLSZ Frame List Size R W or RO This field is R W only if Programmable Frame List Flag in the HCCPARAMS registers is set to a one This field specifies the size o...

Страница 729: ...troller completes the current and any actively pipelined transactions on the USB and then halts The Host Controller must halt within 16 micro frames after software clears the Run bit The HC Halted bit...

Страница 730: ...c Schedule Status RO The bit reports the current real status of the Periodic Schedule If this bit is a zero then the status of the Periodic Schedule is disabled If this bit is a one then the status of...

Страница 731: ...a one as a result of a J K transition detected on a suspended port This bit will also be set as a result of the Connect Status Change being set to a one after system software has relinquished ownersh...

Страница 732: ...ontroller will issue an interrupt The interrupt is acknowledged by software clearing the Host System Error bit 3 FLREN Frame List Rollover Enable When this bit is a one and the Frame List Rollover bit...

Страница 733: ...0 9 8 Reserved FI 7 6 5 4 3 2 1 0 FI Bits Description 31 14 Reserved Reserved 13 0 FI Frame Index The value in this register increment at the end of each time frame e g micro frame Bits N 3 are used f...

Страница 734: ...gister Offset R W Description Reset Value UPFLBAR EHCI_BA 0x034 R W USB Periodic Frame List Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BADDR 23 22 21 20 19 18 17 16 BADDR 15 14 13 12 11...

Страница 735: ...escription Reset Value UCALAR EHCI_BA 0x038 R W USB Current Asynchronous List Address Register 0x0000_0000 31 30 29 28 27 26 25 24 LPL 23 22 21 20 19 18 17 16 LPL 15 14 13 12 11 10 9 8 LPL 7 6 5 4 3 2...

Страница 736: ...18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved ASTMR 7 6 5 4 3 2 1 0 ASTMR Bits Description 31 11 Reserved Reserved 11 0 ASSTMR Asynchronous Schedule Sleep Timer This field defines the AsyncSchedSl...

Страница 737: ...16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved CF Bits Description 31 1 Reserved Reserved 0 CF Configure Flag CF Host software sets this bit as the last action in its process of c...

Страница 738: ...0x1 Test J_STATE 0x2 Test K_STATE 0x3 Test SE0_NAK 0x4 Test Packet 0x5 Test FORCE_ENABLE 15 14 Reserved Reserved 13 PO Port Owner R W This bit unconditionally goes to a 0b when the Configured bit in t...

Страница 739: ...reset sequence Software must keep this bit at a one long enough to ensure the reset sequence as specified in the USB Specification Revision 2 0 completes Note when software writes this bit to a one i...

Страница 740: ...hen the effects on the bus are undefined Software sets this bit to a 1 to drive resume signaling The Host Controller sets this bit to a 1 if a J to K transition is detected while the port is in the Su...

Страница 741: ...es not change until the port state actually changes There may be a delay in disabling or enabling a port due to other host controller and bus events When the port is disabled 0b downstream propagation...

Страница 742: ...id This bit is a flag to indicate if the UTMI clock from USB 2 0 PHY is ready S W program must prevent to write other control registers before this UTMI clock valid flag is active 0 UTMI clock is not...

Страница 743: ...5 14 13 12 11 10 9 8 Reserved SUSPEND 7 6 5 4 3 2 1 0 Reserved Bits Description 31 9 Reserved Reserved 8 SUSPEND Suspend Assertion This bit controls the suspend mode of USB PHY 1 While PHY was suspend...

Страница 744: ...tion Reset Value HcRev OHCI_BA 0x000 R Host Controller Revision Register 0x0000_0010 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 RE...

Страница 745: ...ote wakeup signal supported this bit is ignored 9 RWC Remote Wakeup Connected This bit indicated whether the HC supports a remote wakeup signal This implementation does not support any such signal The...

Страница 746: ...be serviced While processing the Periodic List the Host Controller will check this bit when it finds an isochronous ED 2 PLE Periodic List Enable When set this bit enables processing of the Periodic i...

Страница 747: ...t wraps from 11 to 00 15 4 Reserved Reserved 3 OCR Ownership Chang Request When set by software this bit sets the OwnershipChange field in HcInterruptStatus The bit is cleared by software 2 BLF Bulk L...

Страница 748: ...OwnershipChangeRequest bit of HcCommandStatus is set 29 7 Reserved Reserved 6 RHSC Root Hub Status Change This bit is set when the content of HcRhStatus or the content of any HcRhPortStatus register h...

Страница 749: ...ts to be enabled via the specific enable bits listed above 30 OC Ownership Change Enable 0 Ignore 1 Enables interrupt generation due to Ownership Change 29 7 Reserved Reserved 6 RHSC Root Hub Status C...

Страница 750: ...hnical Reference Manual Publication Release Date Dec 15 2015 750 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 SO Scheduling Overrun Enable 0 Ignore 1 Enables interrupt generation due to Scheduli...

Страница 751: ...disables all interrupts 30 OC Ownership Change Disable 0 Ignore 1 Disables interrupt generation due to Ownership Change 29 7 Reserved Reserved 6 RHSC Root Hub Status Change Disable 0 Ignore 1 Disables...

Страница 752: ...nical Reference Manual Publication Release Date Dec 15 2015 752 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 SO Scheduling Overrun Disable 0 Ignore 1 Disables interrupt generation due to Schedul...

Страница 753: ...gister HcHCCA Register Offset R W Description Reset Value HcHCCA OHCI_BA 0x018 R W Host Controller Communication Area Register 0x0000_0000 31 30 29 28 27 26 25 24 HCCA 23 22 21 20 19 18 17 16 HCCA 15...

Страница 754: ...ter HcPerCED Register Offset R W Description Reset Value HcPerCED OHCI_BA 0x01C R W Host Controller Period Current ED Register 0x0000_0000 31 30 29 28 27 26 25 24 PCED 23 22 21 20 19 18 17 16 PCED 15...

Страница 755: ...egister HcCtrHED Register Offset R W Description Reset Value HcCtrHED OHCI_BA 0x020 R W Host Controller Control Head ED Register 0x0000_0000 31 30 29 28 27 26 25 24 CHED 23 22 21 20 19 18 17 16 CHED 1...

Страница 756: ...HcCtrCED Register Offset R W Description Reset Value HcCtrCED OHCI_BA 0x024 R W Host Controller Control Current ED Register 0x0000_0000 31 30 29 28 27 26 25 24 CCED 23 22 21 20 19 18 17 16 CCED 15 14...

Страница 757: ...D Register HcBlkHED Register Offset R W Description Reset Value HcBlkHED OHCI_BA 0x028 R W Host Controller Bulk Head ED Register 0x0000_0000 31 30 29 28 27 26 25 24 BHED 23 22 21 20 19 18 17 16 BHED 1...

Страница 758: ...ister HcBlkCED Register Offset R W Description Reset Value HcBlkCED OHCI_BA 0x02C R W Host Controller Bulk Current ED Register 0x0000_0000 31 30 29 28 27 26 25 24 BCED 23 22 21 20 19 18 17 16 BCED 15...

Страница 759: ...Head Register HcDoneH Register Offset R W Description Reset Value HcDoneH OHCI_BA 0x030 R W Host Controller Done Head Register 0x0000_0000 31 30 29 28 27 26 25 24 DH 23 22 21 20 19 18 17 16 DH 15 14...

Страница 760: ...FSMPS 23 22 21 20 19 18 17 16 FSMPS 15 14 13 12 11 10 9 8 Reserved FI 7 6 5 4 3 2 1 0 FI Bits Description 31 FIT Frame Interval Toggle This bit is toggled by HCD when it loads a new value into FrameIn...

Страница 761: ...erved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved FRT 7 6 5 4 3 2 1 0 FRT Bits Description 31 FR Frame Remaining Toggle Loaded with FrameIntervalToggle when FrameRemaining is loade...

Страница 762: ...on Reset Value HcFNum OHCI_BA 0x03C R Host Controller Frame Number Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 FN 7 6 5 4 3 2 1 0 FN Bi...

Страница 763: ...on Reset Value HcPerSt OHCI_BA 0x040 R W Host Controller Periodic Start Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved PS 7 6 5 4...

Страница 764: ...tten to anything other than 1h but limited adjustment is provided This field should be written to support system implementation This field should always be written to a non zero value 23 13 Reserved R...

Страница 765: ...CHNICAL REFERENCE MANUAL 8 PSM Power Switching Mode Global power switching mode implemented in HYDRA 2 This bit is only valid when NoPowerSwitching is cleared This bit should be written 0 0 Global Swi...

Страница 766: ...r switching This field is only valid if NoPowerSwitching is cleared and PowerSwitchingMode is set individual port switching When set the port only responds to individual port power switching commands...

Страница 767: ...ntIndicator changes Writing a 1 clears this bit Writing a 0 has no effect 16 LPSC Read LocalPowerStatusChange Not supported Always read 0 Write SetGlobalPower Write a 1 issues a SetGlobalPower command...

Страница 768: ...mpleted 0 Port reset is not complete 1 Port reset is complete 19 OCIC Port over Current Indicator Change This bit is set when OverCurrentIndicator changes Writing a 1 clears this bit Writing a 0 has n...

Страница 769: ...ng a 1 sets PortResetStatus Writing a 0 has no effect 3 POCI Read PortOverCurrentIndicator 2 supports global over current reporting This bit reflects the state of the OVRCUR pin dedicated to this port...

Страница 770: ...e When set waits for all USB bus activity to complete prior to returning completion status to the List Processor This is a failsafe mechanism to avoid potential problems with the clk_dr transition bet...

Страница 771: ...unctions concerning the handling of messages are implemented in the Message Handler These functions include acceptance filtering the transfer of messages between the CAN Core and the Message RAM and t...

Страница 772: ...or serial parallel conversion of messages Message RAM Stores Message Objects and Identifier Masks Registers All registers used to control and to configure the C_CAN Message Handler State Machine that...

Страница 773: ...HIGH The Error Management Logic EML counters are unchanged Setting the Init bit does not change any configuration register To initialize the CAN Controller software has to set up the Bit Timing Regist...

Страница 774: ...automatic retransmission of frames that have lost arbitration or have been disturbed by errors during transmission The frame transmission service will not be confirmed to the user before the transmiss...

Страница 775: ...in Loop Back Mode C_CAN CAN_TX CAN_RX CAN_Core Tx Rx Figure 5 24 3 CAN Core in Loop Back Mode This mode is provided for self test functions To be independent from external stimulation the CAN Core ig...

Страница 776: ...message the contents of the shift register is stored into the IF2 Registers without any acceptance filtering Additionally the actual contents of the shift register can be monitored during the message...

Страница 777: ...transmitted through the CAN bus The application software reads received messages and updates messages to be transmitted through the IFn Interface Registers Depending on the configuration the applicati...

Страница 778: ...ANUAL Message RAM Therefore the data transfer from the IFn Registers to the Message RAM requires a read modify write cycle First those parts of the Message Object that are not to be changed are read f...

Страница 779: ...sk Register will be left unchanged Message Transmission 5 24 7 4 If the shift register of the CAN Core cell is ready for loading and if there is no data transfer between the IFn Registers and Message...

Страница 780: ...age RAM is reached If a match occurs the scan is stopped and the Message Handler FSM proceeds depending on the type of frame Data Frame or Remote Frame received Reception of Data Frame The Message Han...

Страница 781: ...The ID17 ID0 can then be disregarded If the TxIE bit is set the IntPnd bit will be set after a successful transmission of the Message Object If the RmtEn bit is set a matching received Remote Frame wi...

Страница 782: ...he received Data Length Code and eight data bytes If the Data Length Code is less than 8 the remaining bytes of the Message Object will be overwritten by unspecified values The Mask Registers Msk28 0...

Страница 783: ...atching to a FIFO Buffer are stored into a Message Object of this FIFO Buffer starting with the Message Object with the lowest message number When a message is stored into a Message Object of a FIFO B...

Страница 784: ...int to the pending interrupt with the highest priority disregarding their chronological order An interrupt remains pending until the START Read Interrupt Pointer Case Interrupt Pointer 0x8000 else 0x0...

Страница 785: ...et The application software has two possibilities to follow the source of a message interrupt First it can follow the IntId in the Interrupt Register and second it can poll the Interrupt Pending Regis...

Страница 786: ...o compensate for edge phase errors Sync_Seg Prop_Seg Phase_Seg1 Phase_Seg2 Normal CAN Bit Time 1 Time Quantum tq Sample Point Figure 5 24 7 Bit Timing Parameter Range Remark BRP 1 32 Defines the lengt...

Страница 787: ...bit transmitted by node B will arrive at node A after the delay B_to_A Due to oscillator tolerances the actual position of node A s Sample Point can be anywhere inside the nominal range of node A s P...

Страница 788: ...is shortened If the magnitude of the phase error is less than SJW Phase_Seg2 is shortened by the magnitude of the phase error else it is shortened by SJW When the magnitude of the phase error of the...

Страница 789: ...Sync_Seg Reacting to the early edge Phase_Seg2 is shortened and Sync_Seg is omitted so that the distance from the edge to the Sample Point is the same as it would have been from an Sync_Seg to the Sam...

Страница 790: ...ion 1 0 was never implemented in silicon The option to synchronize on edges from dominant to recessive became obsolete only edges from recessive to dominant are considered for synchronization The prot...

Страница 791: ...ore instead of values in the range of 1 n values in the range of 0 n 1 are programmed That way e g SJW functional range of 1 4 is represented by only two bits Therefore the length of the bit time is p...

Страница 792: ...erations of the following steps First part of the bit time to be defined is the Prop_Seg Its length depends on the delay times measured in the APB clock A maximum bus length as well as a maximum node...

Страница 793: ...lay of bus driver 50 ns delay of receiver circuit 30 ns delay of bus line 40m 220 ns tProp 600 ns 6 tq tSJW 100 ns 1 tq tTSeg1 700 ns tProp tSJW tTSeg2 200 ns Information Processing Time 1 tq tSync Se...

Страница 794: ...q s 2 tAPB_CLK delay of bus driver 200 ns delay of receiver circuit 80 ns delay of bus line 40m 220 ns tProp 1 q tSJW 4 q tTSeg1 5 Prop tSJW tTSeg2 4 Information Processing Time 3 tq tSync Seg 1 1 tq...

Страница 795: ...0x84 R W IFn Command Mask Registers 0x0000_0000 CAN_IF1_MASK1 CAN_IF2_MASK1 CANx_BA 0x28 CANx_BA 0x88 R W IFn Mask 1 Register 0x0000_FFFF CAN_IF1_MASK2 CAN_IF2_MASK2 CANx_BA 0x2C CANx_BA 0x8C R W IFn...

Страница 796: ...0x0000_0000 CAN_WU_STATUS CANx_BA 0x16C R W Wake up Function Status 0x0000_0000 Note 1 0x00 0br0000000 where r signifies the actual value of the CAN_RX 2 IFn The two sets of Message Interface Registe...

Страница 797: ...eset and the output CAN_TX is set to recessive HIGH The value 0x0001 Init 1 in the CAN Control Register enables the software initialization The C_CAN does not influence the CAN bus until the applicati...

Страница 798: ...US Reserved BOff EWarn EPass RxOk TxOk LEC 08h CAN_ERR RP REC6 0 TEC7 0 0Ch CAN_BTIME Res TSeg2 TSeg1 SJW BRP 10h CAN_IIDR IntId15 8 IntId7 0 14h CAN_TEST Reserved Rx Tx1 Tx0 LBack Silent Basic Reserv...

Страница 799: ...1 Data 1 Data 0 40h CAN_IF1_DAT_ A2 Data 3 Data 2 44h CAN_IF1_DAT_ B1 Data 5 Data 4 48h CAN_IF1_DAT_ B2 Data 7 Data 6 80h CAN_IF2_CREQ Busy Reserved Message Number 84h CAN_IF2_CMAS K Reserved WR RD Ma...

Страница 800: ...AN_TXREQ1 TxRqst16 1 104h CAN_TXREQ2 TxRqst32 17 120h CAN_NDAT1 NewDat16 1 124h CAN_NDAT2 NewDat32 17 140h CAN_IPND1 IntPnd16 1 144h CAN_IPND2 IntPnd32 17 160h CAN_MVLD1 MsgVal16 1 164h CAN_MVLD2 MsgV...

Страница 801: ...scription The C_CAN allocates an address space of 256 bytes The registers are organized as 16 bit registers The two sets of interface registers IF1 and IF2 control the software access to the Message R...

Страница 802: ...t Timing Register 1 Write access to the Bit Timing Register CAN_BTIME CAN_BRP allowed while Init bit 1 5 DAR Automatic Re transmission Disable Control 0 Automatic Retransmission of disturbed messages...

Страница 803: ...Once Init has been cleared by the CPU the device will then wait for 129 occurrences of Bus Idle 129 11 consecutive recessive bits before resuming normal operations At the end of the busoff recovery s...

Страница 804: ...passive state as defined in the CAN Specification 4 RxOK Received a Message Successfully 0 No message has been successfully received since this bit was last reset by the CPU This bit is never reset by...

Страница 805: ...lue 0 but the monitored Bus value was recessive During busoff recovery this status is set each time a sequence of 11 recessive bits has been monitored This enables the CPU to monitor the proceedings o...

Страница 806: ...19 18 17 16 Reserved 15 14 13 12 11 10 9 8 RP REC 6 0 7 6 5 4 3 2 1 0 TEC 7 0 Bits Description 31 16 Reserved Reserved 15 RP Receive Error Passive 0 The Receive Error Counter is below the error passi...

Страница 807: ...x0F valid values for TSeg1 are 1 15 The actual interpretation by the hardware of this value is such that one more than the value programmed is used 7 6 SJW Re Synchronization Jump Width 0x0 0x3 Valid...

Страница 808: ...r chronological order An interrupt remains pending until the application software has cleared it If IntId is different from 0x0000 and IE is set the IRQ interrupt signal to the EIC is active The inter...

Страница 809: ...5 Tx 1 0 Tx 1 0 Control of CAN_TX Pin 00 Reset value CAN_TX is controlled by the CAN Core 01 Sample Point can be monitored at CAN_TX pin 10 CAN_TX pin drives a dominant 0 value 11 CAN_TX pin drives a...

Страница 810: ...ler Extension Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved BRPE Bits Description 31 4 Reserved Reserve...

Страница 811: ...rface Register sets Each set of Interface Registers consists of Message Buffer Registers controlled by their own Command Registers The Command Mask Register specifies the direction of the data transfe...

Страница 812: ...ssage Number Message Number 0x01 0x20 Valid Message Number the Message Object in the Message RAM is selected for data transfer 0x00 Not a valid Message Number interpreted as 0x20 0x21 0x3F Not a valid...

Страница 813: ...n 31 8 Reserved Reserved 7 WR RD Write Read 0 Read Transfer data from the Message Object addressed by the Command Request Register into the selected Message Buffer Registers 1 Write Transfer data from...

Страница 814: ...ask Register bit TxRqst in the IFn Message Control Register will be ignored Access New Data Bit when Direction Read 0 NewDat bit remains unchanged 1 Clear NewDat bit in the Message Object Note A read...

Страница 815: ...28 0x88 R W IFn Mask 1 Registers 0x0000_FFFF 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Msk 15 8 7 6 5 4 3 2 1 0 Msk 7 0 Bits Description 31 16 Reserved Re...

Страница 816: ...e acceptance filtering 1 The extended identifier bit IDE is used for acceptance filtering Note When 11 bit standard Identifiers are used for a Message Object the identifiers of received Data Frames ar...

Страница 817: ...W Description Reset Value CAN_IFn_ARB1 CANx_BA 0x30 0x90 R W IFn Arbitration 1 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 ID 15 8 7 6...

Страница 818: ...ets bit Init in the CAN Control Register This bit must also be reset before the identifier Id28 0 the control bits Xtd Dir or the Data Length Code DLC3 0 are modified or if the Messages Object is no l...

Страница 819: ...ost since last time this bit was reset by the CPU 1 The Message Handler stored a new message into this object when NewDat was still set the CPU has lost a message 13 IntPnd Interrupt Pending 0 This me...

Страница 820: ...Frame has 0 8 data bytes 9 15 Data Frame has 8 data bytes Note The Data Length Code of a Message Object must be defined the same as in all the corresponding objects with the same identifier at other...

Страница 821: ...t R W Description Reset Value CAN_IFn_DAT_A1 CANx_BA 0x3C 0x9C R W IFn Data A1 Registers 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Data 1 7 6...

Страница 822: ...set R W Description Reset Value CAN_IFn_DAT_A2 CANx_BA 0x40 0xA0 R W IFn Data A2 Registers 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Data 3 7...

Страница 823: ...set R W Description Reset Value CAN_IFn_DAT_B1 CANx_BA 0x44 0xA4 R W IFn Data B1 Registers 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Data 5 7...

Страница 824: ...isters 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Data 7 7 6 5 4 3 2 1 0 Data 6 Bits Description 31 16 Reserved Reserved 15 8 Data 7 Data Byte...

Страница 825: ...a Message Object in the Message Memory The Arbitration Registers ID28 0 Xtd and Dir are used to define the identifier and type of outgoing messages and are used together with the mask registers Msk28...

Страница 826: ...e IFn Message Interface Registers or by the Message Handler after reception of a Remote Frame or after a successful transmission Register Offset R W Description Reset Value CAN_TXREQ1 CANx_BA 0x100 R...

Страница 827: ...ransmission Request Register 2 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 TxRqst32 25 7 6 5 4 3 2 1 0 TxRqst24 17 Bits Description 31 16 Reserv...

Страница 828: ...reception of a Data Frame or after a successful transmission Register Offset R W Description Reset Value CAN_NDAT1 CANx_BA 0x120 R New Data Register 1 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23...

Страница 829: ...23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 NewData 32 25 7 6 5 4 3 2 1 0 NewData 24 17 Bits Description 31 16 Reserved Reserved 15 0 NewData 32 17 New Data Bits 32 17 of All Message Objec...

Страница 830: ...essage Interface Registers or by the Message Handler after reception or after a successful transmission of a frame This will also affect the value of IntId in the Interrupt Register Register Offset R...

Страница 831: ...IPND2 CANx_BA 0x144 R Interrupt Pending Register 2 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 IntPnd 32 25 7 6 5 4 3 2 1 0 IntPnd 24 17 Bits De...

Страница 832: ...Interface Registers Register Offset R W Description Reset Value CAN_MVLD1 CANx_BA 0x160 R Message Valid Register 1 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14...

Страница 833: ...5 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 MsgVal 32 25 7 6 5 4 3 2 1 0 MsgVal 24 17 Bits Description 31 16 Reserved Reserved 15 0 MsgVal 32 17 Message Valid Bits 32 17 of Al...

Страница 834: ...U_EN CANx_BA 0x168 R W Wake up Enable Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved WAKUP_EN Bi...

Страница 835: ...cription Reset Value CAN_WU_STATUS CANx_BA 0x16C R W Wake up Status Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1...

Страница 836: ...rt eMMC and NAND type flash and the FMI is cooperated with DMAC to provide a fast data transfer between system memory and cards 5 25 2 Features Support single DMA channel and address in non word bound...

Страница 837: ...ted pin configuration please refer to the register SYS_MFP_GPBL SYS_MFP_GPCL SYS_MFP_GPCH SYS_MFP_GPGL SYS_MFP_GPIL and SYS_MFP_GPIH to know how to configure related pins as the NAND eMMC function Set...

Страница 838: ...face Controller FMI 5 25 5 2 The Flash Memory Interface supports eMMC and NAND type flash FMI is cooperated with DMAC to provide a fast data transfer between system memory and cards There is a single...

Страница 839: ...s triggered eMMC controller will receive response R2 136 bits from eMMC device CRC 7 and end bit will be dropped The receiving data will be placed at DMAC s buffer starting from address offset 0x0 Thi...

Страница 840: ...hm can correct up to 4 bits errors 8 bits errors 12 bits errors 15 bits errors or 24 bits errors By reading ECC_FLD_IF FMI_NANDINTSTS 2 to check the error occurrence while by reading FMI_NANDECCES0 FM...

Страница 841: ...es Redundant Area 64 Bytes Redundant Data Parity Data Redundant Area FMI_NANDRA0 FMI_NANDRA15 Figure 5 25 2 Data Arrangement for 2 kB Page Size NAND Flash Data Area 4096 Bytes Redundant Area Defined b...

Страница 842: ...te Dec 15 2015 842 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Data Area 8192 Bytes Redundant Area Defined by FMI_NANDRACTL Redundant Data Parity Data Redundant Area FMI_NANDRA0 FMI_NANDRAx Figur...

Страница 843: ...MI_BA 0x824 R W eMMC Command Argument Register 0x0000_0000 FMI_EMMCINTEN FMI_BA 0x828 R W eMMC Interrupt Enable Register 0x0000_0000 FMI_EMMCINTST S FMI_BA 0x82C R W eMMC Interrupt Status Register 0x0...

Страница 844: ...Error Byte Address 3 Register 0x0000_0000 FMI_NANDECCE A4 FMI_BA 0x910 R NAND Flash ECC Error Byte Address 4 Register 0x0000_0000 FMI_NANDECCE A5 FMI_BA 0x914 R NAND Flash ECC Error Byte Address 5 Reg...

Страница 845: ...se Date Dec 15 2015 845 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL FMI_NANDECCE D5 FMI_BA 0x974 R NAND Flash ECC Error Data Register 5 0x8080_8080 FMI_NANDRAn n 0 1 117 FMI_BA 0xA00 0x4 n R W NA...

Страница 846: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 846 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 25 7 Register Description...

Страница 847: ...for FMI Enable DMA scatter gather function or not 0 Normal operation DMAC will treat the starting address in FMI_DMASA as starting pointer of a single block memory 1 Enable scatter gather operation DM...

Страница 848: ...d will be interpreted as a starting address of Physical Address Descriptor PAD table 0 ORDER Determined to the PAD Table Fetching Is in Order or Out of Order 0 PAD table is fetched in order 1 PAD tabl...

Страница 849: ...eched next PAD tables sequentially if ORDER FMI_DMASA 0 set as low FMI fetehced next PAD tables based on the Next Descriptor Physical Base Address of PAD table if ORDER FMI_DMASA 0 set as high PAD Tab...

Страница 850: ...e FMI_DMABCNT FMI_BA 0x40C R FMI DMA Transfer Byte Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved BCNT 23 22 21 20 19 18 17 16 BCNT 15 14 13 12 11 10 9 8 BCNT 7 6 5 4 3 2 1 0 BCNT Bits De...

Страница 851: ...24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved WEOT_IE TABORT_IE Bits Description 31 2 Reserved Reserved 1 WEOT_IE Wrong EOT Encountered Interrupt...

Страница 852: ...transfer finished that means the total sector count of all PAD is less than the sector count of FMI this bit will be set 0 No EOT encountered before DMA transfer finished 1 EOT encountered before DMA...

Страница 853: ..._EN SW_RST Bits Description 31 4 Reserved Reserved 3 NAND_EN NAND Flash Functionality Enable 0 Disable NAND flash functionality of FMI 1 Enable NAND flash functionality of FMI 2 Reserved Reserved 1 eM...

Страница 854: ...I_INTEN FMI_BA 0x804 R W FMI Interrupt Enable Register 0x0000_0001 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved DTA_IE Bits...

Страница 855: ...11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved DTA_IF Bits Description 31 1 Reserved Reserved 0 DTA_IF DMAC READ WRITE Target Abort Interrupt Flag Read Only This bit indicates DMAC received an ERROR res...

Страница 856: ...K_CNT Block Counts to Be Transferred or Received This field contains the block counts for data in and data out transfer For READ_MULTIPLE_BLOCK and WRITE_MULTIPLE_BLOCK command using this function to...

Страница 857: ...rite 0 to this bit the controller will be abnormal 3 DO_EN Data Output Enable 0 No effect Please use SW_RST FMI_EMMCCTL 14 to clear this bit 1 Enable eMMC host will transfer block data and the CRC 16...

Страница 858: ...D FMI_BA 0x824 R W eMMC Command Argument Register 0x0000_0000 31 30 29 28 27 26 25 24 CMDARG 23 22 21 20 19 18 17 16 CMDARG 15 14 13 12 11 10 9 8 CMDARG 7 6 5 4 3 2 1 0 CMDARG Bits Description 31 0 CM...

Страница 859: ...rrupts generation of eMMC controller when data input time out Time out value is specified at FMI_EMMCTMOUT 0 Disable 1 Enable 12 RITO_IE Response Time out Interrupt Enable Enable Disable interrupts ge...

Страница 860: ...en receiving data waiting start bit 0 Not time out 1 Data input time out NOTE This bit is read only but can be cleared by writing 1 to it 12 RITO_IF Response Time out Interrupt Flag Read Only This bit...

Страница 861: ...esponse in data in or data out CRC status error transfer When CRC error is occurred it s necessary to reset eMMC engine Some response ex R3 doesn t have CRC 7 information with it However eMMC host wil...

Страница 862: ...0 FMI_BA 0x830 R eMMC Receiving Response Token Register 0 0x0000_0000 31 30 29 28 27 26 25 24 RESPONSE 23 22 21 20 19 18 17 16 RESPONSE 15 14 13 12 11 10 9 8 RESPONSE 7 6 5 4 3 2 1 0 RESPONSE Bits Des...

Страница 863: ...0x834 R eMMC Receiving Response Token Register 1 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 RESPONSE Bits Description...

Страница 864: ...838 R W eMMC Block Length Register 0x0000_01FF 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved BLK_LENGTH 7 6 5 4 3 2 1 0 BLK_LENGTH Bits Description 3...

Страница 865: ...18 17 16 TIMEOUT 15 14 13 12 11 10 9 8 TIMEOUT 7 6 5 4 3 2 1 0 TIMEOUT Bits Description 31 24 Reserved Reserved 23 0 TIMEOUT eMMC Response Data in Time out Value A 24 bit value specifies the time out...

Страница 866: ...hip Select 1 Enable 0 Chip select 1 enable 1 Chip select 1 disable 25 CS0 NAND Flash Chip Select 0 Enable 0 Chip select 0 enable 1 Chip select 0 disable 24 Reserved Reserved 23 ECC_EN ECC Algorithm En...

Страница 867: ...ot be cleared This bit will be auto cleared after few clock cycles 8 PROT_3BEN Protect_3Byte Software Data Enable The ECC algorithm only protects data area and hardware ECC parity code User can choose...

Страница 868: ...me buffer into NAND Flash or NAND type flash 0 No effect 1 Enable DMA write data transfer NOTE When DMA transfer completed this bit will be cleared automatically 1 DRD_EN DMA Read Data Enable This bit...

Страница 869: ...time can be calculated using following equation tCLS CALE_SH 1 TAHB tCLH CALE_SH 2 2 TAHB tALS CALE_SH 1 TAHB tALH CALE_SH 2 2 TAHB 15 8 HI_WID Read Write Enable Signal High Pulse Width This field co...

Страница 870: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 870 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Timing Controlled by FMI_NANDTMCTL Register...

Страница 871: ...R B rising edge detect interrupt generation 10 RB0_IE Ready Busy Rising Edge Detect Interrupt Enable 0 Disable R B rising edge detect interrupt generation 1 Enable R B rising edge detect interrupt ge...

Страница 872: ...he Ready Busy pin status of NAND Flash 18 RB0_Status Ready Busy 0 Pin Status Read Only This bit reflects the Ready Busy pin status of NAND Flash 17 12 Reserved Reserved 11 RB1_IF Ready Busy 1 Rising E...

Страница 873: ...field 512bytes of data transfer Read this bit to check if the error occurred 0 No occurrence of ECC error 1 Occurrence of ECC error NOTE This bit is read only but can be cleared by writing 1 to it 1 R...

Страница 874: ...er Offset R W Description Reset Value FMI_NANDCM D FMI_BA 0x8B0 W NAND Flash Command Port Register 0xXXXX_XXXX 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 R...

Страница 875: ...14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 ADDRESS Bits Description 31 EOA End of Address Writing this bit to indicate if this address is the last one or not By writing address port with this bit lo...

Страница 876: ...AND Flash Data Port Register 0xXXXX_XXXX 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 DATA Bits Description 31 8 Reserved Reserved 7...

Страница 877: ...and write out FF to NAND ECC parity for 512 Bytes page size or 2K 4K 8K page size first 512 field 0x02 Mask ECC parity and write out FF to NAND ECC parity for 512 Bytes page size or 2K 4K 8K page size...

Страница 878: ...sh Extend Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved WP Bits Description 31 1 Reserved Reser...

Страница 879: ...For this ECC core BCH algorithm only when F4_STAT equals to 0x01 the value in this field is meaningful F4_ECNT means how many errors depending on which ECC is used 25 24 F4_STAT ECC Status of Field 4...

Страница 880: ...f Field 2 This field contains the ECC correction status BCH algorithm of ECC field 2 00 No error 01 Correctable error 10 Uncorrectable error 11 Reserved 7 Reserved Reserved 6 2 F1_ECNT Error Count of...

Страница 881: ...For this ECC core BCH algorithm only when F8_STAT equals to 0x01 the value in this field is meaningful F8_ECNT means how many errors depending on which ECC is used 25 24 F8_STAT ECC Status of Field 8...

Страница 882: ...of Field 6 This field contains the ECC correction status BCH algorithm of ECC field 6 00 No error 01 Correctable error 10 Uncorrectable error 11 Reserved 7 Reserved Reserved 6 2 F5_ECNT Error Count of...

Страница 883: ...r this ECC core BCH algorithm only when F12_STAT equals to 0x01 the value in this field is meaningful F12_ECNT means how many errors depending on which ECC is used 25 24 F12_STAT ECC Status of Field 1...

Страница 884: ...of Field 10 This field contains the ECC correction status BCH algorithm of ECC field 10 00 No error 01 Correctable error 10 Uncorrectable error 11 Reserved 7 Reserved Reserved 6 2 F9_ECNT Error Count...

Страница 885: ...or this ECC core BCH algorithm only when F16_STAT equals to 0x01 the value in this field is meaningful F16_ECNT means how many errors depending on which ECC is used 25 24 F16_STAT ECC Status of Field...

Страница 886: ...Field 14 This field contains the ECC correction status BCH algorithm of ECC field 14 00 No error 01 Correctable error 10 Uncorrectable error 11 Reserved 7 Reserved Reserved 6 2 F13_ECNT Error Count of...

Страница 887: ...0 FMI_BA 0x8E0 R W NAND Flash Protect Region End Address 0 Register 0x0000_0000 31 30 29 28 27 26 25 24 ADDR 23 22 21 20 19 18 17 16 ADDR 15 14 13 12 11 10 9 8 ADDR 7 6 5 4 3 2 1 0 ADDR Bits Descripti...

Страница 888: ...W NAND Flash Protect Region End Address 1 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 ADDR Bits Description 31...

Страница 889: ...15 14 13 12 11 10 9 8 Reserved ERR_ADDR0 7 6 5 4 3 2 1 0 ERR_ADDR0 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR1 ECC Error Address First Field of Error 1 This field contains an 11 bit ECC...

Страница 890: ...15 14 13 12 11 10 9 8 Reserved ERR_ADDR2 7 6 5 4 3 2 1 0 ERR_ADDR2 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR3 ECC Error Address First Field of Error 3 This field contains an 11 bit ECC e...

Страница 891: ...15 14 13 12 11 10 9 8 Reserved ERR_ADDR4 7 6 5 4 3 2 1 0 ERR_ADDR4 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR5 ECC Error Address First Field of Error 5 This field contains an 11 bit ECC...

Страница 892: ...5 14 13 12 11 10 9 8 Reserved ERR_ADDR6 7 6 5 4 3 2 1 0 ERR_ADDR6 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR7 ECC Error Address First Field of Error 7 This field contains an 11 bit ECC er...

Страница 893: ...15 14 13 12 11 10 9 8 Reserved ERR_ADDR8 7 6 5 4 3 2 1 0 ERR_ADDR8 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR9 ECC Error Address First Field of Error 9 This field contains an 11 bit ECC...

Страница 894: ...4 13 12 11 10 9 8 Reserved ERR_ADDR10 7 6 5 4 3 2 1 0 ERR_ADDR10 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR11 ECC Error Address First Field of Error 11 This field contains an 11 bit ECC e...

Страница 895: ...14 13 12 11 10 9 8 Reserved ERR_ADDR12 7 6 5 4 3 2 1 0 ERR_ADDR12 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR13 ECC Error Address First Field of Error 13 This field contains an 11 bit ECC...

Страница 896: ...4 13 12 11 10 9 8 Reserved ERR_ADDR14 7 6 5 4 3 2 1 0 ERR_ADDR14 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR15 ECC Error Address First Field of Error 15 This field contains an 11 bit ECC e...

Страница 897: ...14 13 12 11 10 9 8 Reserved ERR_ADDR16 7 6 5 4 3 2 1 0 ERR_ADDR16 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR17 ECC Error Address First Field of Error 17 This field contains an 11 bit ECC...

Страница 898: ...4 13 12 11 10 9 8 Reserved ERR_ADDR18 7 6 5 4 3 2 1 0 ERR_ADDR18 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR19 ECC Error Address First Field of Error 19 This field contains an 11 bit ECC e...

Страница 899: ...5 14 13 12 11 10 9 8 Reserved ERR_ADDR20 7 6 5 4 3 2 1 0 ERR_ADDR20 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR21 ECC Error Address First Field of Error 21 This field contains an 11 bit EC...

Страница 900: ...14 13 12 11 10 9 8 Reserved ERR_ADDR22 7 6 5 4 3 2 1 0 ERR_ADDR22 Bits Description 31 27 Reserved Reserved 26 16 ERR_ADDR23 ECC Error Address First Field of Error 23 This field contains an 11 bit ECC...

Страница 901: ...23 16 ERR_DATA2 ECC Error Data of First Field 2 This field contains an 8 bit BCH ECC error data 2 of first field If it is a correctable error please read out the error data in this field and doing bit...

Страница 902: ...23 16 ERR_DATA6 ECC Error Data of First Field 6 This field contains an 8 bit BCH ECC error data 6 of first field If it is a correctable error please read out the error data in this field and doing bit...

Страница 903: ...23 16 ERR_DATA10 ECC Error Data of First Field 10 This field contains an 8 bit BCH ECC error data 10 of first field If it is a correctable error please read out the error data in this field and doing...

Страница 904: ...16 ERR_DATA14 ECC Error Data of First Field 14 This field contains an 8 bit BCH ECC error data 14 of first field If it is a correctable error please read out the error data in this field and doing bi...

Страница 905: ...16 ERR_DATA18 ECC Error Data of First Field 18 This field contains an 8 bit BCH ECC error data 18 of first field If it is a correctable error please read out the error data in this field and doing bi...

Страница 906: ...16 ERR_DATA22 ECC Error Data of First Field 22 This field contains an 8 bit BCH ECC error data 22 of first field If it is a correctable error please read out the error data in this field and doing bit...

Страница 907: ...of SD SDHC SDIO The SDH controller supports SD SDHC SDIO card and cooperates with DMAC to provide a fast data transfer between system memory and cards 5 26 2 Features Supports single DMA channel Supp...

Страница 908: ..._DMACTL 0 to enable DMACand SGEN SDH_DMACTL 3 to enable Scatter Gather function 2 Fill corresponding starting address of Physical Address Descriptor PAD table in SDH_DMASA 3 When bit 0 of SDH_DMASA is...

Страница 909: ...2_EN SDH_CTL 4 and then CLK8_OE SDH_CTL 6 Please note that RI_EN SDH_CTL 1 and R2_EN SDH_CTL 4 can t be triggered at the same time For data part there are DI_EN SDH_CTL 2 and DO_EN SDH_CTL 3 for choos...

Страница 910: ...r 0x0000_0000 SDH_GCTL SDH_BA 0x800 R W SD Host Global Control and Status Register 0x0000_0000 SDH_GINTEN SDH_BA 0x804 R W SD Host Global Interrupt Control Register 0x0000_0001 SDH_GINTSTS SDH_BA 0x80...

Страница 911: ...ress 8 4 Reserved Reserved 3 SGEN Scatter gather Function Enable 0 Scatter gather function Disabled DMA will treat the starting address in SDH_DMASA as starting pointer of a single block memory 1 Scat...

Страница 912: ...Address Descriptor PAD table 0 ORDER Determined to the PAD Table Fetching Is in Order or Out of Order 0 PAD table is fetched in order 1 PAD table is fetched out of order Note the bit 0 is valid in sc...

Страница 913: ...SDH_DMASA 0 set as low SDH fetehced next PAD tables based on the Next Descriptor Physical Base Address of PAD table if ORDER SDH_DMASA 0 set as high PAD Table 1 System Memory ORDER 0 PAD Table 2 PAD T...

Страница 914: ...e SDH_DMABCNT SDH_BA 0x40C R SD Host DMA Transfer Byte Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved BCNT 23 22 21 20 19 18 17 16 BCNT 15 14 13 12 11 10 9 8 BCNT 7 6 5 4 3 2 1 0 BCNT Bit...

Страница 915: ...0 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved WEOT_IE TABORT_IE Bits Description 31 2 Reserved Reserved 1 WEOT_IE Wrong EOT End of Transfer Encountered Interrupt Enabl...

Страница 916: ...iptor is encountered before DMA transfer finished that means the total sector count of all PAD is less than the sector count of FMI this bit will be set 0 No EOT encountered before DMA transfer finish...

Страница 917: ...31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved SDEN GCTLRST Bits Description 31 2 Reserved Reserved 1 SDEN Secure digital Fu...

Страница 918: ...H_GINTEN SDH_BA 0x804 R W SD Host Global Interrupt Control Register 0x0000_0001 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserve...

Страница 919: ...15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved DTA_IF Bits Description 31 1 Reserved Reserved 0 DTA_IF DMAC READ WRITE Target Abort Interrupt Flag Read Only This bit indicates DMA received a...

Страница 920: ...NWR Parameter for Block Write Operation This value indicates the NWR parameter for data block write operation in SD clock counts The actual clock cycle will be SDNWR 1 23 16 BLK_CNT Block Counts to Be...

Страница 921: ...response data into DMAC s flash buffer exclude CRC 7 NOTE When operation is finished this bit will be cleared automatically so don t write 0 to this bit the controller will be abnormal 3 DO_EN Data Ou...

Страница 922: ...A 0x824 R W SD Host Command Argument Register 0x0000_0000 31 30 29 28 27 26 25 24 SD_CMD_ARG 23 22 21 20 19 18 17 16 SD_CMD_ARG 15 14 13 12 11 10 9 8 SD_CMD_ARG 7 6 5 4 3 2 1 0 SD_CMD_ARG Bits Descrip...

Страница 923: ...1 From SD port 1 card detection pin the pin SD1_nCD 30 CD0SRC SD Port 0 Card Detect Source Selection 0 From SD port 0 data bit 3 the pin SD0_DAT3 Host need clock to got data on pin SD0_DAT3 Please mak...

Страница 924: ...inserted or removed 0 Disable 1 Enable 8 CD0_IE SD0 Card Detection Interrupt Enable Enable Disable interrupts generation of SD controller when card 0 is inserted or removed 0 Disable 1 Enable 7 2 Rese...

Страница 925: ...tus of SD port 0 17 CDPS1 Card Detect Status of SD1 Read Only This bit is the card detect pin status of SD1 and it is using for card detection When there is a card inserted in or removed from SD1 soft...

Страница 926: ...ost This interrupt is designed to level sensitive Before clear it turn off SDIO0_IE SDH_INTEN 10 first 0 No interrupt is issued by SDIO card 0 1 an interrupt is issued by SDIO card 0 NOTE This bit is...

Страница 927: ...ring response in data in or data out CRC status error transfer When CRC error is occurred software should reset SD engine Some response ex R3 doesn t have CRC 7 information with it SD host will still...

Страница 928: ...DH_BA 0x830 R SD Host Receiving Response Token Register 0 0x0000_0000 31 30 29 28 27 26 25 24 SD_RSP_TK0 23 22 21 20 19 18 17 16 SD_RSP_TK0 15 14 13 12 11 10 9 8 SD_RSP_TK0 7 6 5 4 3 2 1 0 SD_RSP_TK0...

Страница 929: ...SP1 SDH_BA 0x834 R SD Host Receiving Response Token Register 1 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 SD_RSP_TK1 B...

Страница 930: ...H_BA 0x838 R W SD Host Block Length Register 0x0000_01FF 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved BLKLEN 7 6 5 4 3 2 1 0 BLKLEN Bits Description...

Страница 931: ...1 20 19 18 17 16 TMOUT 15 14 13 12 11 10 9 8 TMOUT 7 6 5 4 3 2 1 0 TMOUT Bits Description 31 24 Reserved Reserved 23 0 TMOUT SD Response Data in Time out Value A 24 bit value specifies the time out co...

Страница 932: ...erved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved PWROFF1 PWROFF0 Bits Description 31 2 Reserved Reserved 1 PWROFF1 SD Port 1 Power Disable Set this bit lo...

Страница 933: ...ption decryption algorithm The DES TDES accelerator supports ECB CBC CFB OFB and CTR mode The SHA accelerator is an implementation fully compliant with the SHA 160 SHA 224 SHA 256 SHA 384 and SHA 512...

Страница 934: ...0 2 Supports HMAC SHA 160 HMAC SHA 224 HMAC SHA 256 HMAC SHA 384 and HMAC SHA 512 5 27 3 Block Diagram Figure 5 27 1 Cryptographic Accelerator Block Diagram 5 27 4 Basic Configuration Before using cry...

Страница 935: ...A mode Once DMA source address register destination address register and byte count register are configurated by CPU moving data from and to accelerator is done by DMA logic totally This mode can off...

Страница 936: ...he chip powers up 3 Configure PRNG control register CRPT_PRNG_CTL 4 Software checks BUSY CRPT_PRNG_CTL 8 until it comes to 0 or waits for the PRNG done interrupt must enable the corresponding interrup...

Страница 937: ...iven key If this property is undesirable in a particular application the ECB mode should not be used Cipher Block Chaining Mode The Cipher Block Chaining CBC mode is a confidentiality mode whose encry...

Страница 938: ...CFB The Cipher Feedback CFB mode is a confidentiality mode that features the feedback of successive ciphertext segments into the input blocks of the forward cipher to generate output blocks that are...

Страница 939: ...vice versa The OFB mode requires that the IV is a nonce i e the IV must be unique for each execution of the mode under the given key The OFB mode requires a unique IV for every message that is ever e...

Страница 940: ...the forward cipher to a set of input blocks called counters to produce a sequence of output blocks that are exclusive ORed with the plaintext to produce the ciphertext and vice versa The sequence of...

Страница 941: ...1 30 NUC970 TECHNICAL REFERENCE MANUAL Figure 5 27 7 Counter Mode CBC Ciphertext Stealing 1 Mode CBC CS1 The figure below illustrates the CBC CS1 Encrypt algorithm for the case that Pn is a partial bl...

Страница 942: ...UAL Figure 5 27 8 CBC CS1 Encryption The figure below illustrates the CBC CS1 Decrypt algorithm for the case that Cn 1 is a partial block Figure 5 27 9 CBC CS1 Decryption CBC Ciphertext Stealing 2 Mod...

Страница 943: ...ption decryption 11 Waits for the AES interrupt flag AESIF CRPT_INTSTS 0 be set 12 Read output data from DMA destination address with selected DMA byte count 13 Repeat step 9 to step 12 until all data...

Страница 944: ...n_KEY3L where n is the selected channel number 4 Program initial vector to registers CRPT_TDESn_IVH and CRPT_TDESn_IVL 5 Configure TDES control register CRPT_TDES_CTL for channel selection encryption...

Страница 945: ...is a specific construction for calculating a message authentication code involving a cryptographic hash function in combination with a secret cryptographic key Any cryptographic hash function such as...

Страница 946: ...data input request DATINREQ CRPT_HMAC_STS 16 be set 5 Write one word of input data to CRPT_HMAC_DATIN 6 Repeat step 2 to 5 until all inut words are written into SHA engine 7 Waits for the BUSY CRPT_HM...

Страница 947: ...050 R AES Engine Output Feedback Data after Cryptographic Operation 0x0000_0000 CRPT_AES_FDBCK1 CRYP_BA 0x054 R AES Engine Output Feedback Data after Cryptographic Operation 0x0000_0000 CRPT_AES_FDBCK...

Страница 948: ...3 Register for Channel 1 0x0000_0000 CRPT_AES1_KEY4 CRYP_BA 0x15C R W AES Key Word 4 Register for Channel 1 0x0000_0000 CRPT_AES1_KEY5 CRYP_BA 0x160 R W AES Key Word 5 Register for Channel 1 0x0000_0...

Страница 949: ...0x1DC R W AES Key Word 6 Register for Channel 3 0x0000_0000 CRPT_AES3_KEY7 CRYP_BA 0x1E0 R W AES Key Word 7 Register for Channel 3 0x0000_0000 CRPT_AES3_IV0 CRYP_BA 0x1E4 R W AES Initial Vector Word 0...

Страница 950: ..._TDES1_IVH CRYP_BA 0x260 R W TDES DES Initial Vector High Word Register for Channel 1 0x0000_0000 CRPT_TDES1_IVL CRYP_BA 0x264 R W TDES DES Initial Vector Low Word Register for Channel 1 0x0000_0000 C...

Страница 951: ...TDES DES Byte Count Register for Channel 3 0x0000_0000 CRPT_HMAC_CTL CRYP_BA 0x300 R W SHA HMAC Control Register 0x0000_0000 CRPT_HMAC_STS CRYP_BA 0x304 R SHA HMAC Status Flag 0x0000_0000 CRPT_HMAC_DG...

Страница 952: ...UC970 TECHNICAL REFERENCE MANUAL CRPT_HMAC_SADDR CRYP_BA 0x34C R W SHA HMAC DMA Source Address Register 0x0000_0000 CRPT_HMAC_DMACNT CRYP_BA 0x350 R W SHA HMAC Byte Count Register 0x0000_0000 CRPT_HMA...

Страница 953: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 953 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 27 7 Register Description Crypto Register 5 27 7 1...

Страница 954: ...upt Enable Control 0 SHA HMAC interrupt Disabled 1 SHA HMAC interrupt Enabled In DMA mode an interrupt will be triggered when amount of data set in SHA _DMA_CNT is fed into the SHA HMAC engine In Non...

Страница 955: ...rol 0 AES error interrupt flag Disabled 1 AES error interrupt flag Enabled 0 AESIEN AES Interrupt Enable Control 0 AES interrupt Disabled 1 AES interrupt Enabled In DMA mode an interrupt will be trigg...

Страница 956: ...gister This bit is cleared by writing 1 and it has no effect by writing 0 0 No SHA HMAC error 1 SHA HMAC error interrupt 24 HMACIF SHA HMAC Finish Interrupt Flag This bit is cleared by writing 1 and i...

Страница 957: ...by writing 0 0 No TDES DES interrupt 1 TDES DES encryption decryption done interrupt 7 2 Reserved Reserved 1 AESEIF AES Error Flag This bit is cleared by writing 1 and it has no effect by writing 0 0...

Страница 958: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 958 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL PRNG Register 5 27 7 2...

Страница 959: ...USY 7 6 5 4 3 2 1 0 Reserved KEYSZ SEEDRLD START Bits Description 31 9 Reserved Reserved 8 BUSY PRNG Busy Read Only 0 PRNG engine is idle 1 Indicate that the PRNG engine is generating CRPT_PRNG_KEYx 7...

Страница 960: ...G Seed Register CRPT_PRNG_SEED Register Offset R W Description Reset Value CRPT_PRNG_SEED CRYP_BA 0x00C W Seed for PRNG Undefined 31 30 29 28 27 26 25 24 SEED 23 22 21 20 19 18 17 16 SEED 15 14 13 12...

Страница 961: ...18 R PRNG Generated Key2 Undefined CRPT_PRNG_KEY3 CRYP_BA 0x01C R PRNG Generated Key3 Undefined CRPT_PRNG_KEY4 CRYP_BA 0x020 R PRNG Generated Key4 Undefined CRPT_PRNG_KEY5 CRYP_BA 0x024 R PRNG Generat...

Страница 962: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 962 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL AES Register 5 27 7 3...

Страница 963: ...UNPRT And the key content would be cleared as well 30 26 KEYUNPRT Unprotect Key Writing 0 to CRPT_AES_CTL 31 and 10110 to CRPT_AES_CTL 30 26 is to unprotect the AES key The KEYUNPRT can be read and wr...

Страница 964: ...h Cascade Mode 0 DMA cascade function Disabled 1 In DMA cascade mode software can update DMA source address register destination address register and byte count register during a cascade operation wit...

Страница 965: ...than 8 words It writes 8 words to Inputbuffer 5 R8 The amount of output data in output buffer is more than 8 words It reads 8 words out 6 W4 The amount of data in Inbuffer is less than 12 words and t...

Страница 966: ...engine 19 Reserved Reserved 18 OUTBUFERR AES Out Buffer Error Flag 0 No error 1 Error happens during getting the result from AES engine 17 OUTBUFFULL AES Out Buffer Full Flag 0 AES output buffer is no...

Страница 967: ...d the data into the AES engine 1 AES input buffer is full Software cannot feed data to the AES engine Otherwise the flag INBUFERR will be set to 1 8 INBUFEMPTY AES Input Buffer Empty 0 There are some...

Страница 968: ...Offset R W Description Reset Value CRPT_AES_DATIN CRYP_BA 0x108 R W AES Engine Data Input Port Register 0x0000_0000 31 30 29 28 27 26 25 24 DATIN 23 22 21 20 19 18 17 16 DATIN 15 14 13 12 11 10 9 8 D...

Страница 969: ...R W Description Reset Value CRPT_AES_DATOUT CRYP_BA 0x10C R AES Engine Data Output Port Register 0x0000_0000 31 30 29 28 27 26 25 24 DATOUT 23 22 21 20 19 18 17 16 DATOUT 15 14 13 12 11 10 9 8 DATOUT...

Страница 970: ...0x160 R W AES Key Word 5 Register for Channel 1 0x0000_0000 CRPT_AES1_KEY6 CRYP_BA 0x164 R W AES Key Word 6 Register for Channel 1 0x0000_0000 CRPT_AES1_KEY7 CRYP_BA 0x168 R W AES Key Word 7 Register...

Страница 971: ...y key for AES accelerator can be 128 192 or 256 bits and four six or eight 32 bit registers are to store each security key CRPT_AESn_KEY3 CRPT_AESn_KEY2 CRPT_AESn_KEY1 CRPT_AESn_KEY0 stores the 128 bi...

Страница 972: ...l 1 0x0000_0000 CRPT_AES2_IV0 CRYP_BA 0x1A8 R W AES Initial Vector Word 0 Register for Channel 2 0x0000_0000 CRPT_AES2_IV1 CRYP_BA 0x1AC R W AES Initial Vector Word 1 Register for Channel 2 0x0000_000...

Страница 973: ...0 9 8 SADDR 7 6 5 4 3 2 1 0 SADDR Bits Description 31 0 SADDR AES DMA Source Address The AES accelerator supports DMA function to transfer the plain text between system memory and embedded FIFO The SA...

Страница 974: ...5 4 3 2 1 0 DADDR Bits Description 31 0 DADDR AES DMA Destination Address The AES accelerator supports DMA function to transfer the cipher text between system memory and embedded FIFO The DADDR keeps...

Страница 975: ...Sn_CNT keeps the byte count of source text that is for the AES engine operating in DMA mode The CRPT_AESn_CNT is 32 bit and the maximum of byte count is 4G bytes CRPT_AESn_CNT can be read and written...

Страница 976: ...e Output Feedback Data after Cryptographic Operation 0x0000_0000 31 30 29 28 27 26 25 24 FDBCK 23 22 21 20 19 18 17 16 FDBCK 15 14 13 12 11 10 9 8 FDBCK 7 6 5 4 3 2 1 0 FDBCK Bits Description 31 0 FDB...

Страница 977: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 977 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL TDES DES Register 5 27 7 4...

Страница 978: ...cleared by asserting KEYUNPRT The key content would be cleared as well 30 26 KEYUNPRT Unprotect Key Writing 0 to CRPT_TDES_CTL 31 and 10110 to CRPT_TDES_CTL 30 26 is to unprotect TDES key The KEYUNPRT...

Страница 979: ...operates in Non DMA mode and get data from the port CRPT_TDES_DATIN 1 TDES_DMA engine Enabled TDES engine operates in DMA mode and data movement from to the engine is done by DMA logic 6 DMACSCAD TDE...

Страница 980: ...al Publication Release Date Dec 15 2015 980 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 START TDES DES Engine Start 0 No effect 1 Start TDES DES engine The flag BUSY would be set Note The bit i...

Страница 981: ...DES DES engine 19 Reserved Reserved 18 OUTBUFERR TDES DES Out Buffer Error Flag 0 No error 1 Error happens during getting test result from TDES DES engine 17 OUTBUFFULL TDES DES Output Buffer Full Fla...

Страница 982: ...are cannot feed data to the TDES DES engine Otherwise the flag INBUFERR will be set to 1 8 INBUFEMPTY TDES DES in Buffer Empty 0 There are some data in input buffer waiting for the TDES DES engine to...

Страница 983: ...DES1_KEY3H CRYP_BA 0x258 R W TDES Key 3 High Word Register for Channel 1 0x0000_0000 CRPT_TDES1_KEY3L CRYP_BA 0x25C R W TDES Key 3 Low Word Register for Channel 1 0x0000_0000 CRPT_TDES2_KEY1H CRYP_BA...

Страница 984: ...EYH KEYL TDES DES Key High Low Word The key registers for TDES DES algorithm calculation The security key for the TDES DES accelerator is 64 bits Thus it needs two 32 bit registers to store a security...

Страница 985: ...YP_BA 0x264 R W TDES DES Initial Vector Low Word Register for Channel 1 0x0000_0000 CRPT_TDES2_IVH CRYP_BA 0x2A0 R W TDES DES Initial Vector High Word Register for Channel 2 0x0000_0000 CRPT_TDES2_IVL...

Страница 986: ...DDR Bits Description 31 0 SADDR TDES DES DMA Source Address The TDES DES accelerator supports DMA function to transfer the plain text between system memory and embedded FIFO The CRPT_TDESn_SADDR keeps...

Страница 987: ...ion 31 0 TDES_DADR TDES DES DMA Destination Address The TDES DES accelerator supports DMA function to transfer the cipher text between system memory and embedded FIFO The CRPT_TDESn_DADDR keeps the de...

Страница 988: ...l 3 0x0000_0000 31 30 29 28 27 26 25 24 CNT 23 22 21 20 19 18 17 16 CNT 15 14 13 12 11 10 9 8 CNT 7 6 5 4 3 2 1 0 CNT Bits Description 31 0 CNT TDES DES Byte Count The CRPT_TDESn_CNT keeps the byte co...

Страница 989: ...t R W Description Reset Value CRPT_TDES_DATIN CRYP_BA 0x234 R W TDES DES Engine Input data Word Register 0x0000_0000 31 30 29 28 27 26 25 24 DATIN 23 22 21 20 19 18 17 16 DATIN 15 14 13 12 11 10 9 8 D...

Страница 990: ...Description Reset Value CRPT_TDES_DATOUT CRYP_BA 0x238 R TDES DES Engine Output data Word Register 0x0000_0000 31 30 29 28 27 26 25 24 DATOUT 23 22 21 20 19 18 17 16 DATOUT 15 14 13 12 11 10 9 8 DATOU...

Страница 991: ...14 13 12 11 10 9 8 FDBCK 7 6 5 4 3 2 1 0 FDBCK Bits Description 31 0 FDBCK TDES DES Feedback The feedback value is 64 bits in size The TDES DES engine uses the data from CRPT_TDES_FDBCKH CRPT_TDES_FDB...

Страница 992: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 992 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL SHA HMAC Register 5 27 7 5...

Страница 993: ...at CPU feeds data to the accelerator will be changed from byte3 byte2 byte1 byte0 to byte0 byte1 byte2 byte3 22 OUTSWAP SHA HMAC Engine Output Data Swap 0 Keep the original order 1 The order that CPU...

Страница 994: ...m to the engine is done by DMA logic 6 Reserved Reserved 5 DMALAST SHA HMAC Last Block In DMA mode this bit must be set as beginning the last DMA cascade round In Non DMA mode this bit must be set as...

Страница 995: ...16 Reserved Reserved 16 DATINREQ SHA HMAC Non dMA Mode Data Input Request 0 No effect 1 Request SHA HMAC Non DMA mode data input 15 CMPSTS SHA HMAC Output Digest Compare Result with MTP Key 0 SHA HMAC...

Страница 996: ...0x0000_0000 CRPT_HMAC_DGS T6 CRYP_BA 0x320 R SHA HMAC Digest Message 6 0x0000_0000 CRPT_HMAC_DGS T7 CRYP_BA 0x324 R SHA HMAC Digest Message 7 0x0000_0000 CRPT_HMAC_DGS T8 CRYP_BA 0x328 R SHA HMAC Dig...

Страница 997: ...st Message Output Register For SHA 160 the digest is stored in CRPT_HMAC_DGST0 CRPT_HMAC_DGST4 For SHA 224 the digest is stored in CRPT_HMAC_DGST0 CRPT_HMAC_DGST6 For SHA 256 the digest is stored in C...

Страница 998: ...7 16 KEYCNT 15 14 13 12 11 10 9 8 KEYCNT 7 6 5 4 3 2 1 0 KEYCNT Bits Description 31 0 KEYCNT SHA HMAC Key Byte Count The CRPT_HMAC_KEYCNT keeps the byte count of key that SHA HMAC engine operates The...

Страница 999: ...e CRPT_HMAC_SADDR keeps the source address of the data buffer where the source text is stored Based on the source address the SHA HMAC accelerator can read the plain text from system memory and do SHA...

Страница 1000: ...HMAC Operation Byte Count The CRPT_HMAC_DMACNT keeps the byte count of source text that is for the SHA HMAC engine operating in DMA mode The CRPT_HMAC_DMACNT is 32 bit and the maximum of byte count is...

Страница 1001: ...Description Reset Value CRPT_HMAC_DATIN CRYP_BA 0x354 R W SHA HMAC Engine Non DMA Mode Data Input Port Register 0x0000_0000 31 30 29 28 27 26 25 24 DATIN 23 22 21 20 19 18 17 16 DATIN 15 14 13 12 11...

Страница 1002: ...tors are provided for resizing the image For the 2D rotation it can rotate left or right 45 90 or 180 degrees and also supports the flip flop mirror or up side down pictures 5 28 2 Features Support 2D...

Страница 1003: ...possible raster operations ROPs The graphic engine can support several kinds of BitBLT including HostBLT Pattern BLT Color Font Expanding BLT Transparent BLT Color Font Expansion and Rectangle Fill e...

Страница 1004: ...e Graphics Engine then repetitively copies it to the destination area with all ones in the pattern being expanded to a pixel of foreground color and all zeros being either expanded to a pixel of backg...

Страница 1005: ...s active during BitBLT and must be loaded with appropriate value BitBLT Direction 5 28 5 9 The BitBLT direction indicates the direction in which the X Y address is stepped across the rectangle It also...

Страница 1006: ...used to draw a pixel wide solid or textured line from screen coordinates x1 y1 to x2 y2 To draw a solid line the foreground color is used to specify color of the line To draw a textured line a 16 bit...

Страница 1007: ...45 90 or 180 degrees and it also supports the flip flop mirror or up side down pictures Just as the rectangle clipping for BitBLTs and line clipping for Bresenham Line when a clip flag is enabled the...

Страница 1008: ...r 0x0000_0000 GE2D_BGCOLR GE2D_BA 0x024 R W Graphic Engine Background Color Register 0x0000_0000 GE2D_FGCOLR GE2D_BA 0x028 R W Graphic Engine Foreground Color Register 0x0000_0000 GE2D_TRNSCOLR GE2D_B...

Страница 1009: ...GE2D_BA 0x068 R W Graphic Engine HostBLT Data Port 2 Register 0x0000_0000 GE2D_HSTBLTDP3 GE2D_BA 0x06C R W Graphic Engine HostBLT Data Port 3 Register 0x0000_0000 GE2D_HSTBLTDP4 GE2D_BA 0x070 R W Grap...

Страница 1010: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1010 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 28 7 Register Description...

Страница 1011: ...E2D_TRG GE2D_BA 0x000 R W Graphic Engine Trigger Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved...

Страница 1012: ...g Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved XYSORGSA 23 22 21 20 19 18 17 16 XYSORGSA 15 14 13 12 11 10 9 8 XYSORGSA 7 6 5 4 3 2 1 0 XYSORGSA Bits Description 31 28 Reserved Reserv...

Страница 1013: ...vertical scaling factor in graphic engine The output image height will be equal to the input image height VSF_N VSF_M The value of VSF_N must be equal or less than VSF_M 15 8 TILE_X HSF_N Tile Count...

Страница 1014: ...erence Pixel Coordinate Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved RRPY 23 22 21 20 19 18 17 16 RRPY 15 14 13 12 11 10 9 8 Reserved RRPX 7 6 5 4 3 2 1 0 RRPX Bits Description 31 27 Reserved...

Страница 1015: ...errupt Status Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved GE2DIF Bits Description 31 1 Reserved Reser...

Страница 1016: ...ttern Location Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved PATSA 23 22 21 20 19 18 17 16 PATSA 15 14 13 12 11 10 9 8 PATSA 7 6 5 4 3 2 1 0 PATSA Bits Description 31 28 Reser...

Страница 1017: ...3 22 21 20 19 18 17 16 DIAGINC 15 14 13 12 11 10 9 8 Reserved AXIALINC 7 6 5 4 3 2 1 0 AXIALINC Bits Description 29 16 DIAGINC Diagonal Error Term Increment For Bresenham line draw this register speci...

Страница 1018: ...Initial Error Term Pixel Count Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved INIT 23 22 21 20 19 18 17 16 INIT 15 14 13 12 11 10 9 8 Reserved LINEPC 7 6 5 4 3 2 1 0 LINEPC Bits Description 29...

Страница 1019: ...5 4 3 2 1 0 SRCDT SRCDS PATDT DRAWDIR DSTDATD Bits Description 31 24 ROP ROP Raster Operation Code It supports all Microsoft 256 Raster Operation Codes Each raster operation code is an 8 bit value th...

Страница 1020: ...16 ADDRMD Graphics Engine Addressing Mode 0 Linear addressing mode 1 X Y addressing mode 15 14 TRANSMD GE Transparency Mode 00 Disabled 01 Mono transparency 10 Color transparency 11 Reserved 13 MTS M...

Страница 1021: ...he drawing directions for BitBLT Bresenham line and Rotate For BitBLT operation 000 Right down 001 Right down 010 Left down 011 Left down 100 Right up 101 Right up 110 Left up 111 Left up For Bresenha...

Страница 1022: ...25 24 Reserved 23 22 21 20 19 18 17 16 BGCOLR 15 14 13 12 11 10 9 8 BGCOLR 7 6 5 4 3 2 1 0 BGCOLR Bits Description 31 24 Reserved Reserved 23 0 BGCOLR Graphics Engine Background Color These bits spec...

Страница 1023: ...25 24 Reserved 23 22 21 20 19 18 17 16 FGCOLR 15 14 13 12 11 10 9 8 FGCOLR 7 6 5 4 3 2 1 0 FGCOLR Bits Description 31 24 Reserved Reserved 23 0 FGCOLR Graphics Engine Foreground Color These bits spec...

Страница 1024: ...Reserved 23 22 21 20 19 18 17 16 TRNSCOLR 15 14 13 12 11 10 9 8 TRNSCOLR 7 6 5 4 3 2 1 0 TRNSCOLR Bits Description 31 24 Reserved Reserved 23 0 TRNSCOLR Graphics Engine Transparency Color These bits...

Страница 1025: ...0x030 R W Graphic Engine Transparency Color Mask Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 TCMSK 15 14 13 12 11 10 9 8 TCMSK 7 6 5 4 3 2 1 0 TCMSK Bits Description...

Страница 1026: ...ic Engine XY Mode Display Memory Origin Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved XYDORGSA 23 22 21 20 19 18 17 16 XYDORGSA 15 14 13 12 11 10 9 8 XYDORGSA 7 6 5 4 3 2 1 0...

Страница 1027: ...0000 31 30 29 28 27 26 25 24 Reserved DSTPITCH 23 22 21 20 19 18 17 16 DSTPITCH 15 14 13 12 11 10 9 8 Reserved SRCPITCH 7 6 5 4 3 2 1 0 SRCPITCH Bits Description 31 29 Reserved Reserved 28 16 DSTPITCH...

Страница 1028: ...22 21 20 19 18 17 16 SRCSPA 15 14 13 12 11 10 9 8 SRCSPA 7 6 5 4 3 2 1 0 SRCSPA Bits Description 31 28 Reserved Reserved 27 0 SRCSPA Source Start Pixel Address If ADDRMD GE2D_CTL 16 is low GE2D operat...

Страница 1029: ...22 21 20 19 18 17 16 DSTSPA 15 14 13 12 11 10 9 8 DSTSPA 7 6 5 4 3 2 1 0 DSTSPA Bits Description 31 28 Reserved Reserved 27 0 DSTSPA Destination Start Pixel Address If ADDRMD GE2D_CTL 16 is low GE2D o...

Страница 1030: ...its Description 31 27 Reserved Reserved 26 16 HEIGHT Rectangle Height If ADDRMD GE2D_CTL 16 is low GE2D operates at linear addressing mode and this field indicates the height of rectangle by byte If A...

Страница 1031: ...ngine Clipping Boundary Top Left Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved CLPTOP 23 22 21 20 19 18 17 16 CLPTOP 15 14 13 12 11 10 9 8 Reserved CLPLFT 7 6 5 4 3 2 1 0 CLPLFT Bits Descripti...

Страница 1032: ...e Clipping Boundary Bottom Right Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved CLPBOT 23 22 21 20 19 18 17 16 CLPBOT 15 14 13 12 11 10 9 8 Reserved CLPRGT 7 6 5 4 3 2 1 0 CLPRGT Bits Descripti...

Страница 1033: ...4 PTNLNE3 23 22 21 20 19 18 17 16 PTNLNE2 15 14 13 12 11 10 9 8 PTNLNE 1 7 6 5 4 3 2 1 0 PTNLNE 0 Bits Description 31 24 PTNLNE3 Pattern Line 3 When pattern is monochrome this field is the line 3 of t...

Страница 1034: ...24 PTNLNE7 23 22 21 20 19 18 17 16 PTNLNE6 15 14 13 12 11 10 9 8 PTNLNE5 7 6 5 4 3 2 1 0 PTNLNE4 Bits Description 31 24 PTNLNE7 Pattern Line 7 When pattern is monochrome this field is the line 7 of th...

Страница 1035: ...0 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 WRPLNMSK 15 14 13 12 11 10 9 8 WRPLNMSK 7 6 5 4 3 2 1 0 WRPLNMSK Bits Description 31 24 Reserved Reserved 23 0 WRPLNMSK Write Plane Mask Thes...

Страница 1036: ...es the 16 bit line style pattern In BitBLT mode this field indicates the alpha blending factor The bit 31 24 indicates the alpha blending factor Ks for source data while bit 23 16 indicates the alpha...

Страница 1037: ...gine Pixel Depth 00 8 bit 01 16 bit 10 32 bit 11 reserved 3 BLTMD BitBLT Mode 0 BitBLT type is according to GE2D_CTL control bits 1 BitBLT type follows BLTTYP GE2D_MISCTL 2 0 setting 2 0 BLTTYP BitBLT...

Страница 1038: ...E2D_BA 0x06C R W Graphic Engine HostBLT Data Port 3 Register 0x0000_0000 GE2D_HSTBLTDP4 GE2D_BA 0x070 R W Graphic Engine HostBLT Data Port 4 Register 0x0000_0000 GE2D_HSTBLTDP5 GE2D_BA 0x074 R W Graph...

Страница 1039: ...for decode Support arbitrarily 1X 8X image up scaling function for encode mode Support down scaling function for encode and decode modes Thumbnail Primary Support specified window decode mode Support...

Страница 1040: ...70 TECHNICAL REFERENCE MANUAL 5 29 3 Block Diagram AHB Master BIU Pre Processing Post Processing Capture IRAM 8 64 ORAM 16 32 DCT IDCT TRAM 72 15 ZRAM 64 12 2 Quant VLE AHB Master BIU Pre Processing P...

Страница 1041: ...programmer needs to program all the required control registers parameters like image format width height header format quantization table scaling factor memory address etc before triggering the JPEG...

Страница 1042: ...Y component only format if planar format set and packet YUYV format if packet format set Besides the standard compression the JPEG encoder integrates a pre processing unit that can scale up or scale...

Страница 1043: ...owing figure specifies the encode path When the programmer turns on thumbnail encode the JPEG engine supports an option for inserting one buffer region into primary JPEG bit stream This option can be...

Страница 1044: ...should be mentioned that the rotation function can only be applied only when encode YCbCr 4 2 0 source The standard JPEG bit stream format includes some headers that specify some information For exam...

Страница 1045: ...he variable length decoder VLD The decoded data are parsed inverse zig zag scanned IZZ inverse quantization IQ and inverse DCT IDCT An offset value is added to the output data of IDCT to become the re...

Страница 1046: ...table The programmer can choose to turn on the programmable Huffman table function or directly use the default Huffman table to decode the JPEG bitstream by setting the register bit PDHTAB JITCR 0 The...

Страница 1047: ...BQC JPEG_BA 0x014 R W JPEG Encode Thumbnail Q Table Control Register 0x0000_00F4 JPRIWH JPEG_BA 0x018 R W JPEG Primary Width Height Register 0x0000_0000 JTHBWH JPEG_BA 0x01C R W JPEG Encode Thumbnail...

Страница 1048: ...PEG_BA 0x0A4 R W JPEG Bit stream Frame Buffer 1 Starting Address Register 0x0000_0000 JPRI_SIZE JPEG_BA 0x0A8 R JPEG Encode Primary Image Bit stream Size Register 0x0000_0000 JTHB_SIZE JPEG_BA 0x0AC R...

Страница 1049: ...JPEG_BA 0x168 R W JPEG Quantization Table 1 Element Register 10 0x0000_0000 JQTAB1ER11 JPEG_BA 0x16C R W JPEG Quantization Table 1 Element Register 11 0x0000_0000 JQTAB1ER12 JPEG_BA 0x170 R W JPEG Qua...

Страница 1050: ...C970 TECHNICAL REFERENCE MANUAL JQTAB2ER13 JPEG_BA 0x1B4 R W JPEG Quantization Table 2 Element Register 13 0x0000_0000 JQTAB2ER14 JPEG_BA 0x1B8 R W JPEG Quantization Table 2 Element Register 14 0x0000...

Страница 1051: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1051 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 29 7 Register Description...

Страница 1052: ...filled into frame buffer by host no matter JPEG is pending or not 8 RESUMEO Resume JPEG Operation for Output On the fly Mode Write a 1 to this bit to restart JPEG from a pending state after an output...

Страница 1053: ...4 2 2 2 QT_BUSY Quantization table Busy Status Read only 0 Quantization Table is ready for host access 1 Quantization Table is busy and can t be accessed 1 ENG_RST Soft Reset JPEG Engine Except JPEG C...

Страница 1054: ...FIF T_HTAB T_QTAB T_DRI Bits Description 31 8 Reserved Reserved 7 P_JFIF Primary JPEG Bit stream Include JFIF Header 0 Not Include 1 Include 6 P_HTAB Primary JPEG Bit stream Include Huffman table 0 No...

Страница 1055: ...70 Technical Reference Manual Publication Release Date Dec 15 2015 1055 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 T_DRI Thumbnail JPEG Bit stream Include Restart Interval 0 Not Include 1 Incl...

Страница 1056: ...ut wait feature The decoding processing will be halted and an interrupt will issued while the current frame buffer is full The decoding process will be resumed and new frame buffer size and start addr...

Страница 1057: ...e QTAB are defined for Y Cb and Cr header QTAB HTAB is defined in only one DQT DHT marker 6 EY_ONLY Encode Gray level Y component Only Image 0 Encode normal Y Cb Cr color image 1 Encode gray level ima...

Страница 1058: ...elease Date Dec 15 2015 1058 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 PDHTAB Programmable Huffman table Function for Decode 0 Disable Use default huffman table for JPEG decode 1 Enable Allow...

Страница 1059: ...6 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 P_QADJUST P_QVS Bits Description 31 8 Reserved Reserved 7 4 P_QADJUST Primary Quantization table Adjust...

Страница 1060: ...6 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 T_QADJUST T_QVS Bits Description 31 8 Reserved Reserved 7 4 T_QADJUST Thumbnail Quantization table Adju...

Страница 1061: ...PEG image The value is equal to the size after scaling up or scaling down Note The JPEG engine supports horizontal and vertical arbitrarily up scaling 1X 8X in planar format encode mode When the verti...

Страница 1062: ...28 27 26 25 24 Reserved T_HEIGHT 23 22 21 20 19 18 17 16 T_HEIGHT 15 14 13 12 11 10 9 8 Reserved T_WIDTH 7 6 5 4 3 2 1 0 T_WIDTH Bits Description 31 29 Reserved Reserved 28 16 T_HEIGHT Thumbnail Encod...

Страница 1063: ...W Description Reset Value JPRST JPEG_BA 0x020 R W JPEG Encode Primary Restart Interval Register 0x0000_0004 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Res...

Страница 1064: ...Description Reset Value JTRST JPEG_BA 0x024 R W JPEG Encode Thumbnail Restart Interval Register 0x0000_0004 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Res...

Страница 1065: ...reports the height of decoded JPEG image 15 0 DEC_WIDTH Decode Image Width A 16 bit value reports the width of decoded JPEG image Note 1 The value of width and height are extracted from bitstream head...

Страница 1066: ...9 Reserved Reserved 28 DOW_INTE Decoding Output Wait Interrupt Enable 0 DOW_INTS JINTCR 24 high to trigger JPEG interrupt Disabled 1 DOW_INTS JINTCR 24 high to trigger JPEG interrupt Enabled 27 25 Res...

Страница 1067: ...e End Wait Interrupt Status 0 No Interrupt 1 Interrupt Generated Note When write value 1 to this bit the interrupt will be clear and JPEG will resume operating from a pending state 5 IPW_INTS Input Wa...

Страница 1068: ...FERENCE MANUAL 1 DER_INTS Decode Error Interrupt Status 0 No Interrupt 1 Interrupt Generated Note When write value 1 to this bit the interrupt will be clear 0 EER_INTS Encode On the fly Error Interrup...

Страница 1069: ...ait Frame Buffer Size 0xFFFF_FFFF 31 30 29 28 27 26 25 24 JDOWFBS 23 22 21 20 19 18 17 16 JDOWFBS 15 14 13 12 11 10 9 8 JDOWFBS 7 6 5 4 3 2 1 0 JDOWFBS Bits Description 31 0 JDOWFBS JPEG Decoding Outp...

Страница 1070: ...2 1 0 MCU_S_X Bits Description 31 26 Reserved Reserved 25 16 MCU_S_Y MCU Minimum Coded Unit Start Position Y for Window Decode Mode A 10 bit value specifies the MCU start position y of the window reg...

Страница 1071: ...8 17 16 MCU_E_Y 15 14 13 12 11 10 9 8 Reserved MCU_E_X 7 6 5 4 3 2 1 0 MCU_E_X Bits Description 31 26 Reserved Reserved 25 16 MCU_E_Y MCU End Position Y for Window Decode Mode A 10 bit value specifies...

Страница 1072: ...ecode Mode Control Register 2 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved WD_WIDTH 7 6 5 4 3 2 1 0 WD_WIDTH Bits Description 31 13 Rese...

Страница 1073: ...down scaling factor in 4 2 0 image Ex For scaling down 1 3 in vertical direction 4 2 2 image the minimum buffer size must be 48 line 16 x 3 If down scaling in vertical direction is applied the source...

Страница 1074: ...Data Output 0 Disable JPEG will continue to write the whole encoded bitstream or decoded image data into frame buffer 1 Enable JPEG can write partial encoded bitstream or decoded image data by re usin...

Страница 1075: ...ol Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved 8X Reserved A_JUMP Reserved Bits Description 31 7 Rese...

Страница 1076: ...ling function is not supported In packet format decode mode the image is arbitrarily down scaled 1X 16X for Y422 and Y420 1X 8X for Y444 14 PS_LPF_ON Primary Image Down scaling Low Pass Filter for Dec...

Страница 1077: ...t value specifies the vertical down scaling factor The scaling factor is equal to 1 SCALY_F For example if SCALY_F 3 the image will shrink 4 times in vertical direction Note For planar format encode m...

Страница 1078: ...F Bits Description 31 16 Reserved Reserved 15 TSX_ON Thumbnail Image Horizontal Down scaling for Encode 0 Disable no horizontal down scale 1 Enable 14 13 Reserved Reserved 12 8 TSCALX_F Thumbnail Imag...

Страница 1079: ...16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 DBF_EN Reserved IP_BUF Reserved OP_BUF Bits Description 31 8 Reserved Reserved 7 DBF_EN Dual Buffering Control 0 Disable dual buffering 1 En...

Страница 1080: ...30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 RES_SIZE 7 6 5 4 3 2 1 0 RES_SIZE Bits Description 31 16 Reserved Reserved 15 0 RES_SIZE Primary Encode Bit stream...

Страница 1081: ...Primary Thumbnail Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 OFFSET_SIZE 15 14 13 12 11 10 9 8 OFFSET_SIZE 7 6 5 4 3 2 1 0 OFFSET_SIZE Bits Description 31 24 Reserve...

Страница 1082: ...set Value JFSTRIDE JPEG_BA 0x078 R W JPEG Encode Bit stream Frame Stride Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 F_STRIDE 15 14 13 12 11 10 9 8 F_STRIDE 7 6 5 4 3...

Страница 1083: ...29 28 27 26 25 24 Y_IADDR0 23 22 21 20 19 18 17 16 Y_IADDR0 15 14 13 12 11 10 9 8 Y_IADDR0 7 6 5 4 3 2 1 0 Y_IADDR0 Bits Description 31 0 Y_IADDR0 JPEG Y Component Frame Buffer 0 Starting Address A 3...

Страница 1084: ...t Value JUADDR0 JPEG_BA 0x080 R W JPEG U Component Frame Buffer 0 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 U_IADDR0 23 22 21 20 19 18 17 16 U_IADDR0 15 14 13 12 11 10 9 8 U_IADDR0...

Страница 1085: ...t Value JVADDR0 JPEG_BA 0x084 R W JPEG V Component Frame Buffer 0 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 V_IADDR0 23 22 21 20 19 18 17 16 V_IADDR0 15 14 13 12 11 10 9 8 V_IADDR0...

Страница 1086: ...PEG_BA 0x088 R W JPEG Y Component or Packet Format Frame Buffer 1 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Y_IADDR1 23 22 21 20 19 18 17 16 Y_IADDR1 15 14 13 12 11 10 9 8 Y_IADDR1...

Страница 1087: ...t Value JUADDR1 JPEG_BA 0x08C R W JPEG U Component Frame Buffer 1 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 U_IADDR1 23 22 21 20 19 18 17 16 U_IADDR1 15 14 13 12 11 10 9 8 U_IADDR1...

Страница 1088: ...t Value JVADDR1 JPEG_BA 0x090 R W JPEG V Component Frame Buffer 1 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 V_IADDR1 23 22 21 20 19 18 17 16 V_IADDR1 15 14 13 12 11 10 9 8 V_IADDR1...

Страница 1089: ...gister 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved Y_STRIDE 7 6 5 4 3 2 1 0 Y_STRIDE Bits Description 31 12 Reserved Reserved 11 0 Y_ST...

Страница 1090: ...E JPEG_BA 0x098 R W JPEG U Component Frame Buffer Stride Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved U_STRIDE 7 6 5 4 3 2 1 0...

Страница 1091: ...E JPEG_BA 0x09C R W JPEG V Component Frame Buffer Stride Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved V_STRIDE 7 6 5 4 3 2 1 0...

Страница 1092: ...lue JIOADDR0 JPEG_BA 0x0A0 R W JPEG Bit stream Frame Buffer 0 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 IO_IADDR0 23 22 21 20 19 18 17 16 IO_IADDR0 15 14 13 12 11 10 9 8 IO_IADDR0...

Страница 1093: ...lue JIOADDR1 JPEG_BA 0x0A4 R W JPEG Bit stream Frame Buffer 1 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 IO_IADDR1 23 22 21 20 19 18 17 16 IO_IADDR1 15 14 13 12 11 10 9 8 IO_IADDR1...

Страница 1094: ...Description Reset Value JPRI_SIZE JPEG_BA 0x0A8 R JPEG Encode Primary Image Bit stream Size Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 PRI_SIZE 15 14 13 12 11 10 9...

Страница 1095: ...escription Reset Value JTHB_SIZE JPEG_BA 0x0AC R JPEG Encode Thumbnail Bit stream Size Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 THB_...

Страница 1096: ...ormat encode mode and arbitrarily down scaling in packet format decode mode This value needs to be specified only when vertical up scaling Y2 or down scaling PSX_ON is enabled Note if up scale from 12...

Страница 1097: ...served 6 4 BSFIFO_HT Bit stream FIFO High threshold Control While the fullness of bit stream output FIFO is higher than the high threshold in encode mode the priority for output will become higher tha...

Страница 1098: ...ode Source Image Height Register 0x0000_0FFF 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved JSRCH 7 6 5 4 3 2 1 0 JSRCH Bits Description 31 12 Reserve...

Страница 1099: ..._0000 JQTAB0ER8 JPEG_BA 0x120 R W JPEG Quantization Table 0 Element Register 8 0x0000_0000 JQTAB0ER9 JPEG_BA 0x124 R W JPEG Quantization Table 0 Element Register 9 0x0000_0000 JQTAB0ER10 JPEG_BA 0x128...

Страница 1100: ...PEG Quantization table 0 2 An 8 bit value specifies one element 2 6 10 58 62 of the Quantization Table 0 15 8 QTAB0_1 JPEG Quantization table 0 1 An 8 bit value specifies one element 1 5 9 57 61 of th...

Страница 1101: ...000 JQTAB1ER9 JPEG_BA 0x164 R W JPEG Quantization Table 1 Element Register 9 0x0000_0000 JQTAB1ER10 JPEG_BA 0x168 R W JPEG Quantization Table 1 Element Register 10 0x0000_0000 JQTAB1ER11 JPEG_BA 0x16C...

Страница 1102: ...15 1102 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 15 8 QTAB1_1 JPEG Quantization table 1 1 An 8 bit value specifies one element of the Quantization Table 1 7 0 QTAB1_0 JPEG Quantization table 1...

Страница 1103: ...nt Register 8 0x0000_0000 JQTAB2ER9 JPEG_BA 0x1A4 R W JPEG Quantization Table 2 Element Register 9 0x0000_0000 JQTAB2ER10 JPEG_BA 0x1A8 R W JPEG Quantization Table 2 Element Register 10 0x0000_0000 JQ...

Страница 1104: ...15 1104 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 15 8 QTAB2_1 JPEG Quantization table 2 1 An 8 bit value specifies one element of the Quantization Table 2 7 0 QTAB2_0 JPEG Quantization table 2...

Страница 1105: ...both sync type and MPU type LCDM This LCD Controller is a bus master and can transfer display data from system memory SDRAM without CPU intervention 5 30 2 Features Input data format YUV422 YUV444 RGB...

Страница 1106: ...the register SYS_MFP_GPAL SYS_MFP_GPAH SYS_MFP_GPDH SYS_MFP_GPGL and SYS_MFP_GPGH to know how to configure related pins as the LCD display interface function Set LCD CLK_HCLKEN 26 high to turn on cloc...

Страница 1107: ...ertical direction But it only supports 2X and 4X up scaling Display Overlay Control 5 30 5 2 The Display Control unit includes timing controller and overlay controller The timing controller generates...

Страница 1108: ...D color key pattern is defined in register OSD_CKEY for V U Y or B G R components according to the source color format OSD_SRC DCCS 14 12 The color key mask is also provided in registers OSD_CMASK Onl...

Страница 1109: ...ors both in 8 bit and 16 bit or 9 bit and 18 bit data bus modes The related control signals for MPU interfaced LCD are defined in register DEVICE_CTRL In addition the video source color format can be...

Страница 1110: ...egister 0x0000_0000 VA_FBCTRL LCM_BA 0x2C R W Video Stream Frame Buffer Control Register 0x0000_0000 VA_SCALE LCM_BA 0x30 R W Video Stream Scaling Control Register 0x0000_0000 VA_TEST LCM_BA 0x34 R W...

Страница 1111: ...r 0x0000_0000 HC_BADDR LCM_BA 0x78 R W Hardware Cursor Memory Base Address Register 0x0000_0000 HC_COLOR0 LCM_BA 0x7C R W Hardware Cursor Color RAM 0 Register 0x0000_0000 HC_COLOR1 LCM_BA 0x80 R W Har...

Страница 1112: ...served Reserved 29 LACE_F Interlace Mode Display Field Status Read Only 0 Current displayed field is even field 1 Current displayed field is odd field 28 VSYNC Internal Vertical Sync Status Read Only...

Страница 1113: ...88 011 RGB666 100 RGB565 101 RGB444 Low 4 h0 R G B 111 RGB444 High R G B 4 h0 110 RGB332 11 Reserved Reserved 10 8 VA_SRC Video Stream Source Color Format 000 YUV422 001 YCBCR422 010 RGB888 011 RGB666...

Страница 1114: ...Controller Interrupt Output Enable 0 Disable 1 Enable 3 DISP_OUT_EN Display relative Output Pins Tri state Mode 0 Output disabled output pins in tri state mode 1 Display output enable normal mode 2 O...

Страница 1115: ...tput pin RS 1 command data 0 display parameter data 1 Output pin RS 0 command data 1 display parameter data 30 CM16t18 Command Mapping From 16 bit to 18 bit or 8 bit to 9 bit Data Bus Used for 18 bit...

Страница 1116: ...36 colors mode 0 Data bus is 8 bit 1 Data bus is 16 bit For 262144 colors mode 0 Data bus is 8 9 bit 1 Data bus is 16 18 bit For 1677721 colors mode 0 Data bus is 8 bit 3 cycles per pixel at SWAP_YCbC...

Страница 1117: ...CE_CTRL 7 5 100 and 110 Set LCD_DDA 0 will disable DDA operation 7 5 DEVICE DEVICE Setting 000 Packed YUV422 001 Packed YUV444 100 Sync based TFT LCD UNIPAC 101 Sync based TFT LCD SEIKO EPSON 110 Sync...

Страница 1118: ...a bus mode 01 NTSC 10 PAL 2 1 SWAP_YcbC r share_bit DEVICE DEVICE_CT RL 7 5 000 YUV Data Output Swap for Packed YUV Mode When DEVICE DEVICE_CTRL 7 5 000 00 UYVY 01 YUYV 10 VYUY 11 YVYU 2 SWAP_YcbC r 1...

Страница 1119: ...GB666 pixel data is output first the LSB 9 bit data is output secondly 1 the low byte of 16 bit RGB565 pixel data is output first the low byte data is output secondly the LSB 9 bit of 18 bit RGB666 pi...

Страница 1120: ...GGGGG BBBBBB 2 fer 1pixel 11 RRRRRR GGGGGG BBBBBB 2 fer 1pixel 18 bits RRRRRRGGGGGGBBBBBB 1 fer 1pixel Data bus arrangement for different pixel for Unipac Interface LCM at 16 M colors and 8 bit data b...

Страница 1121: ...BB0 pixel 0 GGGGGGGG1 pixel 1 BBBBBBBB0 pixel 0 GGGGGGGG0 pixel 0 RRRRRRRR1 pixel 1 1 5 fer 1pixel 0 00 00 RRRRRRRR0 pixel 0 GGGGGGGG0 pixel 0 BBBBBBBB1 pixel 1 GGGGGGGG0 pixel 0 BBBBBBBB0 pixel 0 RRR...

Страница 1122: ...bus Gray Scale Selection Bus Interface Mode DBWORD SWAP_YCbC r Control LCD Line Data Out LCD_ODD SEL_ODD Data Bus Arrangement Denote Don t Care Bit Note 24 bits data bus 1 00 RRRRRRRRGGGGGGGGBBBBBBBB...

Страница 1123: ...MPULCD_CMD LCM_BA 0x08 R W MPU Interface LCD Write Command Register 0x0000_0000 31 30 29 28 27 26 25 24 CMD_BUSY WR_RS READ Reserved 23 22 21 20 19 18 17 16 Reserved MPULCD_CMD 15 14 13 12 11 10 9 8...

Страница 1124: ...23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 Reserved UNDERRUN_EN DISP_F_EN Bits Description 31 DISP_F_INT Frame Display Complete Interrupt Status Write clear When...

Страница 1125: ...Technical Reference Manual Publication Release Date Dec 15 2015 1125 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 Disable 1 Enable 0 DISP_F_EN Frame Display Complete Interrupt Enable 0 Disable 1...

Страница 1126: ...ach field frame including the retrace time Register Offset R W Description Reset Value CRTC_SIZE LCM_BA 0x10 R W CRTC Display Size Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved VTT 10 8 23 22...

Страница 1127: ...played scan line for each field frame Register Offset R W Description Reset Value CRTC_DEND LCM_BA 0x14 R W CRTC Display Enable End Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved VDEND 10 8 23...

Страница 1128: ...W Description Reset Value CRTC_HR LCM_BA 0x18 R W CRTC Internal Horizontal Retrace Timing Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved HRE 10 8 23 22 21 20 19 18 17 16 HRE 7 0 15 14 13 12 11...

Страница 1129: ...so hsync s hrs would move three cycles if hrs added or substracted 1 In order to adjust hsync signal in pclk unit RGB_SHIFT shared register aids this function in LCD with 8 bits data bus mode 00 Hsync...

Страница 1130: ...B_SHIFT shared register aids this function in High color TFT LCD with 8 bit data bus mode 00 Hsync will not move 01 Hsync will left move 1 pclk cycle 10 Hsync will left move 2 pclk cycle 11 Hsync will...

Страница 1131: ...Value CRTC_VR LCM_BA 0x20 R W CRTC Internal Vertical Retrace Timing Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved VRE 10 8 23 22 21 20 19 18 17 16 VRE 7 0 15 14 13 12 11 10 9 8 Reserved VRS 1...

Страница 1132: ...am Register Offset R W Description Reset Value VA_BADDR0 LCM_BA 0x24 R W Video Stream Frame Buffer 0 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 VA_BADDR0 31 24 23 22 21 20 19 18 17...

Страница 1133: ...am Register Offset R W Description Reset Value VA_BADDR1 LCM_BA 0x28 R W Video Stream Frame Buffer 1 Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 VA_BADDR1 31 24 23 22 21 20 19 18 17...

Страница 1134: ...an AHB burst cycle is issued to read or write the data in the region pointed to by the AHB pointer Register Offset R W Description Reset Value VA_FBCTRL LCM_BA 0x2C R W Video Stream Frame Buffer Cont...

Страница 1135: ...VA_FF Video Stream Fetch Finish An 11 bit value specifies the number of WORD SDRAM access cycle for a horizontal scan line fetching of video data stream 15 11 Reserved Reserved 10 0 VA_STRIDE Video S...

Страница 1136: ...000 31 30 29 28 27 26 25 24 Reserved VA_SCALE_V 12 8 23 22 21 20 19 18 17 16 VA_SCALE_V 7 0 15 14 13 12 11 10 9 8 XCOPY Reserved VA_SCALE_H 12 8 7 6 5 4 3 2 1 0 VA_SCALE_H 7 0 Bits Description 31 29 R...

Страница 1137: ...if the BIST fails or succeeds If the value of BistFail is 2 b00 at the end the embedded SRAM pass the BIST test otherwise it is faulty 9 BistFinish The Finish indicates the end of the BIST operation W...

Страница 1138: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1138 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 0 SIGN_ON Signature Analyzer 0 Disable 1 Start signature analyzer operation...

Страница 1139: ...D CRTC_DEND 26 16 the Active window will be actually ended at VDEND CRTC_DEND 26 16 Register Offset R W Description Reset Value VA_WIN LCM_BA 0x38 R W Video Stream Active Window Coordinates Register 0...

Страница 1140: ...f Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 VA_STUFF 23 16 15 14 13 12 11 10 9 8 VA_STUFF 15 8 7 6 5 4 3 2 1 0 VA_STUFF 7 0 Bits Description 31 24 Reserved Reserved...

Страница 1141: ...YS Register Offset R W Description Reset Value OSD_WINS LCM_BA 0x40 R W OSD Window Starting Coordinates Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OSD_WYS 10 8 23 22 21 20 19 18 17 16 OSD_W...

Страница 1142: ...WYS Register Offset R W Description Reset Value OSD_WINE LCM_BA 0x44 R W OSD Window Ending Coordinates Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OSD_WYE 10 8 23 22 21 20 19 18 17 16 OSD_WY...

Страница 1143: ...eam Register Offset R W Description Reset Value OSD_BADDR LCM_BA 0x48 R W OSD Stream Frame Buffer Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 OSD_BADDR 31 24 23 22 21 20 19 18 17 16...

Страница 1144: ...ching Register Offset R W Description Reset Value OSD_FBCTRL LCM_BA 0x4C R W OSD Stream Frame Buffer Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved OSD_FF 10 8 23 22 21 20 19 18 17 16 O...

Страница 1145: ...CR0 1 0 Bits Description 31 24 Reserved Reserved 23 16 BLINK_VCNT OSD Blinking Cycle Time An 8 bit value specifies the OSD blinking cycle time unit Vsync 15 10 Reserved Reserved 9 BLI_ON OSD Blinking...

Страница 1146: ...970 TECHNICAL REFERENCE MANUAL 11 Reserved 1 0 OCR0 Video OSD Overlay Control 0 When VA_EN DCCS 1 1 OSD_EN DCCS 2 1 CKEY_ON OSD_OVERLAY 8 1 Display region within OSD window color key condition un matc...

Страница 1147: ...y Pattern Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 OSD_CKEY 23 16 15 14 13 12 11 10 9 8 OSD_CKEY 15 8 7 6 5 4 3 2 1 0 OSD_CKEY 7 0 Bits Description 31 24 Reserved...

Страница 1148: ...erlay Color Key Mask Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 OSD_CMASK 23 16 15 14 13 12 11 10 9 8 OSD_CMASK 15 8 7 6 5 4 3 2 1 0 OSD_CMASK 7 0 Bits Description 3...

Страница 1149: ...imum value of ending address OSK_SKIP1_YE is OSD_SKIP1_YS 1 Register Offset R W Description Reset Value OSD_SKIP1 LCM_BA 0x5C R W OSD Window Skip1 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved...

Страница 1150: ...imum value of ending address OSK_SKIP2_YE is OSD_SKIP2_YS 1 Register Offset R W Description Reset Value OSD_SKIP2 LCM_BA 0x60 R W OSD Window Skip2 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved...

Страница 1151: ...e ranging from 1 0 to 7 99999 in fractional steps There is only one mode of horizontal up scaling by duplication Register Offset R W Description Reset Value OSD_SCALE LCM_BA 0x64 R W OSD Scaling Contr...

Страница 1152: ...erved 23 22 21 20 19 18 17 16 Reserved HC_TIP_Y 5 0 15 14 13 12 11 10 9 8 Reserved HC_TIP_X 5 0 7 6 5 4 3 2 1 0 Reserved HC_MODE 2 0 Bits Description 31 22 Reserved Reserved 21 16 HC_TIP_Y Y position...

Страница 1153: ...26 25 24 Reserved HC_Y 10 8 23 22 21 20 19 18 17 16 HC_Y 7 0 15 14 13 12 11 10 9 8 Reserved HC_X 10 8 7 6 5 4 3 2 1 0 HC_X 7 0 Bits Description 31 27 Reserved Reserved 26 16 HC_Y Y position of hardwa...

Страница 1154: ...Reference Manual Publication Release Date Dec 15 2015 1154 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL HC_TIP_X HC_TIP_Y Hardware Cursor Block width Hardware Cursor Block Height HC_TIP_X HC_TIP_...

Страница 1155: ...g Register Offset R W Description Reset Value HC_WBCTRL LCM_BA 0x74 R W Hardware Cursor Window Buffer Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved HC_FF 10 8 23 22 21 20 19 18 17 16 H...

Страница 1156: ...or data stream Register Offset R W Description Reset Value HC_BADDR LCM_BA 0x78 R W Hardware Cursor Memory Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 HC_BADDR 31 24 23 22 21 20 19 18 17...

Страница 1157: ...ding to bpp value 0 Register Offset R W Description Reset Value HC_COLOR0 LCM_BA 0x7C R W Hardware Cursor Color RAM 0 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 HC_C...

Страница 1158: ...ding to bpp value 1 Register Offset R W Description Reset Value HC_COLOR1 LCM_BA 0x80 R W Hardware Cursor Color RAM 1 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 HC_C...

Страница 1159: ...ding to bpp value 2 Register Offset R W Description Reset Value HC_COLOR2 LCM_BA 0x84 R W Hardware Cursor Color RAM 2 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 HC_C...

Страница 1160: ...lue HC_COLOR3 LCM_BA 0x88 R W Hardware Cursor Color RAM 3 Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 HC_COLOR3_R 15 14 13 12 11 10 9 8 HC_COLOR3_G 7 6 5 4 3 2 1 0 HC...

Страница 1161: ...Supports CCIR601 YCbCr color range scale to full YUV color range Supports 4 packaging format for packet data output YUYV Y only RGB565 RGB555 Supports YUV422 planar data output Supports the CROP func...

Страница 1162: ...1 4 Basic Configuration Before using Capture Sensor interface it s necessary to configure related pins as the capture function and enable CAP s clock For Capture Sensor interface related pin configura...

Страница 1163: ...7 0 Planar scaling down PLNDSVNL CAP_PLNSL 31 24 PLNDSVML CAP_PLNSL 23 16 PLNDSHNL CAP_PLNSL 15 8 PLNDSHML CAP_PLNSL 7 0 PLNDSVNLH CAP_PLNSM 31 24 PLNDSVMH CAP_PLNSM 23 16 PLNDSHNH CAP_PLNSM 15 8 PLND...

Страница 1164: ...ASEADDR CAP_PKTBA0 31 0 block and the center of MDYADDR CAP_MDYADDR 31 0 block is greater than MDTHR CAP_MD 20 16 the first bit will change to 1 and other bits will be different as shown in the follow...

Страница 1165: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1165 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL Figure 1 5 MDSM MD 9 is set to 1 and MDBS MD 8 is set to 0...

Страница 1166: ...CAP_PLNSL CAP_BA 0x2C R W Planar Scaling Vertical Horizontal Factor Register LSB 0x0000_0000 CAP_FRCTL CAP_BA 0x30 R W Scaling Frame Rate Factor Register 0x0000_0000 CAP_STRIDE CAP_BA 0x34 R W Frame O...

Страница 1167: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1167 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 31 7 Register Description...

Страница 1168: ...re Interface Reset 0 Capture interface reset Disabled 1 Capture interface reset Enabled 23 21 Reserved Reserved 20 UPDATE Update Register at New Frame 0 Update register at new frame Disabled 1 Update...

Страница 1169: ...Manual Publication Release Date Dec 15 2015 1169 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 2 1 Reserved Reserved 0 CAPEN Image Capture Interface Enable 0 Image Capture Interface Disabled 1 Imag...

Страница 1170: ...k Hardware will tag field0 or field1 by vertical blanking instead of FIELD flag in ccir 656 mode 0 Field by blank Disabled 1 Field by blank Enabled 17 13 Reserved Reserved 12 11 COLORCTL Special COLOR...

Страница 1171: ...ensor input data Byte 0 1 2 3 is Y0 V0 Y1 U0 10 Sensor input data Byte 0 1 2 3 is U0 Y0 V0 Y1 11 Sensor input data Byte 0 1 2 3 is V0 Y0 U0 Y1 If INFMT CAP_PAR 0 1 RGB565 00 Sensor input data Byte 0 i...

Страница 1172: ...0 CAP_MD finish interrupt Disabled 1 CAP_MD finish interrupt Enabled 19 ADDRMIEN Address Match Interrupt Enable 0 Address match interrupt Disabled 1 Address match interrupt Enabled 18 Reserved Reserve...

Страница 1173: ...Release Date Dec 15 2015 1173 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL If this bit shows 1 Transfer Error occurred Write 1 to clear it 0 VINTF Video Frame End Interrupt If this bit shows 1 re...

Страница 1174: ...nt Posterizing Factor Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 YCOMP 15 14 13 12 11 10 9 8 UCOMP 7 6 5 4 3 2 1 0 VCOMP Bits Description 31 24 Reserved Reserved 23...

Страница 1175: ...DTHR 15 14 13 12 11 10 9 8 Reserved MDDF MDSM MDBS 7 6 5 4 3 2 1 0 Reserved MDEN Bits Description 31 21 Reserved Reserved 20 16 MDTHR Motion Detection Differential Threshold 15 12 Reserved Reserved 11...

Страница 1176: ...ddress Register CAP_MDADDR Register Offset R W Description Reset Value CAP_MDADDR CAP_BA 0x14 R W Motion Detection Output Address Register 0x0000_0000 31 30 29 28 27 26 25 24 MDADDR 23 22 21 20 19 18...

Страница 1177: ...Register CAP_MDYADDR Register Offset R W Description Reset Value CAP_MDYADDR CAP_BA 0x18 R W Motion Detection Temp Y Output Address Register 0x0000_0000 31 30 29 28 27 26 25 24 MDYADDR 23 22 21 20 19...

Страница 1178: ...Reset Value CAP_SEPIA CAP_BA 0x1C R W Sepia Effect Control Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 UCOMP 7 6 5 4 3 2 1 0 VCOMP Bits...

Страница 1179: ...eset Value CAP_CWSP CAP_BA 0x20 R W Cropping Window Starting Address Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved CWSADDRV 23 22 21 20 19 18 17 16 CWSADDRV 15 14 13 12 11 10 9 8 Reserved CWSA...

Страница 1180: ...S Register Offset R W Description Reset Value CAP_CWS CAP_BA 0x24 R W Cropping Window Size Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved CWH 23 22 21 20 19 18 17 16 CWH 15 14 13 12 11 10 9 8 R...

Страница 1181: ...rtical Factor M Lower 8 bit Specify the lower 8 bit of denominator part M of the vertical scaling factor The lower 8 bit will be cascaded with higher 8 bit PKDSVMH to form a 16 bit denominator M of ve...

Страница 1182: ...ertical Factor M Lower 8 bit Specify the lower 8 bit of denominator part M of the vertical scaling factor The lower 8 bit will be cascaded with higher 8 bit PNDSVMH to form a 16 bit denominator M of v...

Страница 1183: ...N of the vertical scaling factor Please refer to the register CAP_PKTSL to check the cooperation between these two registers 23 16 PKTSVMH Packet Scaling Vertical Factor M Higher 8 bit Specify the lo...

Страница 1184: ...her 8 bit of numerator part N of the vertical scaling factor For detailed programming please refer to the register CAP_PLNSL 23 16 PLNSVMH Planar Scaling Vertical Factor M Higher 8 bit Specifies the l...

Страница 1185: ...26 25 24 Reserved 23 22 21 20 19 28 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved FRN 7 6 5 4 3 2 1 0 Reserved FRM Bits Description 31 14 Reserved Reserved 13 8 FRN Scaling Frame Rate Factor N Specify...

Страница 1186: ...ut Pixel Stride Width Register 0x0000_0000 31 30 29 28 27 26 25 24 Reserved PLNSTRIDE 23 22 21 20 19 28 17 16 PLNSTRIDE 15 14 13 12 11 10 9 8 Reserved PKTSTRIDE 7 6 5 4 3 2 1 0 PKTSTRIDE Bits Descript...

Страница 1187: ...r 0x070D_0507 31 30 29 28 27 26 25 24 OVF Reserved PKTFTH 23 22 21 20 19 18 17 16 Reserved PLNYFTH 15 14 13 12 11 10 9 8 Reserved PLNUFTH 7 6 5 4 3 2 1 0 Reserved PLNVFTH Bits Description 31 OVF FIFO...

Страница 1188: ...ter CAP_CMPADDR Register Offset R W Description Reset Value CAP_CMPADDR CAP_BA 0x40 R W Compare Memory Base Address Register 0xFFFF_FFFC 31 30 29 28 27 26 25 24 CMPADDR 23 22 21 20 19 18 17 16 CMPADDR...

Страница 1189: ...mory Address Register CAP_CURADDRP Register Offset R W Description Reset Value CAP_CURADDRP CAP_BA 0x50 R Current Packet System Memory Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CURADDR 23 2...

Страница 1190: ...ory Address Register CAP_CURADDRY Register Offset R W Description Reset Value CAP_CURADDRY CAP_BA 0x54 R Current Planar Y System Memory Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CURADDR 23...

Страница 1191: ...ory Address Register CAP_CURADDRU Register Offset R W Description Reset Value CAP_CURADDRU CAP_BA 0x58 R Current Planar U System Memory Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CURADDR 23...

Страница 1192: ...ory Address Register CAP_CURADDRV Register Offset R W Description Reset Value CAP_CURADDRV CAP_BA 0x5C R Current Planar V System Memory Address Register 0x0000_0000 31 30 29 28 27 26 25 24 CURADDR 23...

Страница 1193: ...CAP_PKTBA0 Register Offset R W Description Reset Value CAP_PKTBA0 CAP_BA 0x60 R W System Memory Packet Base Address 0 Register 0x0000_0000 31 30 29 28 27 26 25 24 BASEADDR 23 22 21 20 19 18 17 16 BAS...

Страница 1194: ...CAP_PKTBA1 Register Offset R W Description Reset Value CAP_PKTBA1 CAP_BA 0x64 R W System Memory Packet Base Address 1 Register 0x0000_0000 31 30 29 28 27 26 25 24 BASEADDR 23 22 21 20 19 18 17 16 BAS...

Страница 1195: ...ter CAP_YBA Register Offset R W Description Reset Value CAP_YBA CAP_BA 0x80 R W System Memory Planar Y Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BASEADDR 23 22 21 20 19 18 17 16 BASEAD...

Страница 1196: ...ter CAP_UBA Register Offset R W Description Reset Value CAP_UBA CAP_BA 0x84 R W System Memory Planar U Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BASEADDR 23 22 21 20 19 18 17 16 BASEAD...

Страница 1197: ...ter CAP_VBA Register Offset R W Description Reset Value CAP_VBA CAP_BA 0x88 R W System Memory Planar V Base Address Register 0x0000_0000 31 30 29 28 27 26 25 24 BASEADDR 23 22 21 20 19 18 17 16 BASEAD...

Страница 1198: ...suitable to act as touch screen controller Battery voltage detection could be easily accomplished by the SAR ADC It has keypad interrupt signal generator 5 32 2 Features Resolution 12 bit resolution...

Страница 1199: ...ster ADC Control Interface APB Bus KEYPAD Resistor divider switch Bandgap Internal SAR ADC Internal SAR ADC INT_TC INT_TC AVDD33 AVDD33 VREF VREF BUF BUF 2 5V 2 5V PULLUP PULLUP XP_EN XP_EN XP XP YP Y...

Страница 1200: ...4LSB 4094LSB 4095LSB 4095LSB 4096LSB 4096LSB 0000 0000 0001 0000 0000 0001 0000 0000 0010 0000 0000 0010 0000 0000 0011 0000 0000 0011 0000 0000 0100 0000 0000 0100 0000 0000 0000 0000 0000 0000 1111...

Страница 1201: ...creen it could connect to lower right electrode 111 XP ADC analog input If used in 4 wire touch screen it should connect to the positive end of X axis If used in 5 wire touch screen it could connect t...

Страница 1202: ...put REF_SEL should be set to 00 VREF and AGND For 4 wire 5 wire touch Screen Y axis conversion REF_SEL could be set to 01 For 4 wire 5 wire touch Screen X axis conversion REF_SEL could be set to 10 Ot...

Страница 1203: ...ase make sure Res1 20K ohm and Res2 5 6 Res1 Moreover a 0 01uF cap is recommended at A_2 on board If a user doesn t need the interrupt generator please ignore the requirement for Res1 and Res2 4 wire...

Страница 1204: ...om Plate Bottom Plate YP YP VSENSE VSENSE XM XM YM YM Top Plate Top Plate Figure 5 32 7 5 wire Touch Screen Connection Diagram 4 wire Pressure Measurement 5 32 5 10 To distinguish pen or finger touch...

Страница 1205: ...equires knowing both the X plate and Y plate resistance measurement of X Position and Y Position and Z1 Use the following Equation to calculate the touch resistance For ADC configure register Z_EN ADC...

Страница 1206: ...ure Data 0x0000_0000 ADC_DATA ADC_BA 0x28 R ADC Normal Conversion Data 0x0000_0000 ADC_VBATDATA ADC_BA 0x2C R ADC Battery Detection Data 0x0000_0000 ADC_KPDATA ADC_BA 0x30 R ADC Key Pad Data 0x0000_00...

Страница 1207: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1207 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 32 7 Register Description...

Страница 1208: ...Keypad Press Wake Up Enable 0 Disable key press wake up 1 Enable key press wake up 9 PEDE_EN Pen Down Event Enable 0 Disable pen down event interrupt 1 Enable pen down event interrupt 8 MST Menu Star...

Страница 1209: ...ion Release Date Dec 15 2015 1209 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 1 VBG_EN ADC Internal Bandgap Power Control 0 Power down internal bandgap 1 Power on internal bandgap 0 AD_EN ADC Pow...

Страница 1210: ...nd the ADC start signal period to get more sampling time for precise conversion 22 HSPEED High Speed Enable Enable ADC to high speed mode 21 DISZMAVEN Display Z Mean Average Enable Pressure Mean avera...

Страница 1211: ...C clock 15 1024 ADC clock 15 11 Reserved Reserved 10 SELFT_EN Selft Test Enable Selft test function enable 9 KPC_EN Keypad Press Conversion Enable Keypad press conversion function enable 8 VBAT_EN Vol...

Страница 1212: ...cal Reference Manual Publication Release Date Dec 15 2015 1212 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 1 Z_EN Press Enable Press measure function enable 0 T_EN Touch Enable Touch detection fu...

Страница 1213: ...ad press up event detection interrupt enable 4 WKP_IEN Wake Up Keypad Press Interrupt Enable Wake up keypad press detection interrupt enable 3 WKT_IEN Wake Up Touch Interrupt Enable Wake up touch dete...

Страница 1214: ...Reserved Reserved 13 SELFT_F Self test Conversion Finish Function menu self test conversion finish Note set by hardware and write 1 to clear this bit 12 KPC_F Keypad Press Conversion Finish Function m...

Страница 1215: ...tatus indicator Note set by hardware and write 1 to clear this bit 3 KPUE_F Keypad Press Up Event Flag keypad press up event status indicator Note set by hardware and write 1 to clear this bit 2 PEDE_...

Страница 1216: ...ADC_WKISR ADC_BA 0x10 R ADC Wake Up Interrupt Status Register 0x0000_0000 Bits Description 31 2 Reserved Reserved 1 WPEDE_F Wake Up Pen Down Event Flag Pen down event wake up status indicator 0 WKPE_...

Страница 1217: ...3 2 1 0 ADC_XDATA Bits Description 31 28 Reserved Reserved 27 16 ADC_YDATA ADC Y Data When T_EN ADC_CONF 0 in ADC_FM register is set the touch y position will be stored in this register Note If the DI...

Страница 1218: ...sure Z2 will be stored in this register Note If the DISZMAVEN ADC_CONF 21 1 both Z1 and Z2 data is the results of the mean average of Z1 and Z2 in ADC_ZSORT0 ADC_ZSORT3 15 12 Reserved Reserved 11 0 AD...

Страница 1219: ...Reset Value ADC_DATA ADC_BA 0x28 R ADC Normal Conversion Data 0x0000_0000 Bits Description 31 12 Reserved Reserved 11 0 ADC_DATA ADC Data When NAC_EN ADC_CONF 2 in ADC_FM is enable the AD converting...

Страница 1220: ...ue ADC_VBATDATA ADC_BA 0x2C R ADC Battery Detection Data 0x0000_0000 Bits Description 31 12 Reserved Reserved 11 0 ADC_VBATDATA ADC Voltage Battery Data When VBAT_EN ADC_CONF 8 in ADC_FM register is e...

Страница 1221: ...n Reset Value ADC_KPDATA ADC_BA 0x30 R ADC Key Pad Data 0x0000_0000 Bits Description 31 12 Reserved Reserved 11 0 ADC_KPDATA ADC Key Pad Data When KPC_EN ADC_CONF 9 in ADC_FM register is enable the ke...

Страница 1222: ...1 28 Reserved Reserved 27 16 ADC_AGND ADC Self test AGND Data When SELFT_EN ADC_CONF 10 in ADC_FM register is enable the AGND self test result is store in this register 15 12 Reserved Reserved 11 0 AD...

Страница 1223: ...C_XYSORT0 ADC_BA 0x1F4 R ADC Touch XY Position Mean Value Sort 0 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Y_SORT0 Y Position Sort Data 0 Y position mean average sort data 0 15 12 Res...

Страница 1224: ...C_XYSORT1 ADC_BA 0x1F8 R ADC Touch XY Position Mean Value Sort 1 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Y_SORT1 Y Position Sort Data 1 Y position mean average sort data 1 15 12 Res...

Страница 1225: ...C_XYSORT2 ADC_BA 0x1FC R ADC Touch XY Position Mean Value Sort 2 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Y_SORT2 Y Position Sort Data 2 Y position mean average sort data 2 15 12 Res...

Страница 1226: ...C_XYSORT3 ADC_BA 0x200 R ADC Touch XY Position Mean Value Sort 3 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Y_SORT3 Y Position Sort Data 3 Y position mean average sort data 3 15 12 Res...

Страница 1227: ...RT0 ADC_BA 0x204 R ADC Touch Z Pressure Mean Value Sort 0 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Z2_SORT0 Z2 Position Sort Data 0 Z2 position Mean average sort data 0 15 12 Reserve...

Страница 1228: ...RT1 ADC_BA 0x208 R ADC Touch Z Pressure Mean Value Sort 1 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Z2_SORT1 Z2 Position Sort Data 1 Z2 position Mean average sort data 1 15 12 Reserve...

Страница 1229: ...RT2 ADC_BA 0x20C R ADC Touch Z Pressure Mean Value Sort 2 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Z2_SORT2 Z2 Position Sort Data 2 Z2 position Mean average sort data 2 15 12 Reserve...

Страница 1230: ...RT3 ADC_BA 0x210 R ADC Touch Z Pressure Mean Value Sort 3 0x0000_0000 Bits Description 31 28 Reserved Reserved 27 16 Z2_SORT3 Z2 Position Sort Data 3 Z2 position Mean average sort data 3 15 12 Reserve...

Страница 1231: ...scan interrupt for chip reset If the 3 pressed keys matches with the 3 keys defined in KPI3KCONF it will generate an chip reset depend on the EN3KYRST KPI3KCONF 24 setting The interrupt is generated w...

Страница 1232: ...CLOCK Prescalar ROW Counter ROW Generation 5 3 Encoder Row Column Buffer Control Three_Keys Buffers Low Power Wakeup Comparator Wakeup Register Comparator DBT 7 0 Debounce Counter Status Register KPI_...

Страница 1233: ...ers The keypads actually consist of a number of switches connected in a row column arrangement as shown in Figure ROW0 ROW0 ROW1 ROW1 ROW2 ROW2 ROW3 ROW3 COL0 COL0 COL1 COL1 COL2 COL2 COL3 COL3 Figure...

Страница 1234: ...er can find a 0 on any column pin is for the keypad button to be pressed that connects the row set to 0 to a row The controller knows which column is at a 0 level and which column reads 0 allowing it...

Страница 1235: ...NF KPI_BA 0x00 R W Keypad Configuration 0x0000_0000 KPI3KCONF KPI_BA 0x04 R W Keypad 3 Keys Configuration 0x0000_0000 KPISTATUS KPI_BA 0x08 R Keypad Status 0x0000_0000 KPIRSTC KPI_BA 0x0C R W Keypad R...

Страница 1236: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1236 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 5 33 7 Register Description...

Страница 1237: ...is set by ROW x COL The ROW number can be set 2 3 4 000 Reserved 001 Keypad matrix ROW number is 2 010 Keypad matrix ROW number is 3 011 Keypad matrix ROW number is 4 Default 100 Reserved 101 Reserve...

Страница 1238: ...g cycle row scan time prescale 32 xclock xCLOCK 1MHz 32KHz bouncing time last for 1ms for example if xCLOCK 1MHz debounce sampling cycle should choose 1024 xclock row scan time should chose 2048 xCLOC...

Страница 1239: ...able Control 0 Disable the keypad interrupt 1 Enable the keypad interrupt 2 RKINTEN Release Key Interrupt Enable Control The keypad controller will generate an interrupt when the controller detects ke...

Страница 1240: ...4 EN3KYRST Enable Three key Reset Setting this bit enable hardware reset when three key is detected 0 Three key function is disable 1 Three key function is enable 23 21 Reserved Reserved 20 19 K32R Th...

Страница 1241: ...ved 19 16 RROWn Release Key Row Coordinate Show the row of the release key for example if key 2 x was released x 0 1 7 then RROW KPISTATUS 19 16 will show 0100 Note n 0 1 3 11 8 PROWn Press Key Row Co...

Страница 1242: ...event C code example DWORD RKE PKE reg_read KPIKRE Reg_write KPIKRE RKE 2 KEY_INT Key Interrupt This bit indicates the key scan interrupt is active when any key press or release or wakeup Read 0 Not r...

Страница 1243: ...Reset Period Controller 0x0000_0000 31 30 29 28 27 26 25 24 Reserved 23 22 21 20 19 18 17 16 Reserved 15 14 13 12 11 10 9 8 Reserved 7 6 5 4 3 2 1 0 RSTC 7 0 Bits Description 31 8 Reserved Reserved 7...

Страница 1244: ...F_FFFF 31 30 29 28 27 26 25 24 KEST37 KEST36 KEST35 KEST34 KEST33 KEST32 KEST31 KEST30 23 22 21 20 19 18 17 16 KEST27 KEST26 KEST25 KEST24 KEST23 KEST22 KEST21 KEST20 15 14 13 12 11 10 9 8 KEST17 KEST...

Страница 1245: ...18 17 16 KPE27 KPE26 KPE25 KPE24 KPE23 KPE22 KPE21 KPE20 15 14 13 12 11 10 9 8 KPE17 KPE16 KPE15 KPE14 KPE13 KPE12 KP11 KPE10 7 6 5 4 3 2 1 0 KPE07 KPE06 KPE05 KPE04 KPE03 KPE02 KPE01 KPE00 Bits Desc...

Страница 1246: ...18 17 16 KRE27 KRE26 KRE25 KRE24 KRE23 KRE22 KRE21 KRE20 15 14 13 12 11 10 9 8 KRE17 KRE16 KRE15 KRE14 KRE13 KRE12 KRE11 KRE10 7 6 5 4 3 2 1 0 KRE07 KRE06 KRE05 KRE04 KRE03 KRE02 KRE01 KRE00 Bits Des...

Страница 1247: ...that is set in KPICONF 15 8 The Prescale divider counter is clocked by the divided crystal clock xCLOCK The pre scale divider number is from 1 to 256 eg If the crystal clock is 1Mhz then the xCLOCK p...

Страница 1248: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1248 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL 6 PACKAGE DIMENSIONS LQFP 216L 24x24x1 4mm footprint 2 0mm 6 1...

Страница 1249: ...NUC970 Technical Reference Manual Publication Release Date Dec 15 2015 1249 Revision V1 30 NUC970 TECHNICAL REFERENCE MANUAL LQFP 128L 14x14x1 4mm footprint 2 0mm 6 2...

Страница 1250: ...ON HISTORY Date Revision Description 2015 5 31 1 00 Preliminary version 2015 6 25 1 10 Add new part number series NUC978YOxxY 2015 11 23 1 20 Modify NUC978YOxxY pin out including part selection guide...

Страница 1251: ...secure usage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safet...

Отзывы: