HI all,
In 059 kit have only one uart?
12.6 and 12.7 ?
Is there any another pin is assigned for Rx Tx ?
Solved! Go to Solution.
RathangShah,
Moto and \odissey1 are correct. With the PSoC you can have multiple UARTs assigned internally to the IC. The trick as Moto pointed out is that on the 059 kit the UART used with the KitProg USB-UART use dedicated pins 12.7 [Tx] and 12.6 [Rx] on the target PSoC. Any other use of UARTs need physical interface circuits external to the PSoC and assigned pins once these circuits are hooked up. Moto's example of multiple UART ports is a good starting point.
On the 059 kit, there is one exception. You can configure the USBUART component to provide another serial comm port without having to rewire the 059 kit. I have included a modification of Moto's program to add the USBUART component. Therefore the modified application now has UART_1 and USBUART as native serial comm ports using USB as the physical interface. No rewiring necessary!
Note: Once you compile the modified project I've attached, you will need to use "USBUART_cdc.inf" included in the root directory to allow the USBUART device to be seen by your PC. This file loads the correct drivers for the VID and PID of the USBUART device.
Len
Added Note: Using the USBUART component has some additional advantages over the Kitprog USB-UART.
Multiple UARTs may be enabled at same time, but pins 12[6] and 12[7] are the only ones, which are physically connected by PCB traces to the USB-UART convertor located on the KitProg. So, once the KitProg connected to a computer, it appears as extra COM port, available for communication with UART on KIT-059.
See this discussion also:
https://www.cypress.com/comment/295321
Hi,
Just for fun, I tried with my CY8CKIT-059 with 4 UARTs.
schematic
pin list
Note: We can select other pins, so this is just a sample of 1 combination.
main.c
========================
#include "project.h"
int main(void)
{
CyGlobalIntEnable; /* Enable global interrupts. */
UART_1_Start() ;
UART_2_Start() ;
UART_3_Start() ;
UART_4_Start() ;
for(;;)
{
UART_1_PutString("This is UART_1\n\r") ;
UART_2_PutString("This is UART_2\n\r") ;
UART_3_PutString("This is UART_3\n\r") ;
UART_4_PutString("This is UART_4\n\r") ;
CyDelay(1000) ;
}
}
========================
As Odissey1-san suggested, I used KitProg's USB-UART for UART_1,
and for other UARTs, I used my discrete USB-SERIAL to probe their output one by one.
UART_1
UART_2
UART_3
UART_4
moto
RathangShah,
Moto and \odissey1 are correct. With the PSoC you can have multiple UARTs assigned internally to the IC. The trick as Moto pointed out is that on the 059 kit the UART used with the KitProg USB-UART use dedicated pins 12.7 [Tx] and 12.6 [Rx] on the target PSoC. Any other use of UARTs need physical interface circuits external to the PSoC and assigned pins once these circuits are hooked up. Moto's example of multiple UART ports is a good starting point.
On the 059 kit, there is one exception. You can configure the USBUART component to provide another serial comm port without having to rewire the 059 kit. I have included a modification of Moto's program to add the USBUART component. Therefore the modified application now has UART_1 and USBUART as native serial comm ports using USB as the physical interface. No rewiring necessary!
Note: Once you compile the modified project I've attached, you will need to use "USBUART_cdc.inf" included in the root directory to allow the USBUART device to be seen by your PC. This file loads the correct drivers for the VID and PID of the USBUART device.
Len
Added Note: Using the USBUART component has some additional advantages over the Kitprog USB-UART.