WS1102 Platform

Hardware devices covered by this platform

  • WS1102 programmable serial controller.

Memory space and key info

RAM

22,271 bytes for application variables and data

Flash

983,040 bytes for application and data storage (shared flash memory)

EEPROM

2040 bytes for application data

TiOS Firmware Version

Date

Notes

V4.01.02 (download)

17JUN2021

  • Improved pin and PWM initialization
  • Serial debug port initialization fixed
  • Added HMAC256 functionality

V4.01.01 (download)

25DEC2020

  • Initial release

Platform type

32-bit platform

Clock frequency (CLOCK) and clock control

Frequency is fixed at 192MHz

Available network interfaces

Wi-Fi (wln.), PPP (ppp.)(1)

GPIO type

Unidirectional(2)

UART limitations

Max practical baudrate ~921,600

Serial port FIFOs

512 bytes for TX, 512 bytes for RX

Serial port line configuration

Depends on the serial port mode

Serial port interrupts and io.intenabled

Independent

RTS/CTS remapping

Supported

ADC

NO

Pulse-width Modulation (PWM)

NO

GA1000 support

NO

WA2000 support

NO

GA1000 and WA2000 lines remapping

N/A

Beep frequency

beep.frequency defines the frequency used, from 30Hz to 20KHz

Recommended buzzer frequency setting

2,750Hz, beep.frequency = 2750

Display type selection and line remapping

N/A

Special configuration section of the EEPROM

28 bytes for MAC and device password storage

Device serial number

128 bytes: 64 OTP bytes + 64 fixed bytes

Flash memory configuration

Dedicated

Self-upgrades for the Tibbo-BASIC/C app.

Supported through fd.copyfirmware, fd.copyfirmwarelzo, fd.copyfirmwarefromfile, and fd.copyfirmwarefromfilelzo methods

Status LEDs (LED Control Lines)

Status Green (SG) LED

Status Red (SR) LED

Yellow Association status (EY) LED

An LED bar consisting of five blue LEDs

Debug communications

Serial

Ethernet / UDP Broadcast transport

Ethernet /WinPCap transport

Comments:

  1. The sock.allowedinterfaces property refers to the Wi-Fi interface as "WLN" and PPP — as "PPP". Sock.targetinterface and sock.currentinterface properties rely on the pl_sock_interfaces enum, whose members differ depending on the platform.
  2. Surrounding board hardware dictates which GPIO lines must be used as inputs and which — as outputs.

Supported Objects, variable types, and functions

  • Objects:
    • beep — generates buzzer patterns(1)
    • bt — in charge of the BLE (Bluetooth Low-Energy) interface(1)
    • button — monitors the MD (setup) line
    • fd — manages the flash memory file system and direct sector access(1)
    • io — handles I/O lines, ports, and interrupts
    • pat — "plays" patterns on up to five LED pairs
    • ppp — accesses the Internet over a serial modem (GPRS, etc.)
    • romfile — facilitates access to resource files (fixed data)
    • rtc — keeps track of date and time
    • ser — controls serial ports (UART, Wiegand, clock/data modes)(1)
    • sock — socket comms (up to 32 UDP, TCP, and HTTP sessions) and support for TLS(2)
    • ssi — controls serial synchronous interface channels (SPI, I²C...)
    • stor — provides access to the EEPROM
    • sys — in charge of general device functionality(1)
    • wln — handles the Wi-Fi interface(1)
  1. These platform objects have new features. Please see Updated Platform Objects for more information.
  2. TLS1.2 with RSA-2048 cryptosystem, supported on a single outgoing TCP connection.
  • Function groups: String functions, trigonometric functions, date/time conversion functions, encryption/hash calculation functions, and more
  • Variable Types: Byte, char, integer (word), short, dword, long, real, string, plus user-defined arrays and structures

Platform-specific constants

You can find them here.