www.ti.com
36
CapTIvate™ Touch Getting Started Manual
Copyright © 2020, Texas Instruments Incorporated
Figure 5-18 Schematic diagram of the overall code
Table 5-13 shows the information related to the custom communication function.
Table 5-13 Customized communication function table
Number
Object
Modification method
Comment
1
eUSCI_A0/eUSCI_B0
port
Modify the pin definition in
Captivate_app->CAPT_BSP.C->BSP_configureMCU()
Select other
communication
peripherals, need to
modify the initialization
of the peripherals.
2
IRQ signal of I2C
Modify the macro definition of IRQ pin in
Captivate->COMM->CAPT_CommConfig.h
Modify the macro definition of IRQ pin action in
Captivate->COMM->I2CSlave.h
This pin is used to
remind the host
computer of a touch
event.
3
Whether the
CapTIvate module
enables the Timer
peripheral
Modify the assignment of FUNCTIONTIMER__ENABLE in
CapTIvate->COMM->FunctionTimer.h
Used for timeout
function in I2C
communication.
5
Timeout function of
I2C communication
Modify the assignment of I2CSLAVE__TIMEOUT_ENABLE in
Captivate->COMM->I2CSlave_Definitions.h
Modify the assignment of
I2CSLAVE__TXFR_TIMEOUT_CYCLES in
Captivate->COMM->I2CSlave_Definitions.h
By default, the host will
reset I2C if a single frame
transmission exceeds
8ms.
5
Modify I2C address
Modify I2CSLAVE__ADDRES in
CapTIvate->COMM->I2CSlave_Definitions.h
5.5.4
Bootloader
Bootloader is mainly used for online upgrade. The hardware needs to occupy 4 Pin feet. Two pins (RST, TEST) are
used to select the bootloader mode, and the remaining 2 pins are used for communication. Because the
capacitive touch function needs to occupy a lot of code space, it is recommended to use the ROM Bootloader
that comes with the MSP430.
User Guide
: