Introduction Overview The series of BLE devices discussed in this guide are Holtek’s fully integrated single chip Bluetooth Low Energy transparent transmission controllers. The devices require a patch code to activate the BLE function for full BLE optimization. This patch code can be downloaded from an EEPROM or MCU for which the patch source can be selected by the IIC_SDA line status during the reset period.
Page 4
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Name Direction Level Description 0: Enter S�eep mode MCU contro�s the WAKEUP pin WAKEUP Inp�t �: Wake �p the device (de�a�<3ms) WAKEUP=1 → STATE=1 when active 0: UART interface Pin level should be fixed during a reset and checked SPI-UR_N Inp�t...
Page 5
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Interface Select Pin – SPI-UR_N The SPI-UR_N pin is used to select which interface is used for data transfer. The SPI-UR_N pin status will be checked after a reset after which the interface selected can be determined. If the SPI- UR_N pin status is high the SPI interface will be selected while the UART interface will be selected if the SPI-UR_N pin status is low.
Page 7
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide SPI_INT INT_EXT MCU read data from the BLE transparent transmission contro��er Wake-up Pin – WAKEUP The WAKEUP pin is used to select the device operation mode while the STATE pin is used to indicate the device operation status.
Page 8
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Host Start Interaction When the host MCU sets the WAKEUP pin high, the device will set the STATE pin high after a delay time, T_2, as shown in the following diagram. After this the BLE device will be in the active mode.
Page 9
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Transmission Flow – TX Flow The MCU can transmit the Command or Payload to the BLE device using the corresponding format. Start WAKEUP F�ow (Check WAKEUP F�ow) Write Tx Data (SW Write Tx) TX Flow Reception Flow –...
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide BLE Device Command / Event The BLE device supports several commands and events for communication with the host MCU. Some GATT services are also supported to communicate with cell phones. To more conveniently describe the command/event format several abbreviations are used which are listed in the following table.
Page 14
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Write Command (Cmd) / Event (Evt) Format These commands are used to configure the device parameters. The corresponding events are the results after the configuration has taken place. Length Header Opcode...
Page 15
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Length Header Opcode Data /Result Write Cmd/Evt TxPwr (� b�te) 0: 3dBm TxPowerWrite Cmd 0x25 0x38 0x01 �: 0dBm Others: Reserved Res��t TxPowerWrite Evt 0x26 0x38 0: ok others: fai� Description: Configure the device RF TX power setting value.
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Length Header Opcode Data /Result Write Cmd/Evt Res��t ScanResDataWrite 0x26 0x51 0: ok others: fai� Description: The ScanResDataWrite command is used to setup the whole scan response data field value and can only be used after a Patch_B execution.
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide SPI Interface Hardware setup The hardware environment should be established before using the SPI interface. • Keep the SPI-UR_N pin=1 before the RST_N pin=1 • If patched from the MCU, keep the IIC_SDA pin=0 •...
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide SPI interface default setting 5-Wire : SPI_MISO� SPI_MOSI� SPI_CS� SPI_CLK� SPI_INT/INT_EXT Data �ength : 8 bits (MSB first) Format : CPOL=0� CPHA=0 Operating mode : Duplex Max. Frequency : �0MHz SPI Command Format...
Page 20
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Name Addr Description SPI Interr�pt enab�e contro� Used to enab�e the corresponding interr�pt f�nction. 0: Corresponding interr�pt not enab�ed �: Corresponding interr�pt enab�ed Bit[�5:5] Reserved CR�: Int_Set 0x02 Bit[4] BLE Tx FIFO not empty...
Page 21
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Name Addr Description BLE device stat�s� read on��. The host MCU can read this register to know the BLE device stat�s. Stat�s_BLE_ROM_Init Bit[�5] 0: Not read� �: Read� Stat�s_BLE_S�eep Bit[�4] 0: Active �: S�eep...
Page 22
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Name Addr Description BLE device stat�s set contro�� write on��. The MCU can set the corresponding bit high to trigger vario�s BLE device actions. Bit[�5:��] Reserved Set_BLE_Can_S�eep Bit[�0] Setting this bit high wi�� enab�e the BLE device active/s�eep a�to-switch f�nction.
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Initialization Flow for the Mode_A – Patch from the MCU using the SPI Interface Start StepA7: Download Patch_B StepA1: Check Device Ready StepA8: Read RF Calibration Value StepA2: Disable EEPROM Check...
Page 24
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Mode A – Patch from the MCU using the SPI Interface Flow • StepA1: Check Device Ready ♦ Read the Physical Address 0x0060_2020 to check whether the device Power-On is ready or not.
Page 25
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Example for Mode_A – Patch from MCU using SPI Interface Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch • StepA1: Check Device Ready ♦ Read the Physical Address 0x0060_2020 to check whether the device Power-On is ready or not. If Bit[15]=1, it means that the device Power-On is read�...
Page 26
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch • StepA5: Execute Patch_A ♦ Write the Physical Address 0x0020_1F80 with a value of 0x0020_0500 after which the Patch_A code will start to boot for the variab�e set�p� RF ca�ibration� etc.
Page 28
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch 090000 (Read Register: CR4_FIFO_Co�nt=0000� read back for check) 0B8400 (Read Register: CR5_BLE_Stat�s=8400� read back for check) 0F0000 (Read Register: CR�_BLE_Stat�s_Set=0000� read back for check) • StepA10: Setup BLE Setting –...
Page 29
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch Patch Time for the Mode_A – Patch from the MCU using the SPI Interface The patch time may be different due to various versions. The following patch time is measured for the patch version 161025A5, in which the Patch_A size=0x02C0 bytes and the Patch_B size=0x1480 bytes.
Page 30
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Example for the Mode_B – Patch from the EEPROM using the SPI Interface Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch • StepB1: Check Patch_B Success ♦ Read the Physical Address 0x0060_2020 to check whether the Patch_B execution is ready or not. If Bit[10]=1, then this means that device Patch_B boot is s�ccessf��.
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide UART Interface Hardware Setup The hardware environment should be established before using the UART interface. • Keep the SPI-UR_N pin=0 before the RST_N pin=1 • If patched from the MCU, keep the IIC_SDA pin=0. The IIC_CLK pin can then be used to select the default baudrate.
Page 33
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide IIC_CLK EE_WP BLE Device Patch from EEPROM using UART Interface UART Interface Default Setup F�ow contro� : Enab�e Data �ength : 8 bits Stop bit : � bit Parit� : None Ba�drate...
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Initialization Flow for the Mode C – Patch from the MCU using the UART Interface Start StepC6: StepC1: Download Patch_B Check Device Ready StepC7: Setup BLE Setting StepC2: Disable EEPROM Check...
Page 35
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide • StepC8: Execute Patch_B ♦ The MCU writes the Physical Address 0x0020_1F80 with a value 0f 0x0000_0000 after which the Patch_B code wi�� start to boot. • StepC9: Check Patch_B Success ♦ Read the Physical Address 0x0060_2020 to check whether the Patch_B boot is ready or not. If Bit[�0]=��...
Page 36
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch • StepC6: Download Patch_B ♦ The MCU sends the Patch_B code to the device and writes the Patch_B code to the Ph�sica� Address 0x0020_0500.
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Patch Time for the Mode_C – Patch from the MCU using the UART Interface The patch time may be different due to various versions. The following patch time is measured for the patch version 161025A5, in which the Patch_A size=0x02C0 bytes and the Patch_B size=0x1480 bytes.
Page 38
Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch • StepN: Connection Established UART_Rx=22FF11 • StepN+1: Receive Payload Packet from cell phone UART_Rx=2203123456 (payload=123456) Patch Time for the Mode_D – Patch from the EEPROM using the UART Interface The patch time may be different due to various versions.
Need help?
Do you have a question about the BC7601 and is the answer not in the manual?
Questions and answers