Skip to main content

Hardware Abstraction — Specifications

This page contains the formal feature specifications for the TrinovaQ Studio hardware interface subsystem, including the Serial Monitor and Register Viewer. For usage instructions, see Serial Monitor.


Overview

TrinovaQ Studio provides tools for interacting with embedded hardware without leaving the IDE. These include a Serial Monitor for UART communication and a Register Viewer for inspecting and modifying hardware peripheral registers.


Feature Specifications

IDFeatureDescriptionConstraints
TRQ-HW-001Register ViewerVisualizes 32-bit hardware peripheral registers with individual bit-level toggling. Displays register name, offset, access type, and current value in both hex and binary formats.Supported peripherals: GPIOA, CAN1, WWDG
TRQ-HW-002Read-Only Register ProtectionPrevents modification of registers defined as Read-Only (RO). Bit-toggle controls are disabled for RO registers; their values are displayed but cannot be changed.Applies to all registers with access: RO in the peripheral definition
TRQ-HW-003Serial MonitorProvides UART communication with external devices. Supports automatic discovery of available COM ports and configurable baud rates.Supported baud rates: 9600, 115200
TRQ-HW-004Simulator ModeWhen no physical hardware is connected, the system operates in simulator mode, allowing development and testing workflows to proceed without requiring physical hardware.Activated automatically when no serial port is available

Peripheral Register Definitions

GPIOA — General Purpose I/O Port A

RegisterOffsetAccessDescription
MODER0x00Read/WritePort mode register — configures each pin as input, output, alternate function, or analog
OTYPER0x04Read/WriteOutput type register — selects push-pull or open-drain for each output pin
OSPEEDR0x08Read/WriteOutput speed register — configures slew rate for each output pin

CAN1 — Controller Area Network Controller 1

RegisterOffsetAccessDescription
MCR0x00Read/WriteMaster Control Register — controls initialization, sleep, and mode configuration
MSR0x04Read-OnlyMaster Status Register — reflects current operating mode and error state

WWDG — Window Watchdog

RegisterOffsetAccessDescription
CR0x00Read/WriteControl Register — configures watchdog timeout window and triggers reset if not refreshed within the window
warning

The WWDG Control Register directly governs system reset behavior. Incorrect configuration may cause unintended system resets in production firmware.


Serial Communication Specifications

ParameterValue
ProtocolUART (asynchronous serial)
Supported baud rates9600, 115200
Data format8N1 (8 data bits, no parity, 1 stop bit)
Port discoveryAutomatic enumeration of available system COM ports
RefreshManual port list refresh available in the UI

Non-Functional Requirements

IDRequirement
TRQ-HW-NF-001Serial Monitor must display incoming data with latency ≤ 100 ms under normal conditions
TRQ-HW-NF-002COM port unavailability must not cause application crash; the system must fall back to simulator mode gracefully
TRQ-HW-NF-003Port disconnection must be detected and reported without requiring application restart