how can i send to decimal value on hyperterminal of my pc using UART in psoc? means code?
Simple to do.
Convert decimal value to a string, and send string via UART API, in datasheet
of UART module. To create string from decimal number, sprintf() is easy way to
do this. It uses print() formating. See attached for format examples.
In PSOC designer there is a project example, DelSigADC and UART project, in the
design catalog section, on opening screen of Designer you can look at.
Note it used the ftoa() function to convert the decimal A./D value to a string.
thank u dann
give me some example suppose if i take 1234?
Run PSOC designer, open the project "DelSigADC and UART Example,
everthing is there, code, configuration......
Update yout PSoC Creator to COMPONENT PACK 6....
It has a new component called : Software-Transmit-UART.
It has APIs for sending data in hex form or integer form.[a very good feature which wasn't present in the previous UART].
However, it can only transmit and not receive.
Ensure UART parameters, Speed, Parity and Stop bit.
What you use interface to the PC? Actual RS232c plug? or UART-USB cable?
Does Hyper terminal shows any character? Even if it broken.