Component: MIAC Basic (MIAC: Addon Modules)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | MIAC: Addon Modules |
Contents
MIAC Basic component
Basic Addon expansion module for MIAC System
Examples
No additional examples
Downloadable macro reference
PWM_Enable
Enable the PWM on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
Return value
- This call does not return a value
LED_Control
Sets the indicator LED On (State=1) or Off (State=0)
Parameters
- BYTE State
Return value
- This call does not return a value
PWM_Disable
Disable the PWM on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
Return value
- This call does not return a value
DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0)
Parameters
- BYTE Terminal
- BYTE Value
Return value
AnalogInput
Read the ADC value of a Terminal
Returns 12 bit ADC reading
Parameters
- BYTE Terminal
- Terminal number to be read
Return value
Initialize
Forces a software reset on the module
Parameters
- This macro has no parameters
Return value
- This call does not return a value
PWM_SetDuty
Sets the PWM Duty cycle on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
- BYTE Duty
- Duty cycle (8 bit value)
Return value
- This call does not return a value
DigitalInput
Read the value of a terminal
Parameters
- BYTE Terminal
Return value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Module Type
This property is of type Fixed list of ints and can be referenced with the variable name MODULE_TYPE.
No additional information
Module Address
This property is of type Fixed list of ints and can be referenced with the variable name ORDINAL.
No additional information
Period Overflow
This property is of type Unsigned integer and can be referenced with the variable name PERIOD.
No additional information
Prescaler
This property is of type Fixed list of ints and can be referenced with the variable name PRESCALER.
No additional information
Frequency (KHz)
This property is of type Floating point and can be referenced with the variable name PWM_FREQ.
No additional information
Period (uS)
This property is of type Floating point and can be referenced with the variable name PWM_PERIOD.
No additional information