>>"The basic application is: communicate with a sensor that has an 8N1 UART interface, via my computers terminal."
--> You can do this. Does your end applicaion involves computer terminal? Or, you are using this situation for testing only?
If your end application includes your computer, then you have to implement 2 intervaces i.e computer to the PSoC and PSoC to the sensor.
For interfacing with PC, you can use USB in PSoC 62 device and write USB application to transfer commands from PC to PSoC. Or, you can also use the Kitprog3 (another PSoC) present on the kit that acts a USB to UART interface between PC and PSoC. On PC you can use the applications like TeraTerm to send the commands to PSoC.
For interfacing sensor with PSoC, you can use the SCB UART component present in the PSoC. You can also go through various code examples present in Modus Toolbox on UART.
You can also refer the code examples present in PSoC Creator on UART.
Please go through them and try to build your application. Kindly update if you got stuck at any point.
Thanks and regards
What type of physical interface does your sensor device provide?
- UART- USB?
- UART - RS232?
- UART - RS485?
- UART - TTL/CMOS?
For example I found a sensor device that supports the #VERS command on the internet. It is called the "PICO-ph".
It has the UART - TTL/CMOS interface.
If your sensor has a UART - TTL/CMOS interface, you can use one the CY8CPROTO-062-4343W SCB blocks and configure it as a UART. You can hook up the sensor's Rx pin to the PSoC6's Tx pin and the sensor's Tx pin to the PSoC6's Rx pin.
Using the KitProg3's UART interface, the serial input (Rx) from the user on the PC using a terminal program can be received on the PSoC6 and sent directly to the sensor's UART Tx. Anything received from the senor's Rx pin can be sent directly to the KitProg3's Tx pin which will be displayed in the PC's terminal program.