Wiring for firmware programming

This section describes the wiring for programming the firmware.

For more information on TWELITE R2 compatible wiring, please refer to "General Information > Technical Information > Wiring for firmware programming".

Pinning

The wires used in the program mode are listed below. These signal lines can be accessed externally.

Name

Signal name

TWELITE DIP#

TWELITE SMD #

Remarks

RST

RESETN

21

21

Reset the module (if not wired, can be replaced by power-on)

RXD

DIO7

3

9

Serial communication line (PC side connected to TX)

PRG

SPIMISO

7

2

When this pin is set to LO (GND) and then reset and released (or HI), the device transitions to program mode.

TXD

DIO6

10

8

Serial communication line (PC side is connected to RX)

GND

GND

1,14

20,28

For power supply (several pins are defined in TWELITE, which are connected internally, so a single connection can be acceptable)

SET

Depends on the mother board (normally 15)

Depends on the mother board normally 13)

On the TWELITE Stage, it is set to SET=LO immediately after reset to display the interactive mode screen in sleep driven firmware.

VCC

VCC

28

5

For power supply

The TWELITE R/2 allows for the connection of 2.54mm pitch header pins and sockets in the above order RST RXD PRG TXD GND. If you have the same arrangement on your board, you can use TWELITE R.

Program mode setting procedure

STEP

Procedure

1

Set the TWELITE module powered off.

2

Connect the PRG (SPIMISO) pin to GND.

3

Turn the power on. (or reset)

4

Leave the PRG (SPIMISO) pin unconnected. (Internal pull-up makes the pin state Hi.)

At this point the TWELITE radio module is running in program mode with rewritable firmware.

5

Start the firmware programmer on the PC and check the connection to the target serial port.

If there is no connection response (no serial number etc. displayed, no response and timeout), start again from the beginning.

In combinations, such as TWELITE R2 and TWELITE Stage, steps 1 to 5 above are automated.

Wiring example (control by push button switch)

The wiring is as follows: the PRG and RST pins are connected to a pushbutton switch, which drops to GND when the button is pressed.

配線例

Control the PGM and RST pins as follows: Immediately after releasing the button on the PGM pin, the TWELITE radio module will enter program mode.

最終更新