Introduction

For a better readability of the program, the Pin Editor offers the possiblity to rename the Inputs and Outputs to assign own pin names. In addition, the Pin Editor can also be used for configure single pins within any project which uses a HCS08 or HCS12 microcontroller.

If there is a complex task, which can not be executed in the graphical programming, there is the possibility to create own Blocks or to pass the variable into the user_code.c to program the task there. For this the User Variable Editor can be used.


Pin Editor

In the first column you can set a user-defined name for the inputs and outputs and in the second column a description. If you do not set anything the pin name has a constant pre-defined name. With that name you can read or set inputs and outputs in the Graphical Programminng or in user_code.c.

In projects utilizing any HCS08 or HCS12 microcontroller, the following additional columns can be configured:

Pin Category Configuration Description
Analog Pins ADC Max Specify the max voltage range for ADC inputs. 1digit presents 1mV voltage range at the analog pin (between 0 and 65535)
Analog Pins Samples Samples can be used to specify how often the analog input should get converted and averaged ( between 0 and 255)
Digital Output Pins Initial Value Set the start value (0 or 1) for the current pin
PWM Pins Initialize PWM If not initialized, it can be used as a normal output
PWM Pins ADC Active Activate or deactivate ADC
PWM Pins ADC Max Sets the max voltage range on the input (between 0 and 65535)
PWM Pins ADC Filter Specifies the amount of values which have to get filtered (between 1 and 100)
PWM Pins Current Max Limits the maximum power for the full motor bridge, for example (minimal value is 0)

Information


i

The video demonstrates the Pin Editor in which the mentioned columns are displayed. In contrast, for any project not involving HCS08 or HCS12 microcontrollers, only the Custom Name and Description columns are adjustable.

User Variable Editor

User Variable allows the data exchange between Graphical Programming and user_code.c.

Information


i

This will only work for projects with basic software version 3.8.0 or higher.


Example user_code.c

uint32_t oil_temperature = 50;
uint32_t oil_pressure = 0;

void usercode(void)
{
USER_VARIABLE[UV_OIL_TEMPERATURE] = oil_temperature;

oil_pressure = USER_VARIABLE[UV_OIL_PRESSURE];
}