Configuration File (twa.cfg)
The configuration file is a text file which can be created and edited using any text editor. The file is loaded during power-up and specifies system settings such as the module size and type, optional TFT settings, initial backlight brightness, startup bar and text visibility, etc.

Settings are specified, one per line, using the following format:

          setting = value;

Module configuration options:
Setting Values Description Default
mod 480, 640, 800 Module size -
part - Custom part code -

Startup configuration options:
Setting Values Description Default
rotate 0, 90,
180, 270
Screen rotation 0
sbled 0 - 100 Initial backlight level 100
startup 0 - 3 Visibility of startup loading bar & text
ValueProgress BarLoading Text
0 Off Off
1 Off On
2 On Off
3 On On
3

USB configuration options:
Setting Values Description Default
usb_enable 0 - 4 USB Host/Device Functionality Selection
ValueUSB0 USB1
0 disableddisabled
1 device host
2 device disabled
3 disabledhost
4 host disabled
1

Multiplexing configuration options:
Setting Values Description Default
mux_as1tx 0 - 1 AS1 Transmit Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 67
1 92
0
mux_as1rx 0 - 1 AS1 Receive Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 68
1 91
0
mux_as2tx 0 - 1 AS2 Transmit Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 95
1 90
0
mux_as2rx 0 - 1 AS2 Receive Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 96
1 89
0
mux_can0tx 0 - 1 CAN0 Transmit Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 12
1 68
0
mux_can0rx 0 - 1 CAN0 Receive Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 13
1 67
0
mux_can1tx 0 - 1 CAN1 Transmit Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 10
1 65
0
mux_can1rx 0 - 1 CAN1 Receive Data Port Pin
Pin on pumaNova SOM Connector:
ValuePin
0 11
1 66
0

Display configuration options:
Setting Values Description Default
mod=
480 640 800
lcd_line_pattern 0 - 5 LCD Line Pattern
(Order of Red/Green/Blue components of each pixel)
Pins 5-28 on pumaNova SOM LCD Connector
ValuePins 5-12Pins 13-20Pins 21-28
0 Green Blue Red
1 Red Blue Green
2 Red Green Blue
3 Blue Green Red
4 Blue Red Green
5 Green Red Blue
For TN070T800AR & TN057T640AN use
    lcd_line_pattern = 2;
2 3 3
lcd_use_enable 0 - 1 Use ENABLE Line
Pin 34 pumaNova SOM LCD Connector
ValueUse Enable
0 No
1 Yes
1 1 1
lcd_enable_pol 0 - 1 ENABLE Polarity
Pin 34 pumaNova SOM LCD Connector
ValueENABLE Polarity
0 Active LOW During Data Transfer
1 Active HIGH During Data Transfer
1 1 1
lcd_hsync_pol 0 - 1 Horizontal Sync Pulse Polarity
Pin 32 pumaNova SOM LCD Connector
ValueHSYNC Polarity
0 Active LOW Pulse
1 Active HIGH Pulse
0 0 0
lcd_vsync_pol 0 - 1 Vertical Sync Pulse Polarity
Pin 33 pumaNova SOM LCD Connector
ValueVSYNC Polarity
0 Active LOW Pulse
1 Active HIGH Pulse
0 0 0
lcd_dotclk_pol 0 - 1 DOTCLK Polarity
Pin 30 pumaNova SOM LCD Connector
ValueDOTCLK Polarity
0 Data Read on RISING Edge of DOTCLK
1 Data Read on FALLING Edge of DOTCLK
1 1 1
lcd_vsync_pulse_width_unit 0 - 1 Vertical Sync Pulse Width Unit
ValueVSYNC Pulse Width Unit
0 Measured in Clock Cycles (VSYNC mode)
1 Measured in Horizontal Lines (DOTCLK mode)
1 1 1
lcd_vsync_period_unit 0 - 1 Vertical Sync Period Unit
ValueVSYNC Period Unit
0 Measured in Clock Cycles (VSYNC mode)
1 Measured in Horizontal Lines (DOTCLK mode)
1 1 1
lcd_width 1 - 800 LCD Frame Width in pixels (HFrameWidth) 480 640 800
lcd_hsync_pulse_width 0 - (214-1) Horizontal Sync Pulse Width (HPulseWidth) 3 30 10
lcd_h_wait_count 0 - (213-1) Horizontal Wait Count (HWait)
    HWait = HBackPorch or HWait = HBlanking
12 30 46
lcd_hsync_period 0 - (218-1) Horizontal Sync Period (HPeriod)
    HPeriod = HWait + HFrameWidth + HFrontPorch
288 814 1056
lcd_h_valid_data_count 0 - (218-1) Horizontal Valid Data Count (HValid)
    HValid = HFrameWidth
480 640 800
lcd_height 1 - 480 LCD Frame Height in pixels (VFrameHeight) 272 480 480
lcd_vsync_pulse_width 0 - (218-1) Vertical Sync Pulse Width (VPulseWidth) 10 3 10
lcd_v_wait_count 0 - (216-1) Vertical Wait Count (VWait)
    VWait = VBackPorch or VWait = VBlanking
12 3 23
lcd_vsync_period 0 - (232-1) Vertical Sync Period (VPeriod)
    VPeriod = VWait + VFrameHeight + VFrontPorch
288 528 525
lcd_clk_div -1 | 1 - 127 24MHz Clock Divider
    -1 = Do not use (use lcd_clk_freq)
    When lcd_clk_div is specified, the 480MHz fractional clock is disabled.
    LCD clock = 24MHz / lcd_clk_div.
-1 -1 -1
lcd_clk_freq -1 | 1 - 480000000 Clock Frequency
    -1 = Do not use (use lcd_clk_div)
    num = LCD Clock in Hz
    When lcd_clk_freq is specified, the 480MHz fractional clock is enabled.
    The LCD clock closest to lcd_clk_freq is automatically calculated in the firmware.
9.000MHz 25.263MHz 33.231MHz

Example
Example twa.cfg file:

          mod = 800;
          sbled = 100;
          startup = 0;
          mux_can1tx = 1;
          mux_can1rx = 1;