1 Product Overview 1.1 Outline CW6632B is a highly integrated system on chip for Bluetooth v3.0 with Enhanced Data Rate (EDR). This SOC is backward-compatible with Bluetooth 2.1, 2.0 and 1.2 systems. The Bluetooth chip supports a data rate of 1M/2M/3Mbps.
3.1 Architecture 3 CPU Core Information 3.1 Architecture The AXC51-CORE of CW6632B is fully compatible with the MCS-51 instruction set. The AXC51-CORE employs a pipelined architecture that greatly increases its instruction throughput over the standard 8051 architecture. In a standard 8051, all instructions except for MUL and DIV take 12 or 24 system clock cycles to execute, and usually have a maximum system clock of 12MHz.
@DPTR, A MOVX @Ri, A data addr, A @Ri, A Rn, A 3.3 Memory Mapping 3.3.1 Program Memory Mapping As illustrated in CW6632B program space is divided into 3 regions: SRAM1, SRAM2, and IROM. 0xFFFF IROM 0x6400 0x63FF SRAM2 SRAM1 0x0000...
Setting EA to logic 0 disables all interrupts regardless of the individual interrupt-enable settings. The interrupt enables and priorities are functionally identical to those of the 80C52. The CW6632B provides 3 sets of vectors entry addresses, starting from 0x0003, 0x4003 and 0x8003. The vector base address is set by DPCON [7:6].
Page 22
DPTR. The CW6632B offers a programmable option that allows any instructions related to data pointer to toggle the DPSEL bit automatically. This option is enabled by setting the toggle-select-enable bit (DPTSL) to logic 1.
Page 23
In a standard 8051, there is only an 8-bit stack pointer (SP). It can only use the internal 256 byte data memory as stack memory. To increase the stack space for more complex application, CW6632B supports a 16-bit extend stack pointer, it can use both internal data RAM and the 20K byte on-chip SRAM as stack memory.
4 Reset Generation 4.1 Power-on Reset (POR) CW6632B provides an on-chip Power-On-Reset (POR) circuit to detect power-on and to reset internal logic before VDD reaches the pre-determined POR threshold voltage. When VDD=1.2V, the POR threshold voltage is set to be about 0.7V~0.9V.
Low-Drop-Out regulator (LDO) and that supplies power to internal VDDCORE. User for such reason can momentarily monitor the VDDLDO power if externally connects to some batteries and detect if external power source starts dropping to a level that CW6632B LDO cannot tolerate and can do proper actions in the system program.
1 = LVD output is disabled 4.2.2 RTCC Reset CW6632B can be reset by RTCC second and alarm interrupt when IRTRSTEN bit in RTCON is set to 1. 4.2.3 Watchdog Reset If Watchdog timer is enabled, and WDTCON [5] is not written by 1 within watchdog overflow time period, CW6632B will be reset by Watchdog overflow.
4.3 Clock System 4.3.1 Clock Control CW6632B embeds 32K/4M/12M/24M OSC internal oscillator circuits. External crystal is needed to generate a clock source. One internal PLL can generate 48MHz from the crystal clock source. One internal RC oscillator is also embedded.
4.3.3 Phase Lock Loop (PLL) CW6632B provides one on-chip Phase Locked Loop (PLL 48M) clock generators. The PLL has reference clock from external 32 KHz/4M/12 M crystal oscillators to provide a stable reference clock and the reference clock is multiplied to provide the final PLL output.
(ISR), else CW6632B will execute the instruction following HOLD. When wakeup from HOLD Mode by watchdog, if watchdog reset enable, CW6632B will be reset, else if watchdog interrupt is enabled, CW6632B will enter watchdog‟s ISR. Else CW6632B will execute the instruction following HOLD.
TO enter IDLE mode, user need to write a „1‟ to IDLE register (Bit2 of PCON0). When exit IDLE mode, CW6632B will enter interrupt service subroutine if EA is enable. If EA is disabled, the instruction next to IDLE will be executed.
6.4 Port interrupt and wakeup 6.4 Port interrupt and wakeup CW6632B supports Port interrupt and wakeup function. The PWKEN registers (Wakeup Enable Register) allow port to cause wakeup. The PWKEN registers are set to 0Fh upon reset. Clearing bit0-3 in the PWKEN register enables wakeup on corresponding pin.
Page 73
Note: TMR2PWM is reserved in timer/counter mode. In PWM mode, it is used as duty cycle setting. In capture mode, the value of TMR2CNT will be captured to TMR2PWM when selected event occurs. CW6632B Bluetooth 3.0 Audio Player SOC Version 1.0.0...
7.5.1 Watchdog Wake up WDT can be used to wake up CW6632B from Idle, Hold or Sleep mode. RSTEN bit (WDTCON [3]) is used to determine the actions after WDT wake up. When RSTEN sets to 0, the watchdog will generate a non-reset wake up after counter overflows.
7.5 Watchdog Timer (WDT) next instruction. During Sleep mode, CW6632B can be wakeup by WDT with reset. During Deep Sleep mode, CW6632B cannot be wakeup by WDT. 7.5.2 Watchdog SFR Register 7-19 WDTCON – Watchdog control Position Name...
9.1 IR frame format 9 IR receiver CW6632B provides digital IR receiver, it can receiver IR data then CPU can read IR data from IR data buffer. 9.1 IR frame format Figure 9-1 shows the IR data frame format 45ms...
11. Go to Step 8 to start another DMA process if needed or turn off SPI0 by clearing SPI0IE and SPI0EN SPI1 10.2 CW6632B SPI1 is an accelerated SPI. It can serve as master only. It can operate in normal or DMA mode. Please see PMUXCON0 bit 5 descriptions SPI1 uses 2 pins for 2 wire mode: Serial Data (SPIDIDO1) –...
Wait for bit SPI1PND to change to „1‟, or wait for interrupt 10. Go to Step 7 to start another DMA process if needed or turn off SPI by clearing SPI1PND and SPI1EN CW6632B Bluetooth 3.0 Audio Player SOC Version 1.0.0...
12.1 Features 12 SD Card Host Controller (SDC) 12.1 Features The CW6632B SD card host controller can support SD/MMC card devices. SD memory Card Spec (Ver2.0)/ MMC Spec (Ver4.3) compatible; CRC7 and CRC16 Generator; Support Interrupt and DMA Data transfer mode;...
14 SARADC 14 SARADC 14.1 Features CW6632B provides an 11-channel moderate conversion speed and a moderate resolution 10-bit successive approximated register Analog to Digital Converter (SARADC) for users to develop applications in the following areas: Voice grade applications ...
IIS support loop operation mode.that is send out data come from RX pin. And the tx data will delay 2-4 sample before really data come out.and the first 2-4 sample being send out is all 0s.must config OP_MOD=2‟b11; CW6632B Bluetooth 3.0 Audio Player SOC Version 1.0.0...
Need help?
Do you have a question about the CW6632B and is the answer not in the manual?
Questions and answers