Jump to content

Component: MIAC Serial (MIAC: Addon Modules): Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
Line 34: Line 34:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UART_ReceiveChar'''
| width="90%" class="mtx-class-macrohead" | '''UART_ReceiveChar'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 52: Line 52:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_OpenFile'''
| width="90%" class="mtx-class-macrohead" | '''FAT_OpenFile'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 70: Line 70:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PWM_Enable'''
| width="90%" class="mtx-class-macrohead" | '''PWM_Enable'''
|-
|-
| colspan="2" | Enable the PWM on Channel 1 or 2 
| colspan="2" | Enable the PWM on Channel 1 or 2 
Line 88: Line 88:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Send_Byte_Transaction'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Send_Byte_Transaction'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 121: Line 121:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SERIAL_ReceiveChar'''
| width="90%" class="mtx-class-macrohead" | '''SERIAL_ReceiveChar'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 139: Line 139:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_Init'''
| width="90%" class="mtx-class-macrohead" | '''FAT_Init'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 152: Line 152:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SERIAL_SendChar'''
| width="90%" class="mtx-class-macrohead" | '''SERIAL_SendChar'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 170: Line 170:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SPI_Uninit'''
| width="90%" class="mtx-class-macrohead" | '''SPI_Uninit'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 183: Line 183:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Stop'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Stop'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 196: Line 196:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UART_SendString'''
| width="90%" class="mtx-class-macrohead" | '''UART_SendString'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 214: Line 214:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_SetData'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_SetData'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 262: Line 262:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_ScanCurrentFolder'''
| width="90%" class="mtx-class-macrohead" | '''FAT_ScanCurrentFolder'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 285: Line 285:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_Init'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_Init'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 303: Line 303:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_GetData'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_GetData'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 321: Line 321:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SPI_Init'''
| width="90%" class="mtx-class-macrohead" | '''SPI_Init'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 334: Line 334:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_AppendStringToFile'''
| width="90%" class="mtx-class-macrohead" | '''FAT_AppendStringToFile'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 352: Line 352:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_Message'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_Message'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 375: Line 375:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_WR'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_WR'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 413: Line 413:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Restart'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Restart'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 426: Line 426:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_OpenFolder'''
| width="90%" class="mtx-class-macrohead" | '''FAT_OpenFolder'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 444: Line 444:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LED_Control'''
| width="90%" class="mtx-class-macrohead" | '''LED_Control'''
|-
|-
| colspan="2" | Sets the indicator LED On (State=1) or Off (State=0) 
| colspan="2" | Sets the indicator LED On (State=1) or Off (State=0) 
Line 462: Line 462:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SPI_Get_Char'''
| width="90%" class="mtx-class-macrohead" | '''SPI_Get_Char'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 475: Line 475:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UART_Initialize'''
| width="90%" class="mtx-class-macrohead" | '''UART_Initialize'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 488: Line 488:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_MoveToNextFileSector'''
| width="90%" class="mtx-class-macrohead" | '''FAT_MoveToNextFileSector'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 506: Line 506:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_ReadByteFromScan'''
| width="90%" class="mtx-class-macrohead" | '''FAT_ReadByteFromScan'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 524: Line 524:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SPI_Send_Char'''
| width="90%" class="mtx-class-macrohead" | '''SPI_Send_Char'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 542: Line 542:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_ReadFileLength'''
| width="90%" class="mtx-class-macrohead" | '''FAT_ReadFileLength'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 555: Line 555:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Transmit_Byte'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Transmit_Byte'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 573: Line 573:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_CreateFile'''
| width="90%" class="mtx-class-macrohead" | '''FAT_CreateFile'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 591: Line 591:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_PushData'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_PushData'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 609: Line 609:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Receive_Byte'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Receive_Byte'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 627: Line 627:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Init'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Init'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 640: Line 640:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PWM_Disable'''
| width="90%" class="mtx-class-macrohead" | '''PWM_Disable'''
|-
|-
| colspan="2" | Disable the PWM on Channel 1 or 2 
| colspan="2" | Disable the PWM on Channel 1 or 2 
Line 658: Line 658:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SERIAL_ReceiveString'''
| width="90%" class="mtx-class-macrohead" | '''SERIAL_ReceiveString'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 681: Line 681:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_WriteFileSector'''
| width="90%" class="mtx-class-macrohead" | '''FAT_WriteFileSector'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 694: Line 694:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SERIAL_SendString'''
| width="90%" class="mtx-class-macrohead" | '''SERIAL_SendString'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 712: Line 712:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Receive_Byte_Transaction'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Receive_Byte_Transaction'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 740: Line 740:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DigitalOutput'''
| width="90%" class="mtx-class-macrohead" | '''DigitalOutput'''
|-
|-
| colspan="2" | Set a Terminal Output to High (Value=1) or Low (Value=0) 
| colspan="2" | Set a Terminal Output to High (Value=1) or Low (Value=0) 
Line 763: Line 763:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_ReadByteFromBuffer'''
| width="90%" class="mtx-class-macrohead" | '''FAT_ReadByteFromBuffer'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 781: Line 781:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MIAC_Module_GetAck'''
| width="90%" class="mtx-class-macrohead" | '''MIAC_Module_GetAck'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 809: Line 809:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_ReadFileSector'''
| width="90%" class="mtx-class-macrohead" | '''FAT_ReadFileSector'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 822: Line 822:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_WriteByteToBuffer'''
| width="90%" class="mtx-class-macrohead" | '''FAT_WriteByteToBuffer'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 845: Line 845:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SERIAL_Initialize'''
| width="90%" class="mtx-class-macrohead" | '''SERIAL_Initialize'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 858: Line 858:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FAT_DeleteFile'''
| width="90%" class="mtx-class-macrohead" | '''FAT_DeleteFile'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 876: Line 876:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AnalogInput'''
| width="90%" class="mtx-class-macrohead" | '''AnalogInput'''
|-
|-
| colspan="2" | Read the ADC value of a Terminal Returns 12 bit ADC reading 
| colspan="2" | Read the ADC value of a Terminal Returns 12 bit ADC reading 
Line 894: Line 894:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialize'''
| width="90%" class="mtx-class-macrohead" | '''Initialize'''
|-
|-
| colspan="2" | Forces a software reset on the module 
| colspan="2" | Forces a software reset on the module 
Line 907: Line 907:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UART_ReceiveString'''
| width="90%" class="mtx-class-macrohead" | '''UART_ReceiveString'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 930: Line 930:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PWM_SetDuty'''
| width="90%" class="mtx-class-macrohead" | '''PWM_SetDuty'''
|-
|-
| colspan="2" | Sets the PWM Duty cycle on Channel 1 or 2 
| colspan="2" | Sets the PWM Duty cycle on Channel 1 or 2 
Line 953: Line 953:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''MI2C_Start'''
| width="90%" class="mtx-class-macrohead" | '''MI2C_Start'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 966: Line 966:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DigitalInput'''
| width="90%" class="mtx-class-macrohead" | '''DigitalInput'''
|-
|-
| colspan="2" | Read the value of a terminal  
| colspan="2" | Read the value of a terminal  
Line 984: Line 984:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''UART_SendChar'''
| width="90%" class="mtx-class-macrohead" | '''UART_SendChar'''
|-
|-
| colspan="2" |  
| colspan="2" |  
Line 1,006: Line 1,006:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
Line 1,125: Line 1,125:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''  
| width="90%" class="mtx-class-macrohead" | '''Connections'''  
|-
|-
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''  
| width="90%" class="mtx-class-macrohead" | '''Simulations'''  
|-
|-
|}
|}

Latest revision as of 14:23, 13 July 2026

Author
Version 1.0
Category MIAC: Addon Modules


MIAC Serial component

Serial Addon expansion module for MIAC System

Component Pack

FREE

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

UART_ReceiveChar
 
- BYTE Timeout
 
- UINT Return


FAT_OpenFile
 
- STRING Filename
 
- BYTE Return


PWM_Enable
Enable the PWM on Channel 1 or 2 
- BYTE Channel
PWM Channel 1 or 2 
- VOID Return


MI2C_Send_Byte_Transaction
 
[[File:]] - Device_ID
 
[[File:]] - AddrH
 
[[File:]] - AddrL
 
[[File:]] - Data
 
- VOID Return


SERIAL_ReceiveChar
 
- BYTE Timeout
 
- UINT Return


FAT_Init
 
- BYTE Return


SERIAL_SendChar
 
- UINT Character
 
- VOID Return


SPI_Uninit
 
- VOID Return


MI2C_Stop
 
- VOID Return


UART_SendString
 
- STRING Text
 
- VOID Return


MIAC_Module_SetData
 
- BYTE Count
 
- BYTE D0
 
- BYTE D1
 
- BYTE D2
 
- BYTE D3
 
- BYTE D4
 
- BYTE D5
 
- VOID Return


FAT_ScanCurrentFolder
 
- UINT idx
 
- BYTE type
Scan type 
- BYTE Return


MIAC_Module_Init
 
- UINT CAN_ID
 
- VOID Return


MIAC_Module_GetData
 
- BYTE Index
 
- BYTE Return


SPI_Init
 
- VOID Return


FAT_AppendStringToFile
 
- STRING Text
 
- BYTE Return


MIAC_Module_Message
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- BYTE Return


MIAC_Module_WR
 
- UINT CAN_ID
 
- UINT CMD_ID
 
[[File:]] - Count
 
[[File:]] - Start
 
[[File:]] - More
 
- VOID Return


MI2C_Restart
 
- VOID Return


FAT_OpenFolder
 
- STRING Folder
 
- BYTE Return


LED_Control
Sets the indicator LED On (State=1) or Off (State=0) 
- BYTE State
 
- VOID Return


SPI_Get_Char
 
[[File:]] - Return


UART_Initialize
 
- VOID Return


FAT_MoveToNextFileSector
 
- BYTE force
force next sector 
- BYTE Return


FAT_ReadByteFromScan
 
- UINT idx
 
- BYTE Return


SPI_Send_Char
 
[[File:]] - Char
 
- VOID Return


FAT_ReadFileLength
 
- UINT Return


MI2C_Transmit_Byte
 
[[File:]] - Data
 
[[File:]] - Return


FAT_CreateFile
 
- STRING Filename
 
- BYTE Return


MIAC_Module_PushData
 
- BYTE Data
 
- VOID Return


MI2C_Receive_Byte
 
[[File:]] - Last
 
- BYTE Return


MI2C_Init
 
- VOID Return


PWM_Disable
Disable the PWM on Channel 1 or 2 
- BYTE Channel
PWM Channel 1 or 2 
- VOID Return


SERIAL_ReceiveString
 
- BYTE Timeout
 
- BYTE NumBytes
 
- STRING Return


FAT_WriteFileSector
 
- BYTE Return


SERIAL_SendString
 
- STRING Text
 
- VOID Return


MI2C_Receive_Byte_Transaction
 
[[File:]] - Device_ID
 
[[File:]] - AddrH
 
[[File:]] - AddrL
 
[[File:]] - Return


DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0) 
- BYTE Terminal
 
- BYTE Value
 
- BYTE Return


FAT_ReadByteFromBuffer
 
- UINT address
 
- BYTE Return


MIAC_Module_GetAck
 
- UINT CAN_ID
 
- UINT CMD_ID
 
- UINT TimeOut
 
- BYTE Return


FAT_ReadFileSector
 
- BYTE Return


FAT_WriteByteToBuffer
 
- UINT address
 
- BYTE data
 
- VOID Return


SERIAL_Initialize
 
- VOID Return


FAT_DeleteFile
 
- STRING Filename
 
- BYTE Return


AnalogInput
Read the ADC value of a Terminal Returns 12 bit ADC reading 
- BYTE Terminal
Terminal number to be read 
- UINT Return


Initialize
Forces a software reset on the module 
- VOID Return


UART_ReceiveString
 
- BYTE Timeout
 
- BYTE NumBytes
 
- STRING Return


PWM_SetDuty
Sets the PWM Duty cycle on Channel 1 or 2 
- BYTE Channel
PWM Channel 1 or 2 
- BYTE Duty
Duty cycle (8 bit value) 
- VOID Return


MI2C_Start
 
- VOID Return


DigitalInput
Read the value of a terminal  
- BYTE Terminal
 
- BYTE Return


UART_SendChar
 
- UINT Character
 
- VOID Return



Property reference

Properties
Module Type
 
Module Address
 
Period Overflow
 
Prescaler
 
Frequency (KHz)
 
Period (uS)
 
Baud Rate
 
Data Bits
 
Return Type
 
Echo
 
Flow Control
 
Rate
Prescale option selector 
Clock Polarity
Clock Polarity setting, inactive (idle) state 
Clock Phase
Clock Phase (data change edge) selection 
Sample Point
Data bit read sample point 
Baud Select
Baud rate option selector 
Slew Rate Control
Slew Rate Control Enabled or Disabled 
SMBus Inputs
When Enabled input logic thresholds are compliant with SMBus specification 
Baud Rate
 
Data Bits
 
Return Type
 
Echo
 
Flow Control
 
Connections
Simulations