Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

How to log data in Bridge Control Panel (BCP) using MiniProg3 (UART) for PSoC 3/4/5LP devices?

How to log data in Bridge Control Panel (BCP) using MiniProg3 (UART) for PSoC 3/4/5LP devices?

ChaitanyaV_61
Employee
Employee
50 questions asked 25 likes received 25 sign-ins

To log data in the Bridge Control Panel (BCP) make following steps:

 

STEP 1: Set up a UART interface with the required pins using PSoC Creator. While sending the UART TX data, add the header and footer bytes to enable the BCP bridge to synchronize data correctly.

For example in PSoC 4 devices:

header[2] = {0x0D, 0x0A};

footer[3] = {0x00, 0xFF, 0xFF};

buffer[BUFFER_SIZE] = {0x1, 0x2, 0x3};

UART_SpiUartPutArray(header, 2);

UART_SpiUartPutArray(buffer, BUFFER_SIZE);

UART_SpiUartPutArray(footer, 3);   

 

STEP 2: Connect MiniProg3 to the PC. Connect the following pins between the PSoC board and the MiniProg3 5-pin connector:

a. XRES pin of the MiniProg3 5-pin connector to the UART TX pin of PSoC.

b. GND of the MiniProg3 5-pin connector to the GND on the PSoC board. You can either supply power to the PSoC using the VTARG pin of MiniProg3 or leave it unconnected if PSoC has an external power source.

 

STEP 3: Launch Bridge Control Panel from the Start menu. If MiniProg3 is not connected in the GUI, press the Connect button. Then choose RX8 protocol in the GUI or Tools > Protocol Configuration to open the Protocol Configuration window. Select the RX8 tab.

 

STEP 4: Ensure that the baud rate setting in the PSoC and BCP bridge are the same. To set the baud rate in BCP bridge, press [F7]  or choose Tools > ProtocolConfiguration. Navigate to the RX8 (UART) tab and set the bit rate.

 

STEP 5: Open Variable Settings (Chart > Variable Settings) to set up the variables to receive data.

 

STEP 6: Use the following Bridge Control Panel script to receive data.

RX8 [h=0D 0A] @var1 @var2 @var3 [t=00 ff ff]

Note: It is not possible for Bridge Control Panel to send data back to PSoC using the R8 protocol. It can only receive UART data from PSoC.

 

Translation from Japanese: PSoC 3/4/5LPデバイス用のMiniProg3(UART)を使用してブリッジコントロールパネル(BCP)にデータを記録する - KBA231530 - Community Translated...

0 Likes
1213 Views