<root>
<file schema='101' />
<macros >
<macro >
<flowline name='Init_RS232_33FJ128GP802' description='' >
<param name='Baudrate' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<param name='Channel' type='u8' description='USART1 / USART2' isconst='0' isinit='0' usrinit='0' setinit='' />
<param name='RxRPn' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<param name='TxRPn' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
<command class_type='comment' title='' comment='/*************************************************************************************
*
* erstellt von IrisSoft 
* am 26.10.2013
*
* Input : Baudrate, Channel (0 - 2),RxRPn(0-15),TxRPn(0-15)
* Output: kein
*
*************************************************************************************/' ccode='' textshow='1' textmode='0' textarea='12,0,12,404' break='0' mark='0' disable='0' hide='0' customize='0' />
<command class_type='native' title='Baudberechnung' comment='' ccode='MX_UINT16 brg;

brg = MX_CLK_SPEED / (32 * FCL_BAUDRATE) - 1;
if(FCL_CHANNEL &lt; 2)
{
 U1BRG = brg;
 _U1RXR = FCL_RXRPN;
 if(FCL_TXRPN == 0)
    _RP0R = 3;
 if(FCL_TXRPN == 1)
    _RP1R = 3;
 if(FCL_TXRPN == 2)
    _RP2R = 3;
 if(FCL_TXRPN == 3)
    _RP3R = 3;
 if(FCL_TXRPN == 4)
    _RP4R = 3;
 if(FCL_TXRPN == 5)
    _RP5R = 3;
 if(FCL_TXRPN == 6)
    _RP6R = 3;
 if(FCL_TXRPN == 7)
    _RP7R = 3;
 if(FCL_TXRPN == 8)
    _RP8R = 3;
 if(FCL_TXRPN == 9)
    _RP9R = 3;
 if(FCL_TXRPN == 10)
    _RP10R = 3;
if(FCL_TXRPN == 11)
    _RP11R = 3;
 if(FCL_TXRPN == 12)
    _RP12R = 3;
 if(FCL_TXRPN == 13)
    _RP13R = 3;
 if(FCL_TXRPN == 14)
    _RP14R = 3;
 if(FCL_TXRPN == 15)
    _RP15R = 3;
}

if(FCL_CHANNEL == 2)
{
 U2BRG = brg;
 _U1RXR = FCL_RXRPN;
 if(FCL_TXRPN == 0)
    _RP0R = 5;
 if(FCL_TXRPN == 1)
    _RP1R = 5;
 if(FCL_TXRPN == 2)
    _RP2R = 5;
 if(FCL_TXRPN == 3)
    _RP3R = 5;
 if(FCL_TXRPN == 4)
    _RP4R = 5;
 if(FCL_TXRPN == 5)
    _RP5R = 5;
 if(FCL_TXRPN == 6)
    _RP6R = 5;
 if(FCL_TXRPN == 7)
    _RP7R = 5;
 if(FCL_TXRPN == 8)
    _RP8R = 5;
 if(FCL_TXRPN == 9)
    _RP9R = 5;
 if(FCL_TXRPN == 10)
    _RP10R = 5;
 if(FCL_TXRPN == 11)
    _RP11R = 5;
 if(FCL_TXRPN == 12)
    _RP12R = 5;
 if(FCL_TXRPN == 13)
    _RP13R = 5;
 if(FCL_TXRPN == 14)
    _RP14R = 5;
 if(FCL_TXRPN == 15)
    _RP15R = 5;
}' textshow='1' textmode='0' textarea='36,0,511,300' break='0' mark='0' disable='0' hide='0' customize='0' language='C' />
</flowline>
</macro>
</macros>
<variables />
</root>
