6.4.2 SysTick Reload Value Register (SYST_RVR) ........41 6.4.3 SysTick Current Value Register (SYST_CVR) ........42 6.4.4 SysTick Calibration Value Register (SYST_CALIB) ......42 7 TCPIPCore Offload Engine (TOE) ..............43 Introduction ................. 43 2 / 512 W7500 Datasheet Version1.0.0...
Page 3
Sn_ICR (Socket n Interrupt Clear Register) ........68 7.6.6 Sn_SR (Socket n Status Register) ..........69 7.6.7 Sn_PNR (Socket n Protocol Number Register) ......... 71 7.6.8 Sn_TOSR (Socket n IP Type of Service Register) ....... 71 3 / 512 W7500 Datasheet Version1.0.0...
Page 9
PA_12 pad control register ............199 14.4.14 PA_13 pad control register ............199 14.4.15 PA_14 pad control register ............200 14.4.16 PA_15 pad control register ............201 14.4.17 PB_00 pad control register............201 14.4.18 PB_01 pad control register............202 9 / 512 W7500 Datasheet Version1.0.0...
Page 10
PD_02 pad control register ............225 14.4.52 PD_03 pad control register ............225 14.4.53 PD_04 pad control register ............226 14.5 Register map ................228 15 General-purpose I/Os(GPIO) ............... 232 15.1 Introduction ................232 15.2 Features ..................232 10 / 512 W7500 Datasheet Version1.0.0...
Page 21
UART1RIS (UART1 Raw Interrupt Status Register)......471 22.6.12 UART1MIS (UART1 Masked Interrupt Status Register) ....... 472 22.6.13 UART1ICR (UART1 Interrupt Clear Register) ........473 22.7 Register map ................475 23 Synchronous Serial Port (SSP) ..............476 23.1 Introduction ................476 21 / 512 W7500 Datasheet Version1.0.0...
Page 22
SSP1 Status register (SSP1SR) ........... 506 23.6.5 SSP1 Clock prescale register (SSP1CPSR) ........507 23.6.6 SSP1 Interrupt mask set or clear register (SSP1IMSC) ....... 507 23.6.7 SSP1 Raw interrupt status register (SSP1RIS) ......... 508 22 / 512 W7500 Datasheet Version1.0.0...
Page 23
SSP1 Masked interrupt status register, (SSP1MIS) ......508 23.6.9 SSP1 Interrupt clear register (SSP1ICR) ........509 23.6.10 SSP1 DMA control register, (SSP1DMACR) ........509 23.7 Register map ................511 Document History Information ............... 512 23 / 512 W7500 Datasheet Version1.0.0...
Page 24
List of table Table 1 W7500 interrupt assignments ............37 Table 2 W7500 sleep mode summary ............39 Table 3. Offset Address for Common Register ..........46 Table 4. Offset Address in Socket n Register Block (n = 0,…,7, where n is Socket number) ..................
Page 25
Table 40 UART1 register map and reset values ..........475 Table 41 DMA trigger points for the transmit and receive FIFOs......479 Table 42 SSP0 register map and reset values ..........503 Table 43 SSP1 register map and reset values ..........511 25 / 512 W7500 Datasheet Version1.0.0...
Page 26
List of figures Figure 1 W7500 System Architecture ............32 Figure 2 W7500 memory map ..............34 Figure 3 POR reset waveform ..............38 Figure 4 TOE block diagram ..............43 Figure 5. Register & Memory Organization ........... 45 Figure 6. operation of boot code .............. 84 Figure 7.
Page 27
Figure 71 Motorola SPI frame format, single and continuous transfers, with SPO=0 and SPH=1 ..................487 Figure 72 Motorola SPI frame format, single transfer, with SPO=1 and SPH=0..488 Figure 73. Motorola SPI frame format, continuous transfers, with SPO=1 and SPH=0 ....................489 27 / 512 W7500 Datasheet Version1.0.0...
Page 28
Figure 78. SPI master coupled to a PrimeCell SSP slave ........493 Figure 79. how to setting TI or Microwire mode flow chart ......494 Figure 80. how to setting SPI mode flow chart ..........495 28 / 512 W7500 Datasheet Version1.0.0...
Internet Group Management Protocol IPv4 Internet Protocol version 4 interrupt request NonMaskable Interrupt PADCON Pad Controller Phase-Locked Loop Physical Layer PPPoE Point-to-Point Protocol over Ethernet Power Of Reset Pulse Width Modulator Random Access Memory 29 / 512 W7500 Datasheet Version1.0.0...
Page 30
Random number generator Status Register Synchronous Serial Port SYSCFG System configuration controller TCPIPCore Offload Engine Transistor-Transistor Logic Transmission Control Protocol UART Universal Asynchronous Receiver/Transmitter Universal Serial Bus User Datagram Protocol Wake On Lan Watchdog Timer 30 / 512 W7500 Datasheet Version1.0.0...
Register Bit Conventions Each register is shown with a key indicating the accessibility of the each individual bit, and the initial condition: Bit Accessibility Read/Write Read Only Read as 0 Read as 1 Write Only 31 / 512 W7500 Datasheet Version1.0.0...
WDOG UART2 PAD Controller Flash SPI0/SPI1 SPI x 2 Controller Alternate Function Controller I2C0/I2C1 Figure 1 W7500 System Architecture AHB-Lite BUS This bus connects the two masters (Cortex-M0 and uDMAC) and ten AHB slaves. 32 / 512 W7500 Datasheet Version1.0.0...
4-Gbyte address space. The bytes are coded in memory in Little Endian format. The lowest numbered byte in a word is considered the word‟s least significant byte and the highest numbered byte the most significant. 33 / 512 W7500 Datasheet Version1.0.0...
[1] : if 1, Watchdog caused the reset. [2] : if 1, processor LOCKUP caused the reset. Interrupt and events Introduction W7500 contains interrupt service and event service as below 26ea interrupt request (IRQ) lines. One NonMaskable Interrupt (NMI).
Event W7500 is able to handle internal events in order to wake up the core(WFE). The wakeup event can be generated by When after DMA process finished Power supply Introduction W7500 embeds a voltage regulator in order to supply the internal 1.5V digital power domain.
Low-power modes W7500 is in RUN mode after a system or power reset. There are two low power modes to save power when the CPU does not need to be kept running. These modes are useful for instances like when the CPU is waiting for an external interrupt. Please note that there is no power-off mode for W7500.
An internal clock source control based on missing/meeting durations. The COUNTFLAG bit-field in the control and status register can be used to determine if an action completed within a set duration, as part of a dynamic clock management control loop. 40 / 512 W7500 Datasheet Version1.0.0...
The RELOAD value can be any value in the range 0x0000_0001 – 0x00FFFFFF. You can program a value of 0, but this has no effect because the SysTick exception request and COUNTFLAG are activated when count from 1 to 0. 41 / 512 W7500 Datasheet Version1.0.0...
[30] SKEW - Reads as one. Calibration value for the 10ms inexact timing is not known because TENMS is not known. This can affect the suitability of SysTick as a software real time clock. [31] NOREF - Reads as one. Indicates that no separate reference clock is provided. 42 / 512 W7500 Datasheet Version1.0.0...
Internet connection to embedded systems. TOE enables users to have Internet connectivity in their applications by using the TCP/IP stack. WIZnet„s Hardwired TCP/IP is the market-proven technology that supports TCP, UDP, IPv4, ICMP, ARP, IGMP, and PPPoE protocols. TOE embeds the 32Kbyte internal memory buffer for the Ethernet packet processing.
Regardless of the allocated size of each Socket TX/RX Buffer, it can be accessible within the 16 bits offset address range (From 0x0000 to 0xFFFF). Refer to „Chapter 7.4.3‟ for more information about 16KB TX/RX Memory organization and access method. 44 / 512 W7500 Datasheet Version1.0.0...
TOE supports 8 Sockets for communication channel. Each Socket is controlled by Socket n Register (n = 0,…,7 ,where n is socket number). <Table 2> defines the 16bits Offset Address of registers in Socket n Register Block. Refer to „Chapter 7.4.2‟ for more details about each register. 46 / 512 W7500 Datasheet Version1.0.0...
16KB TX memory is initially allocated in 2KB size for each Socket TX Buffer Block (2KB X 8 = 16KB). The initial allocated 2KB size of Socket n TX Buffer can be re-allocated by using „Socket n TX Buffer Size Register (Sn_TXBUF_SIZE)‟. 47 / 512 W7500 Datasheet Version1.0.0...
Page 48
RX RD Pointer Register (Sn_RX_RD)‟ & „Socket n RX Write Pointer Register (Sn_RX_WR)‟. However, the 16bits Offset Address automatically converts into the physical address to be accessible in 16KB RX memory such as Figure 5. Refer to „Chapter 7.4.2‟ for Sn_RX_RD & Sn_RX_WR. 48 / 512 W7500 Datasheet Version1.0.0...
[15:0] TCKCNT – Ticker counter register is used Tick counter of 100usec. for internal timer of TOE. The unit of tick is HCLK. Ex) HCLK is 20MHz, 0.0001sec./ (1sec./HCLK (=20000000)) = 2000(dec) = 0x7DC 7.5.3 IR (Interrupt Register) Address Offset : 0x2100 Reset value : 0x0000_0000 49 / 512 W7500 Datasheet Version1.0.0...
IMR is „0‟, an interrupt will not be issued even if the corresponding bit of IR is „1‟. [4] Magic Packet 0: Disable Magic Packet Interrupt 1: Enable Magic Packet Interrupt [5] PPPoE Close Interrupt Mask 0: Disable PPPoE Close Interrupt 1: Enable PPPoE Close Interrupt 50 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0x0000_0028 PTIME[7:0] [7:0] PTIME configures the time for sending LCP echo request. The unit of time is 25ms Ex) in case that PTIMER is 200, 200 * 25(ms) = 5000(ms) = 5 seconds 53 / 512 W7500 Datasheet Version1.0.0...
[15:0] PSID - should be written to the PPPoE sever session ID acquired in PPPoE connection process. 7.5.13 PMRUR (Maximum Receive Unit Register in PPPoE) Address Offset : 0x2414 Reset value : 0x0000_FFFF PMSS[15:0] 55 / 512 W7500 Datasheet Version1.0.0...
GAR and SHAR. When LOCK is „ON‟, the protected registers are not able to access. In this case a value of 0x01ACCE55 is written to NCONFLR. When LOCK is „OFF‟, the protected registers are allowed to access. In this case any value except 0x01ACCE55 is written. 58 / 512 W7500 Datasheet Version1.0.0...
Retry Time Register (Sn_RTR). Ex) When timeout-period is set as 400ms, RTR = (400ms / 1ms) X 10 = 4000(0x0FA0) RTR[15:8] 0x0F 7.5.20 RCR (Retry Counter Register) Address Offset : 0x6044 Reset value : 0x0000_0008 59 / 512 W7500 Datasheet Version1.0.0...
Page 60
„RCR+1‟ and there is no response to the TCP retransmission, the final timeout is occurred and Sn_IR(TIMEOUT) becomes „1‟. The time of final timeout (TCPTO) of TCP retransmission is as below. 60 / 512 W7500 Datasheet Version1.0.0...
UNREACH bit of IR becomes „1‟ and UIPR indicates the destination IP address. Ex) In case of “192.168.0.11” UIP[31:24] UIP[23:16] UIP[15:8] UIP[7:0] 192 (0xC0) 168 (0xA8) 0 (0x00) 11 (0x0E) 61 / 512 W7500 Datasheet Version1.0.0...
Sn_MR (Socket n Mode Register) Address Offset : 0x0000 Reset value : 0x0000_0000 Sn_MR[7:0] Sn_MR configures the option or protocol type of Socket n. [3:0] These bits configures the protocol mode of Socket n as follows 62 / 512 W7500 Datasheet Version1.0.0...
Page 63
This bit is applied only during UDP mode(P[3:0] = „0010‟) and MULTI = „1‟. It configures the version for IGMP messages (Join/Leave/Report). Multicast Blocking in MACRAW mode 0 : disable Multicast Blocking 1 : enable Multicast Blocking 63 / 512 W7500 Datasheet Version1.0.0...
Ethernet. If user wants to implement Hybrid TCP/IP stack, it is recommended that this bit is set as „1‟ for reducing host overhead to process the all received packets. 7.6.2 Sn_CR (Socket n Command Register) Address Offset : 0x0010 Reset value : 0x0000_0000 64 / 512 W7500 Datasheet Version1.0.0...
Page 65
CONNECT changed to SOCK_ESTABLISHED and the Sn_IR(0) becomes „1‟. The connect-request fails in the following three cases. 1. When a ARP occurs (Sn_IR(3)=„1‟) because the destination hardware address is not acquired through the ARP-process. 65 / 512 W7500 Datasheet Version1.0.0...
Page 66
It checks the connection status by sending 1byte keep-alive packet. 0x22 SEND_KEEP If the peer cannot respond to the keep-alive packet during timeout time, the connection is terminated and the timeout interrupt will occur. 66 / 512 W7500 Datasheet Version1.0.0...
[3] TIMEOUT Interrupt - This is issued when ARP or TCP occurs. [4] SENDOK Interrupt - This is issued when SEND command is completed 7.6.4 Sn_IMR (Socket n Interrupt Mask Register) Address Offset : 0x0024 Reset value: 0x0000_00FF Sn_IMR[4:0] 67 / 512 W7500 Datasheet Version1.0.0...
Sn_ICR is used to clear interrupts. Each bit of Sn_IR can be cleared when the host writes „1‟ value to each bit of Sn_ICR corresponding to each bit of Sn_IR. [0] CONNECT Interrupt Clear [1] DISCONNECT Interrupt Clear [2] RECV Interrupt Mask [3] TIMEOUT Interrupt Mask [4] SENDOK Interrupt Mask 68 / 512 W7500 Datasheet Version1.0.0...
SOCK_ESTABLISHED This indicates the status of the connection of Socket n. 0x17 It changes to SOCK_ESTABLISHED when the „TCP SERVER‟ processed the SYN packet from the „TCP CLIENT‟ during SOCK_LISTEN, or when the CONNECT command is successful. 69 / 512 W7500 Datasheet Version1.0.0...
Page 70
SOCK_SYNRECV request packet (SYN packet) from a peer. If socket n sends the response (SYN/ACK packet) to the peer successfully, it changes to SOCK_ESTABLISHED. If not, changes SOCK_CLOSED after timeout occurs (Sn_IR[TIMEOUT] = „1‟). 70 / 512 W7500 Datasheet Version1.0.0...
IANA (http://www.iana.org/assignments/protocol-numbers). Ex) Internet Control Message Protocol (ICMP) = 0x01, Internet Group Management Protocol = 0x02 7.6.8 Sn_TOSR (Socket n IP Type of Service Register) Address Offset : 0x0104 Reset value : 0x0000_0000 71 / 512 W7500 Datasheet Version1.0.0...
Sn_TTL configures the TTL(Time To Live field in IP Header) of Socket n. It is set before OPEN command. For more the details, refer to http://www.iana.org/assignments/ip-parameters. 7.6.10 Sn_FRAGR (Socket n Fragment offset Register) Address Offset : 0x010C Reset value : 0x0000_4000 Sn_FRAG[15:0] [15:0] Sn_FRAG configures the FRAG(Fragment field in IP header) 72 / 512 W7500 Datasheet Version1.0.0...
TCP is activated in Passive Mode. Ex) In case of Socket 0 MSS = 1460 (0x05B4), configure as below, 0x4101_0110 0x05B4 7.6.12 Sn_PORTR (Socket n Source Port Register) Address Offset : 0x0114 Reset value : 0x0000_0000 Sn_SPROT[15:0] 73 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0x0000_0000 Sn_DHAR1 [31:24] Sn_DHAR1 [23:16] Sn_DHAR configures the destination hardware address of Socket n when using SEND_MAC command in UDP mode or it indicates that it is acquired in ARP-process by CONNECT/SEND command. 74 / 512 W7500 Datasheet Version1.0.0...
In UDP mode, it configures the port number of peer to be transmitted the UDP packet by SEND/SEND_MAC command. Ex) In case of Socket 0 Destination Port = 5000(0x1388), configure as below, 0x4101_0120 0x1388 7.6.15 Sn_DIPR (Socket n Destination IP address Register) Address Offset : 0x0124 Reset value : 0x0000_0000 75 / 512 W7500 Datasheet Version1.0.0...
In case of 'Sn_KPALVTR > 0', WZTOE automatically transmits KA packet after time-period for checking the TCP connection (Auto- keepalive-process). In case of 'Sn_KPALVTR = 0', Auto-keep-alive-process will not operate, 76 / 512 W7500 Datasheet Version1.0.0...
16KB TX Buffer and is assigned sequentially from Socket 0 to Socket 7. Socket n TX Buffer can be accessible with 16bits Offset Address ranged from 0x0000 to 0xFFFF regardless of the configured size. (Refer to Sn_TX_WR & Sn_TX_RD). Value (dec) 78 / 512 W7500 Datasheet Version1.0.0...
If Sn_MR(P[3:0]) is TCP mode(„0001‟), it is automatically calculated as the difference between Sn_TX_WR and the internal ACK pointer which indicates the point of data is received already by the connected peer. Ex) In case of 2048(0x0800) in S0_TX_FSR, 0x4100_0204 0x0800 79 / 512 W7500 Datasheet Version1.0.0...
16KB RX Memory and is assigned sequentially from Socket 0 to Socket 7. Socket n RX Buffer Block can be accessible with the 16bits Offset Address ranged from 0x0000 to 0xFFFF regardless of the configured size. (Refer to Sn_RX_RD & Sn_RX_WR). Value (dec) Buffer size 16KB 81 / 512 W7500 Datasheet Version1.0.0...
Therefore, it is recommended that you read all 16-bits twice or more until getting the same value. 7.6.25 Sn_RX_RD (Socket n RX Read Pointer Register) Address Offset : 0x0228 Reset value : 0x0000_0000 82 / 512 W7500 Datasheet Version1.0.0...
Sn_RX_WR is initialized by OPEN command and it is auto-increased by the data reception. If the increased value exceeds the maximum value 0xFFFF, (greater than 0x10000 and the carry bit occurs), then the carry bit is ignored and will automatically update with the lower 16bits value. 83 / 512 W7500 Datasheet Version1.0.0...
Ex) In case of 2048(0x0800) in S0_RX_WR, 0x4101_022C 0x0800 Booting Sequence W7500 has three different boot modes that can be selected through the BOOT pin and TEST pin as shown in Table 5. Table 5 operation of mode selection Mode...
Page 86
BSADDR0 0x4100 503C ~ 0x4100 503F BSADDR1 The W7500 embedded Flash memory can be programmed using in-circuit programming or in- application programming. The in-circuit programming (ICP) method is used to update the entire contents of the Flash memory using the SWD protocol or the boot loader to load the user application into the microcontroller.
7. Wait until the RDY bit is 1 in the FSTATR register.( it is set when the programming operation has succeeded) 8. Set KEY in FKEYR0/R1 for clearing FACCR register. 9. Clear FEN and CTRL bits in the FACCR register 87 / 512 W7500 Datasheet Version1.0.0...
5. Set SER bit in FACTRLR to 1. 6. Wait until the RDY bit is 1 in the FSTATR register. 7. Set KEY in FKEYR0/R1 for clearing FACCR register. 8. Clear FEN and CTRL bits in the FACCR register 88 / 512 W7500 Datasheet Version1.0.0...
Mass Erase ( All main Flash memory erase + Data block erase ) To erase mass (Main Flash memory + Data block), Set MER bit in FACTRLR to 1. All other procedures are the same as the sector erase sequence. 89 / 512 W7500 Datasheet Version1.0.0...
Check the programmed value by Reading the programmed address Figure 9. main Flash memory programming sequence 1. Check that no main Flash memory operation is ongoing by checking the RDY bit in the FSTATR register. 90 / 512 W7500 Datasheet Version1.0.0...
DWL0 : write protection to Data0 area in Data block. DWL1 : write protection to Data1 area in Data block. CABWL : write protection to main Flash memory all block. 91 / 512 W7500 Datasheet Version1.0.0...
Clock Reset generator (CRG) 10.1 Introduction CRG is clock reset generator block for W7500 System. It provides every clock/reset for all other block include CPU and peripherals. CRG includes PLL and POR. 10.2 Features 10.2.1 Reset • Three types of reset – external reset, Power reset, system reset •...
[0] PLLPD – PLL power down register This bit written by S/W to PLL power down or not 0 : power down 1 : normal operation 10.4.3 PLL frequency calculating register (PLL_FCR) Address offset : 0x014 Reset value : 0x0005_0200 95 / 512 W7500 Datasheet Version1.0.0...
This bit written by S/W to control output enable of PLL 0 : Clock out is disable. VCO is working but FOUT is low only. 1 : Clock out is enable. 10.4.5 PLL bypass register (PLL_BPR) Address offset : 0x01c Reset value : 0x0000_0000 96 / 512 W7500 Datasheet Version1.0.0...
ADCCLK_SSR 0x060 reset value ADCCLK_PVSR 0x064 reset value TIMER0CLK_SSR 0x070 reset value TIMER0CLK_PVSR 0x074 reset value TIMER1CLK_SSR 0x080 reset value TIMER1CLK_PVSR 0x084 reset value PWM0CLK_SSR 0x0b0 reset value PWM0CLK_PVSR 0x0b4 reset value 115 / 512 W7500 Datasheet Version1.0.0...
Page 116
PWM7CLK_SSR 0x120 reset value PWM7CLK_PVSR 0x124 reset value WDOGCLK_HS_SSR 0x140 reset value WDOGCLK_HS_PVSR 0x144 reset value UARTCLK_SSR 0x150 reset value UARTCLK_PVSR 0x154 reset value MIICLK_ECR 0x160 reset value CLKMON_SEL MONCLK_SSR 0x170 reset value 116 / 512 W7500 Datasheet Version1.0.0...
Random value can be obtains by control start/stop by software. 11.3 Functional description Figure 11 shows the RNG block diagram. APB IF Controller (Registers) Polynomial Registers Shift Registers Seed Registers n = 32 Figure 11. Random Number Generator block diagram 117 / 512 W7500 Datasheet Version1.0.0...
[31:0] SEED – seed value of random number generator shift register These bits written by S/W to set seed value of RNG before start(run) RNG shift register 11.4.3 RNG clock select register (RNG_CLKSEL) Address offset : 0x008 Reset value : 0x0000_0000 119 / 512 W7500 Datasheet Version1.0.0...
0 : run/stop by PLL_LOCK signal (which is for power on random number) 1 : run/stop by RNG_RUN register (refer 1.4.1)R 11.4.5 RNG random number value register (RNG_RN) Address offset : 0x010 Reset value : 0x0000_0000 RN[31:16] 120 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0xE000_0202 POLY[31:16] POLY[15:0] [31:0] POLY – 32bit polynomial of random number generator These bits are written by S/W to modify the formula of random number generator Default polynomial: F(x) = x 121 / 512 W7500 Datasheet Version1.0.0...
PA_10_AFR 0x028 reset value PA_11_AFR 0x02c reset value PA_12_AFR 0x030 reset value PA_13_AFR 0x034 reset value PA_14_AFR 0x038 reset value PA_15_AFR 0x03c reset value PB_00_AFR 0x040 reset value PB_01_AFR 0x044 reset value 152 / 512 W7500 Datasheet Version1.0.0...
Page 153
PB_14_AFR 0x078 reset value PB_15_AFR 0x07c reset value PC_00_AFR 0x080 reset value PC_01_AFR 0x084 reset value PC_02_AFR 0x088 reset value PC_03_AFR 0x08c reset value PC_04_AFR 0x090 reset value PC_05_AFR 0x094 reset value 153 / 512 W7500 Datasheet Version1.0.0...
Page 154
PC_13_AFR 0x0b4 reset value PC_14_AFR 0x0b8 reset value PC_15_AFR 0x0bc reset value PD_00_AFR 0x0c0 reset value PD_01_AFR 0x0c4 reset value PD_02_AFR 0x0c8 reset value PD_03_AFR 0x0cc reset value PD_04_AFR 0x0d0 reset value 154 / 512 W7500 Datasheet Version1.0.0...
External Interrupt polarity register) External interrupt working as following expression: Each pad interrupt = Interrupt mask & (Interrupt polarity ^ Pad input) EXTINT = any Each pad interrupt Figure 13 shows the External Interrupt diagram. 155 / 512 W7500 Datasheet Version1.0.0...
0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal [1] PA01IEN – External interrupt enable register of PA_01 PAD These bits are written by S/W. 157 / 512 W7500 Datasheet Version1.0.0...
Address offset : 0x20c Reset value : 0x0000_0000 PA03IEN PA03POL [0] PA03POL - External interrupt polarity selection register of PA_03 PAD These bits are written by S/W. 0 : interrupt occurs when pad detect rising edge signal 158 / 512 W7500 Datasheet Version1.0.0...
1 : interrupt occurs when pad detect falling edge signal [1] PA08IEN – External interrupt enable register of PA_08 PAD These bits are written by S/W. 0 : external interrupt disable 1 : external interrupt enable 161 / 512 W7500 Datasheet Version1.0.0...
0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal [1] PA10IEN – External interrupt enable register of PA_10 PAD These bits are written by S/W. 0 : external interrupt disable 162 / 512 W7500 Datasheet Version1.0.0...
[0] PA12POL - External interrupt polarity selection register of PA_12 PAD These bits are written by S/W. 0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal 163 / 512 W7500 Datasheet Version1.0.0...
1 : interrupt occurs when pad detect falling edge signal [1] PB03IEN – External interrupt enable register of PB_03 PAD These bits are written by S/W. 0 : external interrupt disable 1 : external interrupt enable 167 / 512 W7500 Datasheet Version1.0.0...
0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal [1] PB05IEN – External interrupt enable register of PB_05 PAD These bits are written by S/W. 0 : external interrupt disable 168 / 512 W7500 Datasheet Version1.0.0...
[0] PB07POL - External interrupt polarity selection register of PB_07 PAD These bits are written by S/W. 0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal 169 / 512 W7500 Datasheet Version1.0.0...
1 : interrupt occurs when pad detect falling edge signal [1] PB14IEN – External interrupt enable register of PB_14 PAD These bits are written by S/W. 0 : external interrupt disable 1 : external interrupt enable 173 / 512 W7500 Datasheet Version1.0.0...
0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal [1] PC00IEN – External interrupt enable register of PC_00 PAD These bits are written by S/W. 0 : external interrupt disable 174 / 512 W7500 Datasheet Version1.0.0...
[0] PC02POL - External interrupt polarity selection register of PC_02 PAD These bits are written by S/W. 0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal 175 / 512 W7500 Datasheet Version1.0.0...
1 : interrupt occurs when pad detect falling edge signal [1] PC09IEN – External interrupt enable register of PC_09 PAD These bits are written by S/W. 0 : external interrupt disable 1 : external interrupt enable 179 / 512 W7500 Datasheet Version1.0.0...
0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal [1] PC11IEN – External interrupt enable register of PC_11 PAD These bits are written by S/W. 0 : external interrupt disable 180 / 512 W7500 Datasheet Version1.0.0...
[0] PC13POL - External interrupt polarity selection register of PC_13 PAD These bits are written by S/W. 0 : interrupt occurs when pad detect rising edge signal 1 : interrupt occurs when pad detect falling edge signal 181 / 512 W7500 Datasheet Version1.0.0...
1 : interrupt occurs when pad detect falling edge signal [1] PD04IEN – External interrupt enable register of PD_04 PAD These bits are written by S/W. 0 : external interrupt disable 1 : external interrupt enable 185 / 512 W7500 Datasheet Version1.0.0...
PA_10_EXTINT 0x228 reset value PA_11_EXTINT 0x22c reset value PA_12_EXTINT 0x230 reset value PA_13_EXTINT 0x234 reset value PA_14_EXTINT 0x238 reset value PA_15_EXTINT 0x23c reset value PB_00_EXTINT 0x240 reset value PB_01_EXTINT 0x244 reset value 186 / 512 W7500 Datasheet Version1.0.0...
Page 187
PB_13_EXTINT 0x274 reset value PB_14_EXTINT 0x278 reset value PB_15_EXTINT 0x27c reset value PC_00_EXTINT 0x280 reset value PC_01_EXTINT 0x284 reset value PC_02_EXTINT 0x288 reset value PC_03_EXTINT 0x28c reset value PC_04_EXTINT 0x290 reset value 187 / 512 W7500 Datasheet Version1.0.0...
Page 188
PC_13_EXTINT 0x2b4 reset value PC_14_EXTINT 0x2b8 reset value PC_15_EXTINT 0x2bc reset value PD_00_EXTINT 0x2c0 reset value PD_01_EXTINT 0x2c4 reset value PD_02_EXTINT 0x2c8 reset value PD_03_EXTINT 0x2cc reset value PD_04_EXTINT 0x2d0 reset value 188 / 512 W7500 Datasheet Version1.0.0...
Functional description Figure 14 shows the function schematic of digital I/O pad of W7500. Figure 14. function schematic of digital I/O pad Figure 15 shows the function schematic of digital/analog mux IO pad of W7500 189 / 512 W7500 Datasheet Version1.0.0...
User can set pad condition with IE, CS, PU/PD, DS by register. And pads are can be controlled individually. 14.4 Registers (Base address : 0x4100_3000) 14.4.1 PA_00 pad control register Address offset : 0x000 Reset value : 0x0000_0030 PA00_CS PA00_IE PA00_DS PA00_PUPD 190 / 512 W7500 Datasheet Version1.0.0...
1 : Summit trigger input buffer 14.4.27 PB_10 pad control register Address offset : 0x068 Reset value : 0x0000_0030 PB10_CS PB10_IE PB10_DS PB10_PUPD [1:0] PB10_PUPD – Pull-up, Pull-down selection register of Pad PB_10 These bits are written by S/W. 208 / 512 W7500 Datasheet Version1.0.0...
1 : Summit trigger input buffer 14.4.43 PC_10 pad control register Address offset : 0x0A8 Reset value : 0x0000_0030 PC10_CS PC10_IE PC10_DS PC10_PUPD [1:0] PC10_PUPD – Pull-up, Pull-down selection register of Pad PC_10 These bits are written by S/W. 219 / 512 W7500 Datasheet Version1.0.0...
PCR_PA06 0x018 reset value PCR_PA07 0x01c reset value PCR_PA08 0x020 reset value PCR_PA09 0x024 reset value PCR_PA10 0x028 reset value PCR_PA11 0x02c reset value PCR_PA12 0x030 reset value PCR_PA13 0x034 reset value 228 / 512 W7500 Datasheet Version1.0.0...
Page 229
PCR_PB05 0x054 reset value PCR_PB06 0x058 reset value PCR_PB07 0x05c reset value PCR_PB08 0x060 reset value PCR_PB09 0x064 reset value PCR_PB10 0x068 reset value PCR_PB11 0x06c reset value PCR_PB12 0x070 reset value 229 / 512 W7500 Datasheet Version1.0.0...
Page 230
PCR_PC04 0x090 reset value PCR_PC05 0x094 reset value PCR_PC06 0x098 reset value PCR_PC07 0x09c reset value PCR_PC08 0x0a0 reset value PCR_PC09 0x0a4 reset value PCR_PC10 0x0a8 reset value PCR_PC11 0x0ac reset value 230 / 512 W7500 Datasheet Version1.0.0...
Page 231
PCR_PC13 0x0b4 reset value PCR_PC14 0x0b8 reset value PCR_PC15 0x0bc reset value PCR_PD00 0x0c0 reset value PCR_PD01 0x0c4 reset value PCR_PD02 0x0c8 reset value PCR_PD03 0x0cc reset value PCR_PD04 0x0d0 reset value 231 / 512 W7500 Datasheet Version1.0.0...
Block GPIOINT[15:0] Pin Mux Alternate function signals Figure 16. GPIO block diagram Figure 17 shows the operation sequences available for the GPIO. The pad alternate function is using the pad alternate function select register. 232 / 512 W7500 Datasheet Version1.0.0...
For example, to set bits[1:0] to 1 and clear bits[7:6] in a single operation, users can carry out the write to the lower byte mask access address space. The required bit mask is 0xC3, and users can write the operation as MASKLOWBYTE[0xC3] = 0x03. Refer to Figure 18 below. 233 / 512 W7500 Datasheet Version1.0.0...
DAO4 DAO3 DAO2 DAO1 DAO0 [15:0] DAOy(y = 0..15) READ as : Port out data bit WRITE as : WRITE to GPIOA_DATAOUT register 15.4.3 GPIOA Enable Set Register(GPIOA_OUTENSET) Address offset: 0x0010 Reset value: 0x0000 235 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the output enable bit READ as : „0‟ is indicates the signal direction as input „1‟ is indicates the signal direction as output 15.4.5 GPIOA Interrupt Enable Set Register(GPIOA_ INTENSET) Address offset: 0x0020 Reset value: 0x0000 236 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt enable bit READ as : „0‟ is indicates the interrupt disable „1‟ is indicates the interrupt enable 15.4.7 GPIOA Interrupt Type Set Register(GPIOA_ INTTYPESET) Address offset: 0x0028 Reset value: 0x---- 237 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt type bit READ as : „0‟ is indicates for LOW or HIGH level „1‟ is indicates for falling edge or rising edge 15.4.9 GPIOA Interrupt Polarity Set Register(GPIOA_ INTPOLSET) Address offset: 0x0030 Reset value: 0x---- 238 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt polarity bit READ as : „0‟ is indicates for LOW level or falling edge „1‟ is indicates for HIGH level or rising edge 15.4.11 GPIOA Interrupt Status/Interrupt Clear Register(GPIOA_ INTSTATUS/ INTCLEAR) Address offset: 0x0038 239 / 512 W7500 Datasheet Version1.0.0...
[15:8] Not used [7:0] Data for lower byte access, with bits[9:2] of address value used as enable bit mask for each bit 15.4.13 GPIOA Upper Byte Masked Access Register(GPIOA_ UB_MASKED) Address offset: 0x0800-0x0FC Reset value: 0x---- 240 / 512 W7500 Datasheet Version1.0.0...
Page 241
Higher eight bits masked access [15:8] Data for higher byte access, with bits[9:2] of address value used as enable bit mask for each bit [7:0] Not used 241 / 512 W7500 Datasheet Version1.0.0...
DAO14 DAO13 DAO12 DAO11 DAO10 [15:0] DAOy(y = 0..15) READ as : Port out data bit WRITE as : WRITE to GPIOB_DATAOUT register 15.6.3 GPIOB Enable Set Register(GPIOB_OUTENSET) Address offset: 0x0010 Reset value: 0x0000 243 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the output enable bit READ as : „0‟ is indicates the signal direction as input „1‟ is indicates the signal direction as output 15.6.5 GPIOB Interrupt Enable Set Register(GPIOB_ INTENSET) Address offset: 0x0020 Reset value: 0x0000 244 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt enable bit READ as : „0‟ is indicates the interrupt disable „1‟ is indicates the interrupt enable 15.6.7 GPIOB Interrupt Type Set Register(GPIOB_ INTTYPESET) Address offset: 0x0028 Reset value: 0x---- 245 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt type bit READ as : „0‟ is indicates for LOW or HIGH level „1‟ is indicates for falling edge or rising edge 15.6.9 GPIOB Interrupt Polarity Set Register(GPIOB_ INTPOLSET) Address offset: 0x0030 Reset value: 0x---- 246 / 512 W7500 Datasheet Version1.0.0...
WRITE as : „0‟ is no effect „1‟ is clears the interrupt polarity bit READ as : „0‟ is indicates for LOW level or falling edge „1‟ is indicates for HIGH level or rising edge 247 / 512 W7500 Datasheet Version1.0.0...
Lower eight bits masked access [15:8] Not used [7:0] Data for lower byte access, with bits[9:2] of address value used as enable bit mask for each bit 15.6.13 GPIOB Upper Byte Masked Access Register(GPIOB_ UB_MASKED) Address offset: 0x0800-0x0FC 248 / 512 W7500 Datasheet Version1.0.0...
Page 249
Reset value: 0x---- Higher eight bits masked access [15:8] Data for higher byte access, with bits[9:2] of address value used as enable bit mask for each bit [7:0] Not used 249 / 512 W7500 Datasheet Version1.0.0...
DAO14 DAO13 DAO12 DAO11 DAO10 [15:0] DAOy(y = 0..15) READ as : Port out data bit WRITE as : WRITE to GPIOC_DATAOUT register 15.8.3 GPIOC Enable Set Register(GPIOC_OUTENSET) Address offset: 0x0010 Reset value: 0x0000 251 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the output enable bit READ as : „0‟ is indicates the signal direction as input „1‟ is indicates the signal direction as output 15.8.5 GPIOC Interrupt Enable Set Register(GPIOC_ INTENSET) Address offset: 0x0020 Reset value: 0x0000 252 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt enable bit READ as : „0‟ is indicates the interrupt disable „1‟ is indicates the interrupt enable 15.8.7 GPIOC Interrupt Type Set Register(GPIOC_ INTTYPESET) Address offset: 0x0028 Reset value: 0x---- 253 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt type bit READ as : „0‟ is indicates for LOW or HIGH level „1‟ is indicates for falling edge or rising edge 15.8.9 GPIOC Interrupt Polarity Set Register(GPIOC_ INTPOLSET) Address offset: 0x0030 Reset value: 0x---- 254 / 512 W7500 Datasheet Version1.0.0...
WRITE as : „0‟ is no effect „1‟ is clears the interrupt polarity bit READ as : „0‟ is indicates for LOW level or falling edge „1‟ is indicates for HIGH level or rising edge 255 / 512 W7500 Datasheet Version1.0.0...
Address offset: 0x0400 – 0x07FC Reset value: 0x---- Lower eight bits masked access [15:8] Not used [7:0] Data for lower byte access, with bits[9:2] of address value used as enable bit mask for each bit 256 / 512 W7500 Datasheet Version1.0.0...
UB_MASKED) Address offset: 0x0800-0x0FC Reset value: 0x---- Higher eight bits masked access [15:8] Data for higher byte access, with bits[9:2] of address value used as enable bit mask for each bit [7:0] Not used 257 / 512 W7500 Datasheet Version1.0.0...
DAO4 DAO3 DAO2 DAO1 DAO0 [15:0] DAOy(y = 0..15) READ as : Port out data bit WRITE as : WRITE to GPIOD_DATAOUT register 15.10.3 GPIOD Enable Set Register(GPIOD_OUTENSET) Address offset: 0x0010 Reset value: 0x0000 259 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the output enable bit READ as : „0‟ is indicates the signal direction as input „1‟ is indicates the signal direction as output 15.10.5 GPIOD Interrupt Enable Set Register(GPIOD_ INTENSET) Address offset: 0x0020 Reset value: 0x0000 260 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt enable bit READ as : „0‟ is indicates the interrupt disable „1‟ is indicates the interrupt enable 15.10.7 GPIOD Interrupt Type Set Register(GPIOD_ INTTYPESET) Address offset: 0x0028 Reset value: 0x---- 261 / 512 W7500 Datasheet Version1.0.0...
„1‟ is clears the interrupt type bit READ as : „0‟ is indicates for LOW or HIGH level „1‟ is indicates for falling edge or rising edge 15.10.9 GPIOD Interrupt Polarity Set Register(GPIOD_ INTPOLSET) Address offset: 0x0030 Reset value: 0x---- 262 / 512 W7500 Datasheet Version1.0.0...
WRITE as : „0‟ is no effect „1‟ is clears the interrupt polarity bit READ as : „0‟ is indicates for LOW level or falling edge „1‟ is indicates for HIGH level or rising edge 263 / 512 W7500 Datasheet Version1.0.0...
Address offset: 0x0400 – 0x07FC Reset value: 0x---- Lower eight bits masked access [15:8] Not used [7:0] Data for lower byte access, with bits[9:2] of address value used as enable bit mask for each bit 264 / 512 W7500 Datasheet Version1.0.0...
UB_MASKED) Address offset: 0x0800-0x0FC Reset value: 0x---- Higher eight bits masked access [15:8] Data for higher byte access, with bits[9:2] of address value used as enable bit mask for each bit [7:0] Not used 265 / 512 W7500 Datasheet Version1.0.0...
DMA cycle types The cycle_ctrl bits in the channel control data structure controls how the DMA controller performs a cycle. The controller uses four cycle types described in this manual: Invalid Basic 268 / 512 W7500 Datasheet Version1.0.0...
Page 269
The auto-request cycle is typically used for memory-to-memory requests. In this case, software generates the starting request for the transfers after setting up the DMA control data structure. 269 / 512 W7500 Datasheet Version1.0.0...
Page 270
(which is the value at the end of the last transfer using that structure), and the ping-pong cycle completes. The ping-pong cycle can be used for transfers to or from peripherals or for memory- to- memory transfers. 270 / 512 W7500 Datasheet Version1.0.0...
These bits are read/write register. User must configure this register so that the base pointer points to a location in system memory. 16.4.4 DMA channel alternate control data base pointer register (DMA_ALT_CTRL_BASE_PTR) Address offset : 0x00c Reset value : 0x0000_0000 273 / 512 W7500 Datasheet Version1.0.0...
[Channel-1] DMA_WAITONREQ – Channel wait on request status This read-only register returns the status of dma_waitonreq[Channel-1]. 0 : dma_waitonreq is low 1 : dma_waitonreq is high 16.4.6 DMA channel software request register (DMA_CHNL_SW_REQUEST) Address offset : 0x014 Reset value : - 274 / 512 W7500 Datasheet Version1.0.0...
1 : DMA [Channel-1] does not responds to requests that it receives on dma_sreq[Channel-1]. The controller only responds to dma_req[Channel-1] requests Write as : 0 : No effect. Use the CHNL_USEBURST_CLR register to set bit [Channel-1] to 0 275 / 512 W7500 Datasheet Version1.0.0...
0 : No effect. Use the CHNL_REQ_MASK_SET register to disable dma_req[Channel-1] and dma_sreq[Channel-1] from generating requests. 1 : Enables dma_req[Channel-1] or dma_sreq[Channel] to generate DMA requests. 16.4.11 DMA channel enable set register (DMA_CHNL_ENABLE_SET) Address offset : 0x028 Reset value : 0x0000_0000 277 / 512 W7500 Datasheet Version1.0.0...
DMA channel. This write only register configures a DMA channels to use the primary data structure. 0 : No effect. Use the CHNL_PRI_ALT _SET register to select the alternate data structure. 279 / 512 W7500 Datasheet Version1.0.0...
0 – No effect. Use the CHNL_PRIORITY_CLR register to set bit [Channel-1] to default priority level 1 – Channel [Channel-1] uses the high priority level. 16.4.16 DMA channel priority clear register (DMA_CHNL_PRIORITY_CLR) Address offset : 0x03C Reset value : - CHNL_PRIORITY_CLR[5:0] 280 / 512 W7500 Datasheet Version1.0.0...
This read/write register returns the status of DMA_ERR, and enables set DMA_ERR LOW. Read as : 0 : DMA_ERR is LOW 1 : DMA_ERR is HIGH Write as : 0 : No effect, status of DMA_ERR is unchanged. 1 : Sets DMA_ERR LOW. 281 / 512 W7500 Datasheet Version1.0.0...
1 channel for internal LDO(1.5v) voltage. CH15 : Internal voltage • Start of conversion can be initiated by software. • Convert selected inputs once per trigger. • Interrupt generation at the end of conversion. 283 / 512 W7500 Datasheet Version1.0.0...
3. Run start ADC conversion by set ADC_SRT bit. 4. Check INT bit to know finish of conversion. 5. If INT bit is high (1), read ADC conversion data. 6. Finally, ADC operation is finished by setting the PWD bit. 284 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0x0000_0000 ADC_DATA [11:0] ADC_DATA – ADC conversion result data It contains ADC conversion result data of last converted channel. These bits are read- only. 17.4.5 ADC Interrupt register (ADC_INT) Address offset : 0x010 288 / 512 W7500 Datasheet Version1.0.0...
[0] INTCLR – Interrupt Clear bit. This bit set by S/W to clear interrupt signal to CM0. This bit is write-only. 0 – nothing 1 – Clear interrupt signal (This bit clear automatically after clear interrupt) 289 / 512 W7500 Datasheet Version1.0.0...
The Timer/Counter has two repetition mode: periodic and one-shot mode. In periodic mode, the Timer/Counter recycles and then restarts when the Timer/Counter reaches the value of limit register. Figure 26 shows periodic mode timing diagram. PWMCLK Prescale Counter Timer/Counter Overflow Interrupt 292 / 512 W7500 Datasheet Version1.0.0...
Figure 35 is an example of the PWM output waveform when the Timer/Counter is reached to the value of match register. Figure 36 is example of the PWM output waveform when to the Timer/Counter is reached to the value of limit register. 296 / 512 W7500 Datasheet Version1.0.0...
Timer/Counter is reached to value of match register. The overflow interrupt occurs when the Timer/Counter is reached to value of limit register. The capture interrupt occurs when external input is entered for capture. 297 / 512 W7500 Datasheet Version1.0.0...
Inverted PWM output Dead zone Dead zone Dead zone Dead zone Dead zone time time time time time Figure 37 PWM waveform with dead zone time 298 / 512 W7500 Datasheet Version1.0.0...
There is no interrupt clear, so second capture does not save during second rising edge detection. External Input Rising edge detect Timer/Counter Capture Interrupt Capture register Capture Interrupt clear Interrupt Register[2:0] Figure 39 Capture event with no interrupt clear 299 / 512 W7500 Datasheet Version1.0.0...
Figure 40 shows, also, capture event timing diagram with interrupt clear. The second capture is saved at the second rising edge detection because there is interrupt clear. External Input Rising edge detect Timer/Counter Capture Interrupt Capture Interrupt clear Figure 40 Capture event with interrupt clear 300 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.4.2 Channel-0 interrupt enable register(PWMCH0IER) Base address : 0x4000_5000 Address offset : 0x04 Reset value : 0x0000_0000 302 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.4.6 Channel-0 Prescale Register (PWMCH0PR) Base address : 0x4000_5000 Address offset : 0x14 Reset value : 0x0000_0000 304 / 512 W7500 Datasheet Version1.0.0...
Limit Register. The LR can generate an overflow interrupt and PWM output waveform becomes 1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 305 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.4.13 Channel-0 Capture Register (PWMCH0CR) Base address : 0x4000_5000 Address offset : 0x30 307 / 512 W7500 Datasheet Version1.0.0...
1 : One-shot mode. When the TC is reached to the LR, the TC returns to 0 and then stops counting. 18.4.15 Channel-0 Dead Zone Enable Register (PWMCH0DZER) Base address : 0x4000_5000 Address offset : 0x38 Reset value : 0x0000_0000 308 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 309 / 512 W7500 Datasheet Version1.0.0...
PWMCH0CR Channel-0 Capture Register 0x30 reset value PWMCH0PDMR Channel-0 Periodic Mode Register 0x34 reset value Channel-0 Dead Zone Enable PWMCH0DZER 0x38 Register reset value Channel-0 Dead Zone Counter PWMCH0DZCR 0x3C Register reset value 310 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.6.2 Channel-1 interrupt enable register(PWMCH1IER) Base address : 0x4000_5100 Address offset : 0x04 Reset value : 0x0000_0000 311 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.6.6 Channel-1 Prescale Register (PWMCH1PR) Base address : 0x4000_5100 Address offset : 0x14 Reset value : 0x0000_0000 313 / 512 W7500 Datasheet Version1.0.0...
Limit Register. The LR can generate an overflow interrupt and PWM output waveform becomes 1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 314 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.6.13 Channel-1 Capture Register (PWMCH1CR) Base address : 0x4000_5100 Address offset : 0x30 316 / 512 W7500 Datasheet Version1.0.0...
1 : One-shot mode. When the TC is reached to the LR, the TC returns to 0 and then stops counting. 18.6.15 Channel-1 Dead Zone Enable Register (PWMCH1DZER) Base address : 0x4000_5100 Address offset : 0x38 Reset value : 0x0000_0000 317 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 318 / 512 W7500 Datasheet Version1.0.0...
PWMCH1CR Channel-1 Capture Register 0x30 reset value PWMCH1PDMR Channel-1 Periodic Mode Register 0x34 reset value Channel-1 Dead Zone Enable PWMCH1DZER 0x38 Register reset value Channel-1 Dead Zone Counter PWMCH1DZCR 0x3C Register reset value 319 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.8.2 Channel-2 interrupt enable register(PWMCH2IER) Base address : 0x4000_5200 Address offset : 0x04 Reset value : 0x0000_0000 320 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.8.6 Channel-2 Prescale Register (PWMCH2PR) Base address : 0x4000_5200 Address offset : 0x14 Reset value : 0x0000_0000 322 / 512 W7500 Datasheet Version1.0.0...
1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 18.8.9 Channel-2 Up-Down Mode Register (PWMCH2UDMR) Base address : 0x4000_5200 323 / 512 W7500 Datasheet Version1.0.0...
Channel-2 Dead Zone Enable Register (PWMCH2DZER) Base address : 0x4000_5200 Address offset : 0x38 Reset value : 0x0000_0000 [0] DZE – Dead Zone Enable 0 : Dead zone generation is disabled. 1 : Dead zone generation is enabled. 326 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 327 / 512 W7500 Datasheet Version1.0.0...
PWMCH2CR Channel-2 Capture Register 0x30 reset value PWMCH2PDMR Channel-2 Periodic Mode Register 0x34 reset value Channel-2 Dead Zone Enable PWMCH2DZER 0x38 Register reset value Channel-2 Dead Zone Counter PWMCH2DZCR 0x3C Register reset value 328 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.10.2 Channel-3 interrupt enable register(PWMCH3IER) Base address : 0x4000_5300 Address offset : 0x04 Reset value : 0x0000_0000 329 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.10.6 Channel-3 Prescale Register (PWMCH3PR) Base address : 0x4000_5300 Address offset : 0x14 Reset value : 0x0000_0000 331 / 512 W7500 Datasheet Version1.0.0...
Limit Register. The LR can generate an overflow interrupt and PWM output waveform becomes 1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 332 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.10.13 Channel-3 Capture Register (PWMCH3CR) Base address : 0x4000_5300 Address offset : 0x30 334 / 512 W7500 Datasheet Version1.0.0...
1 : One-shot mode. When the TC is reached to the LR, the TC returns to 0 and then stops counting. 18.10.15 Channel-3 Dead Zone Enable Register (PWMCH3DZER) Base address : 0x4000_5300 Address offset : 0x38 Reset value : 0x0000_0000 335 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 336 / 512 W7500 Datasheet Version1.0.0...
PWMCH3CR Channel-3 Capture Register 0x30 reset value PWMCH3PDMR Channel-3 Periodic Mode Register 0x34 reset value Channel-3 Dead Zone Enable PWMCH3DZER 0x38 Register reset value Channel-3 Dead Zone Counter PWMCH3DZCR 0x3C Register reset value 337 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.12.2 Channel-4 interrupt enable register(PWMCH4IER) Base address : 0x4000_5400 Address offset : 0x04 Reset value : 0x0000_0000 338 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.12.6 Channel-4 Prescale Register (PWMCH4PR) Base address : 0x4000_5400 Address offset : 0x14 Reset value : 0x0000_0000 340 / 512 W7500 Datasheet Version1.0.0...
If not, match interrupt is not occurred and PWM output waveform is always 1. 18.12.9 Channel-4 Up-Down Mode Register (PWMCH4UDMR) Base address : 0x4000_5400 Address offset : 0x20 Reset value : 0x0000_0000 341 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.12.13 Channel-4 Capture Register (PWMCH4CR) Base address : 0x4000_5400 Address offset : 0x30 Reset value : 0x0000_0000 343 / 512 W7500 Datasheet Version1.0.0...
Channel-4 Dead Zone Enable Register (PWMCH4DZER) Base address : 0x4000_5400 Address offset : 0x38 Reset value : 0x0000_0000 [0] DZE – Dead Zone Enable 0 : Dead zone generation is disabled. 1 : Dead zone generation is enabled. 344 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 345 / 512 W7500 Datasheet Version1.0.0...
PWMCH4CR Channel-4 Capture Register 0x30 reset value PWMCH4PDMR Channel-4 Periodic Mode Register 0x34 reset value Channel-4 Dead Zone Enable PWMCH4DZER 0x38 Register reset value Channel-4 Dead Zone Counter PWMCH4DZCR 0x3C Register reset value 346 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.14.2 Channel-5 interrupt enable register(PWMCH5IER) Base address : 0x4000_5500 Address offset : 0x04 Reset value : 0x0000_0000 347 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.14.6 Channel-5 Prescale Register (PWMCH5PR) Base address : 0x4000_5500 Address offset : 0x14 Reset value : 0x0000_0000 349 / 512 W7500 Datasheet Version1.0.0...
1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 18.14.9 Channel-5 Up-Down Mode Register (PWMCH5UDMR) Base address : 0x4000_5500 350 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.14.13 Channel-5 Capture Register (PWMCH5CR) Base address : 0x4000_5500 Address offset : 0x30 Reset value : 0x0000_0000 352 / 512 W7500 Datasheet Version1.0.0...
Channel-5 Dead Zone Enable Register (PWMCH5DZER) Base address : 0x4000_5500 Address offset : 0x38 Reset value : 0x0000_0000 [0] DZE – Dead Zone Enable 0 : Dead zone generation is disabled. 1 : Dead zone generation is enabled. 353 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 354 / 512 W7500 Datasheet Version1.0.0...
PWMCH5CR Channel-5 Capture Register 0x30 reset value PWMCH5PDMR Channel-5 Periodic Mode Register 0x34 reset value Channel-5 Dead Zone Enable PWMCH5DZER 0x38 Register reset value Channel-5 Dead Zone Counter PWMCH5DZCR 0x3C Register reset value 355 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.16.2 Channel-6 interrupt enable register(PWMCH6IER) Base address : 0x4000_5600 Address offset : 0x04 Reset value : 0x0000_0000 356 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.16.6 Channel-6 Prescale Register (PWMCH6PR) Base address : 0x4000_5600 Address offset : 0x14 Reset value : 0x0000_0000 358 / 512 W7500 Datasheet Version1.0.0...
1 when the TC is reached to the LR. Match register should be smaller than limit register(LR). If not, match interrupt is not occurred and PWM output waveform is always 1. 18.16.9 Channel-6 Up-Down Mode Register (PWMCH6UDMR) Base address : 0x4000_5600 359 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.16.13 Channel-6 Capture Register (PWMCH6CR) Base address : 0x4000_5600 Address offset : 0x30 Reset value : 0x0000_0000 361 / 512 W7500 Datasheet Version1.0.0...
Channel-6 Dead Zone Enable Register (PWMCH6DZER) Base address : 0x4000_5600 Address offset : 0x38 Reset value : 0x0000_0000 [0] DZE – Dead Zone Enable 0 : Dead zone generation is disabled. 1 : Dead zone generation is enabled. 362 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 363 / 512 W7500 Datasheet Version1.0.0...
PWMCH6CR Channel-6 Capture Register 0x30 reset value PWMCH6PDMR Channel-6 Periodic Mode Register 0x34 reset value Channel-6 Dead Zone Enable PWMCH6DZER 0x38 Register reset value Channel-6 Dead Zone Counter PWMCH6DZCR 0x3C Register reset value 364 / 512 W7500 Datasheet Version1.0.0...
This bit is set by hardware and cleared by interrupt clear register. O : Capture interrupt does not occur. 1 : Capture interrupt occurs. 18.18.2 Channel-7 interrupt enable register(PWMCH7IER) Base address : 0x4000_5700 Address offset : 0x04 Reset value : 0x0000_0000 365 / 512 W7500 Datasheet Version1.0.0...
The PC is incremented to the value stored in PR. When the PC is reached to PR, the TC is incremented and the PC is reset as 0. 18.18.6 Channel-7 Prescale Register (PWMCH7PR) Base address : 0x4000_5700 Address offset : 0x14 Reset value : 0x0000_0000 367 / 512 W7500 Datasheet Version1.0.0...
If not, match interrupt is not occurred and PWM output waveform is always 1. 18.18.9 Channel-7 Up-Down Mode Register (PWMCH7UDMR) Base address : 0x4000_5700 Address offset : 0x20 368 / 512 W7500 Datasheet Version1.0.0...
0 : Timer/Counter is captured when external input signal is rising edge. 1 : Timer/Counter is captured when external input signal is falling edge. 18.18.13 Channel-7 Capture Register (PWMCH7CR) Base address : 0x4000_5700 Address offset : 0x30 Reset value : 0x0000_0000 370 / 512 W7500 Datasheet Version1.0.0...
Channel-7 Dead Zone Enable Register (PWMCH7DZER) Base address : 0x4000_5700 Address offset : 0x38 Reset value : 0x0000_0000 [0] DZE – Dead Zone Enable 0 : Dead zone generation is disabled. 1 : Dead zone generation is enabled. 371 / 512 W7500 Datasheet Version1.0.0...
[9:0] DZC – Dead Zone Counter value Dead zone generation counter value register. If the DZE bit in DZER is 1, dead zone counter counts to this value and during this time, the two PWM output waveforms are all 0. 372 / 512 W7500 Datasheet Version1.0.0...
PWMCH7CR Channel-7 Capture Register 0x30 reset value PWMCH7PDMR Channel-7 Periodic Mode Register 0x34 reset value Channel-7 Dead Zone Enable PWMCH7DZER 0x38 Register reset value Channel-7 Dead Zone Counter PWMCH7DZCR 0x3C Register reset value 373 / 512 W7500 Datasheet Version1.0.0...
The following Table 29 summarizes the PWM Common registers. Table 29 PWM common register map and reset values Offset Register 비고 Interrupt enable register 0x00 reset value Start/Stop register 0x04 reset value Pause register 0x08 reset value 377 / 512 W7500 Datasheet Version1.0.0...
There is a prescaler that can divide down the clock rate by 1, 16, or 256. Control Load Load BG Load BG Load Value Control IntClear Value 16-bit or 32-bit Counter Prescale counter 0x0000_0000 Clear Interrupt Interrupt Register Interrupt Figure 42 Block diagram of Dualtimer 378 / 512 W7500 Datasheet Version1.0.0...
Write a new value to the Load Value register. Wrapping mode Free-running mode The counter wraps after reaching its zero value, and continues to count down from the maximum value. This is the default mode. Periodic mode 379 / 512 W7500 Datasheet Version1.0.0...
If users select periodic mode, the timer reloads the count value from the load register and continues to decrease. In this mode, the counter effectively generates a periodic interrupt. 380 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0xFFFF_FFFF [31:0] TVR – Timer Value Register This register provides the current value of the decrementing counter. 19.4.3 Timer0_0 Control Register(DUALTIMER0_0TimerControl) Base address : 0x4000_1000 Address offset : 0x08 Reset value : 0x0000_0020 382 / 512 W7500 Datasheet Version1.0.0...
AND of the raw interrupt status with the timer interrupt enable bit from the Timer Control Register, and is the same value that is passed to the interrupt output pin. 384 / 512 W7500 Datasheet Version1.0.0...
[31:0] BGL – Background Load Register This register contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. 385 / 512 W7500 Datasheet Version1.0.0...
DUALTIMER0_0TimerIntClr Register 0x0C reset value Write only register Timer0_0 Raw Interrupt Status DUALTIMER0_0TimerRIS Register 0x10 reset value Timer0_0 Masked Interrupt DUALTIMER0_0TimerMIS Status Register 0x14 reset value Timer0_0 Background Load DUALTIMER0_0TimerBGLoad Register 0x18 reset value 386 / 512 W7500 Datasheet Version1.0.0...
Reset value : 0xFFFF_FFFF [31:0] TVR – Timer Value Register This register provides the current value of the decrementing counter. 19.6.3 Timer0_1 Control Register(DUALTIMER0_1TimerControl) Base address : 0x4000_1020 Address offset : 0x08 Reset value : 0x0000_0020 387 / 512 W7500 Datasheet Version1.0.0...
Base address : 0x4000_1020 Address offset : 0x0C [0] IC – Interrupt Clear Set to the this register clears the interrupt output from the counter. 19.6.5 Timer0_1 Raw Interrupt Status Register (DUALTIMER0_1TimerRIS) Base address : 0x4000_1020 388 / 512 W7500 Datasheet Version1.0.0...
Timer Control Register, and is the same value that is passed to the interrupt output pin. 19.6.7 Timer0_1 Background Load Register (DUALTIMER0_1TimerBGLoad) Base address : 0x4000_1020 Address offset : 0x18 Reset value : 0x0000_0000 389 / 512 W7500 Datasheet Version1.0.0...
Page 390
[31:0] BGL – Background Load Register This register contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. 390 / 512 W7500 Datasheet Version1.0.0...
DUALTIMER0_1TimerIntClr Register 0x0C reset value Write only register Timer0_1 Raw Interrupt Status DUALTIMER0_1TimerRIS Register 0x10 reset value Timer0_1 Masked Interrupt DUALTIMER0_1TimerMIS Status Register 0x14 reset value Timer0_1 Background Load DUALTIMER0_1TimerBGLoad Register 0x18 reset value 391 / 512 W7500 Datasheet Version1.0.0...
This register provides the current value of the decrementing counter. 19.10.3 Timer1_0 Control Register(DUALTIMER1_0TimerControl) Base address : 0x4000_2000 Address offset : 0x08 Reset value : 0x0000_0020 [0] OC – One-shot Count 0 : Wrapping mode, default. 394 / 512 W7500 Datasheet Version1.0.0...
[0] IC – Interrupt Clear Set to the this register clears the interrupt output from the counter. 19.10.5 Timer1_0 Raw Interrupt Status Register (DUALTIMER1_0TimerRIS) Base address : 0x4000_2000 Address offset : 0x10 Reset value : 0x0000_0000 395 / 512 W7500 Datasheet Version1.0.0...
Timer Control Register, and is the same value that is passed to the interrupt output pin. 19.10.7 Timer1_0 Background Load Register (DUALTIMER1_0TimerBGLoad) Base address : 0x4000_2000 Address offset : 0x18 Reset value : 0x0000_0000 396 / 512 W7500 Datasheet Version1.0.0...
Page 397
[31:0] BGL – Background Load Register This register contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. 397 / 512 W7500 Datasheet Version1.0.0...
DUALTIMER1_0TimerIntClr Register 0x0C reset value Write only register Timer1_0 Raw Interrupt Status DUALTIMER1_0TimerRIS Register 0x10 reset value Timer1_0 Masked Interrupt DUALTIMER1_0TimerMIS Status Register 0x14 reset value Timer1_0 Background Load DUALTIMER1_0TimerBGLoad Register 0x18 reset value 398 / 512 W7500 Datasheet Version1.0.0...
This register provides the current value of the decrementing counter. 19.12.3 Timer1_1 Control Register(DUALTIMER1_1TimerControl) Base address : 0x4000_2020 Address offset : 0x08 Reset value : 0x0000_0020 [0] OC – One-shot Count 0 : Wrapping mode, default. 399 / 512 W7500 Datasheet Version1.0.0...
[0] IC – Interrupt Clear Set to the this register clears the interrupt output from the counter. 19.12.5 Timer1_1 Raw Interrupt Status Register (DUALTIMER1_1TimerRIS) Base address : 0x4000_2020 Address offset : 0x10 Reset value : 0x0000_0000 400 / 512 W7500 Datasheet Version1.0.0...
Timer Control Register, and is the same value that is passed to the interrupt output pin. 19.12.7 Timer1_1 Background Load Register (DUALTIMER1_1TimerBGLoad) Base address : 0x4000_2020 Address offset : 0x18 Reset value : 0x0000_0000 401 / 512 W7500 Datasheet Version1.0.0...
Page 402
[31:0] BGL – Background Load Register This register contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. 402 / 512 W7500 Datasheet Version1.0.0...
DUALTIMER1_1TimerIntClr Register 0x0C reset value Write only register Timer1_1 Raw Interrupt Status DUALTIMER1_1TimerRIS Register 0x10 reset value Timer1_1 Masked Interrupt DUALTIMER1_1TimerMIS Status Register 0x14 reset value Timer1_1 Background Load DUALTIMER1_1TimerBGLoad Register 0x18 reset value 403 / 512 W7500 Datasheet Version1.0.0...
An interrupt is generated when the counter reaches 0 and is only cleared when the interrupt clear register is accessed. The register holds the value until the interrupt is cleared. Reset request is asserted when the counter reaches 0 repeatedly and is not reprogrammed. 406 / 512 W7500 Datasheet Version1.0.0...
The minimum valid value for WDTLoad is 1. 20.4.2 Watchdog timer Value Register(WDTValue) Address offset : 0x004 Reset value : 0xFFFF_FFFF [31:0] WVR – Watchdog timer Value Register. This register gives the current value of the decrementing counter. 407 / 512 W7500 Datasheet Version1.0.0...
A write of 1 to this register clears the watchdog interrupt, and reloads the counter from the value in WDTLoad. 20.4.5 Watchdog timer Raw Interrupt Status Register (WDTRIS) Address offset : 0x010 Reset value : 0x0000_0000 408 / 512 W7500 Datasheet Version1.0.0...
20.4.7 Watchdog timer Lock Register(WDTLock) Address offset : 0xC00 Reset value : 0x0000_0000 This register disables write accesses to all other registers. This is to prevent rogue software from disabling the watchdog functionality. Writing a value of 0x1ACCE551 409 / 512 W7500 Datasheet Version1.0.0...
Page 410
0 : Indicates that write access is enabled, not locked. Default. 1 : Indicates that write access is disabled, locked. [31:1] ERW – Enable Register Writes Enable write access to all other registers by writing 0x1ACCE551. Disable write access by writing any other value. 410 / 512 W7500 Datasheet Version1.0.0...
0x00C reset value Write only register Watchdog timer Raw Interrupt WDTRIS 0x010 Status Register reset value Watchdog timer Raw Interrupt WDTMIS Status Register 0x014 reset value WDTLock Watchdog timer Lock Register 0xC00 reset value 411 / 512 W7500 Datasheet Version1.0.0...
Figure 46 shows the I2C block diagram. In addition to receiving and transmitting data, this interface converts it from serial to parallel format and vice versa. The interrupt is enabled or disabled by software. The 412 / 512 W7500 Datasheet Version1.0.0...
SCL line is LOW (Figure 47). One clock pulse is generated for each data bit transferred. Data line Change of Stable data allowed Figure 47. Data Validity 413 / 512 W7500 Datasheet Version1.0.0...
A High to Low transition on the SDA line while SCL is High is one unique case and indicates a START condition. A Low to High transition on the SDA line while SCL is high defines a STOP condition. 414 / 512 W7500 Datasheet Version1.0.0...
This address is seven bits followed by an eight bit which is a data direction bit(R/W) : „0‟ indicates a WRITE, „1‟ indicates a READ There are two methods of setting data direction bit by I2Cx_CTR. The 32-bits I2Cx_CTR is reconfigured with COREEN, INTEREN, MODE, ADDR10, CTRRWN, CTREN. 415 / 512 W7500 Datasheet Version1.0.0...
By default, it operates in slave mode. The interface switches from slave to master when it generates the mode bit in the I2Cx_CTR. And COREEN bit in the I2Cx_CTR must be switched from 1 to 0. 416 / 512 W7500 Datasheet Version1.0.0...
Start conditions on bus detected Stop conditions on bus detected Timeout error Master transaction completed Slave transaction received bus have separate interrupt signals. 417 / 512 W7500 Datasheet Version1.0.0...
CTRW in I2Cx_CTR =0? CTR_WRITE CTR_READ depending on bit 0 of first byte MO DE in I2Cx_CTR =1 clear CORE_EN in I2Cx_CTR =1 Set I2Cx_PRE / I2Cx_TO Initia l E nd Figure 53. I2C initial setting 418 / 512 W7500 Datasheet Version1.0.0...
I2Cx_TR = {Slave Addr[7:1] ,READ or I2Cx_TR = Slave Addr[7:0] WRITE} STA/ACK in I2Cx_CMD = 1 ACK in I2Cx_SR ACK in I2Cx_SR Write I2Cx_TR ACK in I2Cx_SR ACK in I2Cx_SR Figure 54. Master TRANSMIT with ADDR10=0 in the I2Cx_CTR 419 / 512 W7500 Datasheet Version1.0.0...
ACK in I2Cx_SR ACK in I2Cx_SR ACK in I2Cx_SR ACK in I2Cx_SR clear RESTA in I2Cx_CMD =1 Write I2Cx_TR BT in I2Cx_SR ACK in I2Cx_SR ACK in I2Cx_SR Figure 55. Master Transmit with Repeated START 420 / 512 W7500 Datasheet Version1.0.0...
The value should be greater than or equal to 4. Bit Freq(KHz) at (MHz) PRER 1000 2400 1500 1200 1000 [31:8] Reserved, must be kept at reset value The number of I2C, It means the 0,1 422 / 512 W7500 Datasheet Version1.0.0...
1: enable condition [7] STA – Start Condition (master mode) 0: disable Start condition 1: enable Start condition [31:8] Reserved, must be kept at reset value 21.4.4 I2C0 Status Register(I2C0_SR) Address offset: 0x0C Reset value: 0x0000_0000 424 / 512 W7500 Datasheet Version1.0.0...
Page 425
[9] TX – Transmit status This bit set by hardware when the data is transmitting and the data to be transmitted must be written in the I2C0_TXDR register. [31:10] Reserved, must be kept at reset value 425 / 512 W7500 Datasheet Version1.0.0...
[0] SADDR – Slave address bit 0 7-bit addressing mode(ADDR10=0) CTREN = 0 : It indicates a R/W bit CTREN = 1 : This bit are don‟t care [7:1] SADDR[7:1] – Slave address bit 7:1 7-bit addressing mode (ADDR10=0) 426 / 512 W7500 Datasheet Version1.0.0...
[31:8] Reserved, must be kept at reset value 21.4.8 I2C0 Receive Register(I2C0_RXR) Address offset: 0x1C Reset value: 0x0000_0000 [7:0] RXD – 8-bit receive data Data byte received from the bus. [31:8] Reserved, must be kept at reset value 427 / 512 W7500 Datasheet Version1.0.0...
– or as a slave, provided that the peripheral has been addressed previously during this transfer. [31:5] Reserved, must be kept at reset value 21.4.10 I2C0 Interrupt Status Clear Register(I2C0_ISCR) Address offset: 0x24 Reset value: 0x0000_0000 428 / 512 W7500 Datasheet Version1.0.0...
Writing a 1 to this bit clears the TO bit in the I2C0_ISR register Writing 0 has no effect [3]STOEM – STOP detection flag clear (master mode) Writing a 1 to this bit clears the STOP bit in the I2C0_ISR register 429 / 512 W7500 Datasheet Version1.0.0...
Page 430
[4] STAEM – START detection flag clear (master mode) Writing a 1 to this bit clears the STA bit in the I2C0_ISR register Writing 0 has no effect [31:5] Reserved, must be kept at reset value 430 / 512 W7500 Datasheet Version1.0.0...
0x18 reset value Receive Data I2C0RXR Receive Register 0x1C reset value I2C0ISR Interrupt Status Register 0x20 reset value I2C0ISCR Interrupt Status Clear Register 0x24 reset value I2C0ISMR Interrupt Status Mask Register 0x28 reset value 431 / 512 W7500 Datasheet Version1.0.0...
The value should be greater than or equal to 4. Bit Freq(KHz) at (MHz) PRER 1000 2400 1500 1200 1000 [31:8] Reserved, must be kept at reset value The number of I2C, It means the 0,1 432 / 512 W7500 Datasheet Version1.0.0...
1: enable condition [7] STA – Start Condition (master mode) 0: disable Start condition 1: enable Start condition [31:8] Reserved, must be kept at reset value 21.6.4 I2C1 Status Register(I2C1_SR) Address offset: 0x0C Reset value: 0x0000_0000 434 / 512 W7500 Datasheet Version1.0.0...
Page 435
[9] TX – Transmit status This bit set by hardware when the data is transmitting and the data to be transmitted must be written in the I2C1_TXDR register. [31:10] Reserved, must be kept at reset value 435 / 512 W7500 Datasheet Version1.0.0...
[0] SADDR – Slave address bit 0 7-bit addressing mode(ADDR10=0) CTREN = 0 : It indicates a R/W bit CTREN = 1 : This bit are don‟t care [7:1] SADDR[7:1] – Slave address bit 7:1 7-bit addressing mode (ADDR10=0) 436 / 512 W7500 Datasheet Version1.0.0...
[31:8] Reserved, must be kept at reset value 21.6.8 I2C1 Receive Register(I2C1_RXR) Address offset: 0x1C Reset value: 0x0000_0000 [7:0] RXD – 8-bit receive data Data byte received from the bus. [31:8] Reserved, must be kept at reset value 437 / 512 W7500 Datasheet Version1.0.0...
– or as a slave, provided that the peripheral has been addressed previously during this transfer. [31:5] Reserved, must be kept at reset value 21.6.10 I2C1 Interrupt Status Clear Register(I2C1_ISCR) Address offset: 0x24 Reset value: 0x0000_0000 438 / 512 W7500 Datasheet Version1.0.0...
Writing a 1 to this bit clears the ACK_RECV bit in the I2C1_ISR register Writing 0 has no effect [2]TOEM - Timeout interrupt clear Writing a 1 to this bit clears the TO bit in the I2C1_ISR register 439 / 512 W7500 Datasheet Version1.0.0...
Page 440
[4] STAEM – START detection flag clear (master mode) Writing a 1 to this bit clears the STA bit in the I2C1_ISR register Writing 0 has no effect [31:5] Reserved, must be kept at reset value 440 / 512 W7500 Datasheet Version1.0.0...
0x18 reset value Receive Data I2C1RXR Receive Register 0x1C reset value I2C1ISR Interrupt Status Register 0x20 reset value I2C1ISCR Interrupt Status Clear Register 0x24 reset value I2C1ISMR Interrupt Status Mask Register 0x28 reset value 441 / 512 W7500 Datasheet Version1.0.0...
1, 1.5, 2 Stop bits indicating that the frame is complete The USART interface uses a baud rate generator A status register (UART1_RISR) data registers (UART1DR) A baud rate register (UART1_IBRD,UART1_FBRD) 442 / 512 W7500 Datasheet Version1.0.0...
Figure 60 show how to set the UART Initial value. Initia l setting Start Setting UART baudra te Set UARTxLCR_H (Word length/Stop bit/Parity) Set UARTxCR (Mode/Hardwa reFlowControl) Figure 60. UART Initial setting flow chart 444 / 512 W7500 Datasheet Version1.0.0...
FIFO. Error bit is stored in bit[10:8] of UARTxCR and overrun is stored in bit[11] of UARTxCR. Initia l setting Set RTS/CTS of UARTxCR Set FEN of UARTxLCR_H Set RxSel/TxSel of UARTxIFLS Send Tx da ta receive Rx da ta Figure 61. Transmit and Receive data flow chart 445 / 512 W7500 Datasheet Version1.0.0...
Set FEN of UARTxLCR_H Set RxSel/TxSel of UARTxIFLS CTS of UARTxFR =0? RXFE of UARTxFR =0? Send Tx da ta receive Rx da ta BUSY of UARTxFR =1? Figure 64. Algorithm for setting CTS/RTS flowchart 447 / 512 W7500 Datasheet Version1.0.0...
UARTLCR_H [8] FE – Framing error 1: it indicates that the received [7:0] DATA – Receive (READ)/Transmit (WRITE) data 22.4.2 UART0RSR/ECR (UART0 Receive Status Register/Error Clear Register) Address offset: 0x004 Reset value: 0x0000_0000 448 / 512 W7500 Datasheet Version1.0.0...
UART0FR (UART0 Flag Register) Address offset: 0x0018 Reset value: 0bx11000xxx TXFE RXFF TXFF RXFE BUSY [8] RI – Ring indicator This bit is the complement of the UART ring indicator, UART0RI. 1: When nUART0RI is LOW 449 / 512 W7500 Datasheet Version1.0.0...
1: The bit is the complement of the UART clear to send 22.4.4 UART0ILPR (UART0 IrDA Low-Power Counter Register) Address offset: 0x0020 Reset value: 0x00 The UARTILPR Register is the IrDA low-power counter register 450 / 512 W7500 Datasheet Version1.0.0...
These bits are cleared to 0 on reset 22.4.6 UART0FBRD (UART0 Fractional Baud Rate Register) Address offset: 0x0028 Reset value: 0x00 The UART0FBRD register is the fractional part of the baud rate divisor value. 451 / 512 W7500 Datasheet Version1.0.0...
22.4.7 UART0LCR_H (UART0 Line Control Register) Address offset: 0x002C Reset value: 0x00 The UART0LCR_H register is the line control register. This register accesses bits 29 to 22 of the UART line control register, UART0LCR. 452 / 512 W7500 Datasheet Version1.0.0...
Page 453
[0] BRK – Send break 0: For normal use, the bit must be cleared to 0 1: The low-level is continually output on the UARTTXD output Parity bit(Transmitted or checked) Not transmitted or checked Even parity Odd parity 453 / 512 W7500 Datasheet Version1.0.0...
Data reception occurs for either UART signals or SIR signals depending on the setting of the SIREN bit. When the UART is disabled in the middle of reception, it completes the current character before stopping. 454 / 512 W7500 Datasheet Version1.0.0...
Reset value: 0x12 The UARTIFLS register is the interrupt FIFO level select register. RXIFLSEL TXIFLSEL [5:3] RXIFLSEL – Receive interrupt FIFO level select Reserved 7/8 full 3/4 full 1/2 full 1/4 full 1/8 full 455 / 512 W7500 Datasheet Version1.0.0...
It indicates state of the UART0FEINTR interrupt. [6] RTRIS – Receive timeout interrupt status It indicates state of the UART0RTINTR interrupt. [5] TXRIS – Transmit interrupt status It indicates state of the UART0TXINTR interrupt. 457 / 512 W7500 Datasheet Version1.0.0...
[5] TXMIS – Transmit masked interrupt status It indicates state of the UART0TXINTR interrupt. [4] RXMIS – Receive masked interrupt status It indicates state of the UART0RXINTR interrupt. [3] DSRMMIS – nUART0DSR modem masked interrupt status 458 / 512 W7500 Datasheet Version1.0.0...
1: it indicates that the received [7:0] DATA – Receive (READ)/Transmit (WRITE) data 22.6.2 UART1RSR/ECR (UART1 Receive Status Register/Error Clear Register) Address offset: 0x004 Reset value: 0x0000_0000 The UART1RSR/ECR is the receive status register/error clear register. 462 / 512 W7500 Datasheet Version1.0.0...
Reset value: 0bx11000xxx TXFE RXFF TXFF RXFE BUSY [8] RI – Ring indicator This bit is the complement of the UART ring indicator, UART1RI. 1: When nUART1RI is LOW [7] TXFE – Transmit FIFO empty 463 / 512 W7500 Datasheet Version1.0.0...
1: The bit is the complement of the UART clear to send 22.6.4 UART1ILPR (UART1 IrDA Low-Power Counter Register) Address offset: 0x0020 Reset value: 0x00 The UARTILPR Register is the IrDA low-power counter register 464 / 512 W7500 Datasheet Version1.0.0...
These bits are cleared to 0 on reset 22.6.6 UART1FBRD (UART1 Fractional Baud Rate Register) Address offset: 0x0028 Reset value: 0x00 The UART1FBRD register is the fractional part of the baud rate divisor value. BAUD DIVFRAC 465 / 512 W7500 Datasheet Version1.0.0...
22.6.7 UART1LCR_H (UART1 Line Control Register) Address offset: 0x002C Reset value: 0x00 The UART1LCR_H register is the line control register. This register accesses bits 29 to 22 of the UART line control register, UART1LCR. 466 / 512 W7500 Datasheet Version1.0.0...
Page 467
[0] BRK – Send break 0: For normal use, the bit must be cleared to 0 1: The low-level is continually output on the UARTTXD output Parity bit(Transmitted or checked) Not transmitted or checked Even parity Odd parity 467 / 512 W7500 Datasheet Version1.0.0...
Data reception occurs for either UART signals or SIR signals depending on the setting of the SIREN bit. When the UART is disabled in the middle of reception, it completes the current character before stopping. 468 / 512 W7500 Datasheet Version1.0.0...
Reset value: 0x12 The UARTIFLS register is the interrupt FIFO level select register. RXIFLSEL TXIFLSEL [5:3] RXIFLSEL – Receive interrupt FIFO level select Reserved 7/8 full 3/4 full 1/2 full 1/4 full 1/8 full 469 / 512 W7500 Datasheet Version1.0.0...
It indicates state of the UART1FEINTR interrupt. [6] RTRIS – Receive timeout interrupt status It indicates state of the UART1RTINTR interrupt. [5] TXRIS – Transmit interrupt status It indicates state of the UART1TXINTR interrupt. 471 / 512 W7500 Datasheet Version1.0.0...
It indicates state of the UART1TXINTR interrupt. [4] RXMIS – Receive masked interrupt status It indicates state of the UART1RXINTR interrupt. [3] DSRMMIS – nUART1DSR modem masked interrupt status It indicates state of the UART1DSRINTR interrupt. 472 / 512 W7500 Datasheet Version1.0.0...
Programmable clock bit rate and prescaler. The input clock may be divided by a factor of 2 to 254 in steps of two to provide the serial output clock Programmable clock phase and polarity. 476 / 512 W7500 Datasheet Version1.0.0...
When configured as a master or a slave, parallel data is written into the transmit FIFO prior to serial conversion and is transmitted to the attached slave or master through the SSPTXD pin. 477 / 512 W7500 Datasheet Version1.0.0...
Receive – The DMA interface includes the following signals for receive: SSPRXDMASREQ Single-character DMA transfer request asserted by the SSP. This signal is asserted when the receive FIFO contains at least one character. SSPRXDMABREQ 478 / 512 W7500 Datasheet Version1.0.0...
Table 41 shows the trigger points for DMABREQ of both the transmit and receive FIFOs. Table 41 DMA trigger points for the transmit and receive FIFOs. Burst length Watermark Transmit, number of empty locations Receive, number of filled locations 479 / 512 W7500 Datasheet Version1.0.0...
• Motorola SPI • Texas Instruments SSI • National Semiconductor. The bit rate, derived from the external SSPCLK, requires the programming of the clock prescale register SSPCPSR. 480 / 512 W7500 Datasheet Version1.0.0...
12 and the SCR[7:0] field in the SSPCR0 register can be programmed with a value of 0. Similarly, the ratio of SSPCLK maximum frequency to SSPCLKOUT minimum frequency is 254 x 256. 481 / 512 W7500 Datasheet Version1.0.0...
To configure the PrimeCell SSP as a master, clear the SSPCR1 register master or slave selection bit, MS, to 0. This is the default value on reset. Setting the SSPCR1 register MS bit to 1 configures the PrimeCell SSP as a slave. When 482 / 512 W7500 Datasheet Version1.0.0...
FIFO still contains data after a timeout period. For Motorola SPI and National Semiconductor Microwire frame formats, the serial frame SSPFSSOUT pin is active-LOW and is asserted and pulled-down during the entire transmission of the frame. 483 / 512 W7500 Datasheet Version1.0.0...
SSPRXD pin by the off-chip serial slave device. Both the PrimeCell SSP and the off-chip serial slave device then clock each data bit into their serial shifter on the falling edge of each SSPCLKOUT. The received data is transferred 484 / 512 W7500 Datasheet Version1.0.0...
When the SPH clock phase control bit is HIGH, data is captured on the second clock edge transition. Figure 69 and Figure 70 show single and continuous transmission signal sequences for Motorola SPI format with SPO=0, SPH=0. 485 / 512 W7500 Datasheet Version1.0.0...
SSPFSSOUT master signal being driven LOW. This causes the slave data to be enabled onto the SSPRXD input line of the master. The nSSPOE line is driven LOW, enabling the master SSPTXD output pad. 486 / 512 W7500 Datasheet Version1.0.0...
Figure 71 Motorola SPI frame format, single and continuous transfers, with SPO=0 and SPH=1 In this configuration, during idle periods: • the SSPCLKOUT signal is forced LOW • The SSPFSSOUT signal is forced HIGH • the transmit data line SSPTXD is arbitrarily forced LOW 487 / 512 W7500 Datasheet Version1.0.0...
Figure 72 Motorola SPI frame format, single transfer, with SPO=1 and SPH=0 Figure 73 shows a continuous transmission signal sequence for Motorola SPI format with SPO=1, SPH=0. In Figure 9, Q is an undefined signal. 488 / 512 W7500 Datasheet Version1.0.0...
SPH bit is logic zero. Therefore, the master device must raise the SSPFSSIN pin of the slave device between each data transfer to enable the serial peripheral data write. On completion of the 489 / 512 W7500 Datasheet Version1.0.0...
After all bits have been transferred in the case of a single word transmission, the SSPFSSOUT line is returned to its idle HIGH state one SSPCLKOUT period after the last bit has been captured. 490 / 512 W7500 Datasheet Version1.0.0...
• the nSSPOE pad enable signal is forced HIGH, making the transmit pad high impedance. A transmission is triggered by writing a control byte to the transmit FIFO. The falling edge of SSPFSSOUT causes the value contained in the bottom entry of the transmit FIFO to be 491 / 512 W7500 Datasheet Version1.0.0...
Figure 76 shows the National Semiconductor Microwire frame format when back-to-back frames are transmitted. SSPCLKOUT/ SSPCLKIN SSPFSSOUT/ SSPFSSIN SSPTXD 4 to 16 bits 8-bit control output data SSPRXD nSSPOE Figure 76. National Semiconductor Microwire frame format, continuous transfers 492 / 512 W7500 Datasheet Version1.0.0...
SPI MOSI line. In response, the slave drives its nSSPOE signal LOW. This enables its SSPTXD data onto the MISO line of the master. MOSI SSPRXD nSSPOE MISO SSPTXD SSPFSSIN SSPCLKIN SSPFSSOUT nSSPCTLOE SSPCLKOUT Figure 78. SPI master coupled to a PrimeCell SSP slave 493 / 512 W7500 Datasheet Version1.0.0...
The value SCR is used to generate the transmit and receive bit rate of the SSP. The bit rate is: fSSPCLK / (CPSDVR * (1 + SCR)) where CPSDVSR is an even value from 2-254, programmed through the SSPCPSR register and SCR is a value from 0-255. 496 / 512 W7500 Datasheet Version1.0.0...
0 : SSP0 can drive the SSPTXD output in slave mode. 1 : SSP0 must not drive the SSPTXD output in slave mode. 23.4.3 SSP0 Data register (SSP0DR) Address offset: 0x0008 Reset value: 0x0000_0000 497 / 512 W7500 Datasheet Version1.0.0...
1 : Receive FIFO written to while full condition interrupt is not masked. [1] RTIM – Receive timeout interrupt mask: 0 : Receive FIFO not empty and no read prior to timeout period interrupt is masked. 499 / 512 W7500 Datasheet Version1.0.0...
[2] RXRIS – Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt [3] TXRIS – Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt 23.4.8 SSP0 Masked interrupt status register, (SSP0MIS) Address offset: 0x001C Reset value: 0x0000_00000 500 / 512 W7500 Datasheet Version1.0.0...
Page 502
0 : DMA for the receive FIFO is disabled. 1 : DMA for the receive FIFO is enabled. [1] TXDMAE – Transmit DMA Enable: 0 : DMA for the transmit FIFO is disabled. 1 : DMA for the transmit FIFO is enabled. 502 / 512 W7500 Datasheet Version1.0.0...
Interrupt Mask set or clear register 0x14 reset value SSPRIS Raw interrupt status register 0x18 reset value SSPMIS Masked interrupt status register 0x1C reset value SSPICR Interrupt clear register 0x20 reset value SSPDMACR DMA control regsiter 0x24 reset value 503 / 512 W7500 Datasheet Version1.0.0...
The value SCR is used to generate the transmit and receive bit rate of the SSP. The bit rate is: fSSPCLK / (CPSDVR * (1 + SCR)) where CPSDVSR is an even value from 2-254, programmed through the SSPCPSR register and SCR is a value from 0-255. 504 / 512 W7500 Datasheet Version1.0.0...
To operate in such systems, the SOD bit can be set if the SSP1 slave is not supposed to drive the SSPTXD line: 0 : SSP1 can drive the SSPTXD output in slave mode. 1 : SSP1 must not drive the SSPTXD output in slave mode. 505 / 512 W7500 Datasheet Version1.0.0...
[2] RXRIS – Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt [3] TXRIS – Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt 23.6.8 SSP1 Masked interrupt status register, (SSP1MIS) Address offset: 0x001C Reset value: 0x0000_00000 508 / 512 W7500 Datasheet Version1.0.0...
Page 510
0 : DMA for the receive FIFO is disabled. 1 : DMA for the receive FIFO is enabled. [1] TXDMAE – Transmit DMA Enable: 0 : DMA for the transmit FIFO is disabled. 1 : DMA for the transmit FIFO is enabled. 510 / 512 W7500 Datasheet Version1.0.0...
Interrupt Mask set or clear register 0x14 reset value SSPRIS Raw interrupt status register 0x18 reset value SSPMIS Masked interrupt status register 0x1C reset value SSPICR Interrupt clear register 0x20 reset value SSPDMACR DMA control regsiter 0x24 reset value 511 / 512 W7500 Datasheet Version1.0.0...
Document History Information Version Date Descriptions Ver. 1.0.0 01MAY2015 Initial Release Copyright Notice Copyright 2015 WIZnet Co., Ltd. All Rights Reserved. Technical Support: http://wizwiki.net/forum Sales & Distribution: sales@wiznet.co.kr For more information, visit our website at http://www.wiznet.co.kr 512 / 512 W7500 Datasheet Version1.0.0...