Bringup
Open the editor
Behavioural mixed-signal modelST7735S 1.8" TFT modulest7735_tft

TFT 1.8" 128×160 (ST7735S)

Behavioral model of the ST7735S (4-wire SPI, mode 0): SWRESET/SLPOUT/DISPON/COLMOD/MADCTL/CASET/RASET/RAMWR/INVON; frame buffer 128×160 RGB565, shown in the UI.

GNDVCCSCKSDA/MOSIRESDCCSLEDST7735S 1.8" TFT module
Schematic symbol

Key data

Category
ICs
Simulation model
Behavioural mixed-signal model
Manufacturer part number
ST7735S 1.8" TFT module
Reference prefix
DS
Pins
8
Land pattern
PinHeader_1x08_P2.54mm_Vertical

Notes

The model decodes the SPI commands of the ST7735S and keeps the 128 × 160 frame buffer in RGB565. What the firmware draws appears on the symbol and in the live display window.

  • Right-click the display and choose "Open live display" for a large view while the simulation runs.
  • The pin header parameter sets the order of the 8 module pins on the board. Compare it with your module before you order a board.
  • "Mounting" only turns the view; the firmware chooses its drawing direction with MADCTL.
  • Many modules need the backlight pin (LED) at the supply, otherwise the display stays dark on the real board.

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
st7735_tft
Supply pins
VCC / GND

Pins 8

PinNameUse
GNDGNDGround pinGround
VCCVCCSupply pinModule supply (3.3 V; many modules accept 5 V through their regulator)
SCKSCKInput pinSPI clock from the microcontroller
SDASDA/MOSIInput pinSPI data from the microcontroller (MOSI); the display sends nothing back
RESRESInput pinReset, active low: GPIO or RC to the supply
DCDCInput pinData/command select (A0): any GPIO
CSCSInput pinChip select, active low: any GPIO
LEDLEDInput pinBacklight: 3.3 V for always on, or a PWM pin (through a transistor for more current)

Parameters 3

Color filterpanel
Defaultbgr
bgrrgb
Mountingmount
Defaultportrait
portraitlandscape

How the module sits in the device: landscape = turned 90° clockwise (160 × 128). Only the view turns; the firmware sets MADCTL for its drawing direction.

Pin header (order of pins 1…8)header
DefaultVCC,GND,CS,RES,DC,SDA,SCK,LED

Pin order of the 8-pin header of the module used (common red 1.8" module: VCC, GND, CS, RESET, A0, SDA, SCK, LED). Compare with your own module before manufacturing.

PCB

Connector / off-boardPinHeader_1x08_P2.54mm_Vertical

TFT module on a 8-pin header, 2.54 mm pitch (VCC, GND, CS, RES, DC, SDA, SCK, LED) – must match your own module