Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cpr_01

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / I2C use to Uart_2 (tertiary function)
« on: September 26, 2007, 09:55:39 AM »
I use MCF52233CAF60 (80 pins) and i need 3 uarts. I use without problem 2 uarts (uart0 and uart1) , but the last i have some difficulty to use it. The pins SCL (79) and SDA (80) must be use in the tertiary function and after i not sure that i can use a standard driver :
        tsci2.Channel = 2;                           
        tsci2.ucSpeed = SERIAL_BAUD_9600;
        tsci2.Rx_tx_sizes.RxQueueSize = RX_OMRON_BUFFER_SIZE;       
        tsci2.Rx_tx_sizes.TxQueueSize = TX_OMRON_BUFFER_SIZE;       
        tsci2.Task_to_wake = TASK_COUPLEUR;                       
        tsci2.usConfig = (CHAR_8 + NO_PARITY + ONE_STOP + CHAR_MODE + DCE_MODE);
        tsci2.ucDMAConfig = UART_TX_DMA;                 
        SerialPortID_2 = fnOpen(TYPE_TTY, FOR_I_O, &tsci2);
        fnDriver( SerialPortID_2, ( TX_ON | RX_ON ), 0 );
If you have one example how to use quad function pins ( uart example)

Pages: [1]