Advertisement

Quick Links

Bluetooth Low Energy (BLE)
Transparent Transmission Controller Programming User Guide
BC7601/BC7602/BC32F7611
Revision: V0.00
Date: ���� ��� �0��
���� ��� �0��

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BC7601 and is the answer not in the manual?

Questions and answers

Summary of Contents for Holtek BC7601

  • Page 1 Bluetooth Low Energy (BLE) Transparent Transmission Controller Programming User Guide BC7601/BC7602/BC32F7611 Revision: V0.00 Date: ���� ��� �0�� ���� ��� �0��...
  • Page 2: Table Of Contents

    Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Table of Contents Introduction ......................3 Overview ............................3 Pin Description ..........................3 Pin F�nctiona� Description ......................4 BLE Device Command / Event ................10 GATT Service Description ......................�0 Command (Cmd) / Event (Evt) Format ..................�0 Read Command (Cmd) / Event (Evt) Format ................
  • Page 3: Introduction

    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 6 Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Interaction started T_5>�0ms RST_N T_�>100μs SPI-UR_N UART Interface Se�ected Mode_C IIC_SDA MCU Patch Se�ected IIC_CLK Ba�d rate = ��5��00 bps IIC_CLK Ba�d rate = ��600 bps EEPROM Write Protect Control Pin – EE_WP...
  • 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 –...
  • Page 10: Ble Device Command / Event

    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 11: Read Command (Cmd) / Event (Evt) Format

    Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Header Payload Type Dir. Length Write Ph�sica� (b�te*�� Reserved Address Data M→S 0x55 Address �nit=b�te*4� (b�te*�) (b�te*4� LSB) (b�te*Length*4� LSB) max=60) Length Read Ph�sica� (b�te*�� Address M→S 0x56 Address �nit=b�te*4� (b�te*4)
  • Page 12: Payload Format

    Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Header Opcode Length Data Read Cmd/Evt Adv Interva� AdvIntvRead 0x21 0x35 0x04 (4 b�tes� Unit: � ms� Va�id Range=�0~�0000� LSB) Description: Read B��etooth Device Advertising Interva� AdvDataRead 0x20 0x36 Length Adv Data...
  • Page 13 Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Length Header RF Payload Payload Packet /Result Length Pa��oad Packet RF Pa��oad 0x22 (�p to �00 Command (MSB) b�tes) Length Header Opcode Payload Packet /Result Res��t Pa��oad Packet Evt 0x26 0x22 0: ok others: fai�...
  • 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.
  • Page 16: Event Packet

    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.
  • Page 17: Accessible Physical Address

    Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Accessible Physical Address Address Description Note 0x0000_5FFC ROM Version 0x99000000 0: Reserved 0x0020_0134 Disab�e EEPROM Check �: Disab�e EEPROM check 0x0000~0x00B4 B�ffer size 0x0020_0480 Tx Buffer Valid Size 0xFFFF B�ffer error...
  • Page 18: Spi Interface

    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 •...
  • Page 19: Spi Command Format

    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.
  • Page 23: Initia�Ization F�Ow For The Mode_A - Patch From The Mcu �Sing The Spi Interface

    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 27 Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch 6C5701000088042000A0E12000 (Read FIFO: RF Calibration Value’s Address=0x00201E0A) A65606A01E2000 (Write FIFO) 090000 (Read Register: SPI Tx FIFO count(CR4[11:6])=0) 090800 (Read Register: SPI Tx FIFO count(CR4[11:6])=0x20) 6056060000A0�E�000AA55�5�3�5�5���5�������������B�B�B�B�D�D8�8�8�8�...
  • 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��.
  • Page 31 Pre�iminar� BC7601/BC7602/BC32F7611 BLE Transparent Transmission Controller Programming User Guide Text Font Norma� Bold Italic S�bject MCU_Rx MCU_Tx Patch A425380100 (Write FIFO: TxPowerWrite Command) 090000 (Read Register: SPI Tx FIFO count(CR4[11:6])=0) 0900C0 (Read Register: SPI Tx FIFO count(CR4[11:6])=0x03) 63263800 (Read FIFO: TxPowerWrite Evt ) • StepN: Connection Established...
  • Page 32: Uart Interface

    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...
  • Page 34: Initia�Ization F�Ow For The Mode C - Patch From The Mcu �Sing The Uart Interface

    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.
  • Page 37: Initia�Ization F�Ow For The Mode D - Patch From The Eeprom �Sing The Uart Interface

    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.
  • Page 39 BLE Transparent Transmission Controller Programming User Guide Cop�right �0�� b� HOLTEK SEMICONDUCTOR INC. © The information appearing in this Data Sheet is be�ieved to be acc�rate at the time of p�b�ication. However� Ho�tek ass�mes no responsibi�it� arising from the �se of the specifications described.

This manual is also suitable for:

Bc7602Bc32f7611

Table of Contents