OpenWare

TS1C station: inside

The station is the base of the TS1C: a screen, two buttons, an encoder and a dock that charges the iron. It has no heater and no battery of its own: it lives on its USB-C input, keeps the settings and talks to the iron over Bluetooth. This page is what the openware-ts1c firmware knows about the hardware (board H1.80, stock firmware V1.60). The iron has its own page.

The board was not traced. The facts come from the disassembled stock firmware, from measurements on the author's bench and from photos: the internal photos of the FCC filing and the teardown in Kerry Wong's blog. Each one says where it comes from:

measured seen or measured on the author's station
stock code seen in the disassembled stock firmware
photo read off a photo of the board
guess our explanation, not checked

Block diagram

TS1C station block diagram: the CH579M in the middle; the crystals, the buzzer and the display board with its buttons, encoder and OLED above it on labelled buses; USB-C, the PD chip, the logic supply and the current limit on the left; the dock sensor and the antenna on the right; along the bottom the dock power path from USB-C through the shunt and the dock switch to the dock contacts and the iron

Pins and buses as the firmware drives them. The thick lines carry power: yellow is VBUS from USB-C, white the logic supply, red the dock output to the iron.

Photos

The station opened: the aluminium top with the iron's cradle, the main board in the base, the spring antenna and the flat cable to the display board
Opened: the top with the cradle, the main board in the base
The main board from above: the CH579M near the flat cable connector, the spring antenna, three 100 µF capacitors, the dock switch and the R010 shunt
Main board, top: CH579M, antenna, three 100 µF capacitors, dock switch, R010 shunt
The main board from below: the USB-C connector, the square buzzer and small chips and transistors
Main board, bottom: USB-C, the buzzer
The display board, connector side: the encoder and four test pads
Display board: the encoder
The display board, other side: buttons A and B and the soldered OLED flex
Display board, other side: buttons A and B, the OLED flex

Internal photos from Miniware's FCC filing, FCC ID 2ATIFTS1C-S, taken by the SGS lab.

Microcontroller

A WCH CH579M: a Cortex-M0 with a Bluetooth LE 4.2 radio and 32 KB of RAM, in QFN48 stock code photo. It runs at 32 MHz from a 32 MHz crystal; a 32 768 Hz crystal on PA10/PA11 clocks the RTC and the Bluetooth stack. That second crystal sits on the underside of the board, under the microcontroller photo; it works: OpenWare starts Bluetooth only once the RTC counts from it, and the station links to the iron on the bench measured.

How it boots

TS1C boot diagram, the same for the station and the iron: after a reset the Miniware loader reads the button and checks the string at 0x4300, then jumps to the OpenWare loader, which starts the OpenWare app or stays; the app and the loader write each other over USB, the Miniware USB disk writes once and on the way back; on the right the flash map with sizes and the RAM area that survives a reset; below, the stock chain

The station and the iron start the same way. After a reset the Miniware loader at 0x0 reads the button once (B on the station, the handle's button on the iron); held, it opens its USB disk. Otherwise it compares 18 bytes at 0x4300 with the application's name and jumps to 0x4000; nothing else is checked stock code. With OpenWare the image at 0x4000 is the OpenWare loader, which carries that name. It stays when the application asked for it or is not valid, waits 5 s for a computer after a watchdog reset, and otherwise starts the application at 0x6000 at once.

Power

Everything runs from the station's USB-C VBUS.

Dock

The dock has two contacts. Through them the station powers and charges the iron, and its budget of current reaches the iron over Bluetooth with the dock word.

With the iron docked OpenWare waits 2.5 s, switches the dock on at 5 V, and 2 s later raises the PD voltage without switching the dock off: 12 V put on the contacts at once tripped the protection at switch-on, and with the staircase the iron charges at 12.3 V with no trip measured. Docked at 12 V the iron's heater took 1621 mA and its charger 1171 mA of a 2800 mA budget measured. A lifted iron loses power at once; the stock firmware kept the last PD voltage, up to 20 V, on the contacts for up to 300 ms.

Interface

Pin map

PinWhat is on it
PA0button A, low when pressed stock code
PA1button B; held at plug-in, the Miniware loader stock code
PA2iron-in-dock sensor, digital, low when docked stock code
PA4AIN0: iron-in-dock sensor, analog, docked outside 1.5–2.2 V stock code
PA5, PA6encoder phases measured
PA7configured as an input, never read stock code
PA9dock over-current, rising-edge interrupt stock code measured
PA10, PA1132 768 Hz crystal stock code
PA12, PA13, PA14OLED reset, SCK, MOSI stock code
PB0PD chip interrupt stock code
PB1, PB2software I²C to the PD chip stock code
PB3PWM9: dock current-limit reference, 10 kHz stock code
PB7UART0 TX, stock debug output stock code
PB9dock power, high = on stock code measured
PB10, PB11USB D−, D+ measured
PB17OLED D/C; also SWD TCK, which is off stock code
PB18OLED CS stock code
PB19buzzer, 4 kHz measured

The firmware does not set up the other pins.

How the firmware drives it

The station's interface runs in the browser: the emulator is this firmware built for WebAssembly, explained here.