hyperterminal

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 how can i  send  to decimal value on hyperterminal of my pc using UART in psoc? means code?

0 Likes
10 Replies
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

   

 

   

Regards, Dana.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 thank u dann

   

 give me some example suppose if i take 1234?

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Run PSOC designer, open the project "DelSigADC and UART Example,

   

everthing is there, code, configuration......

   

 

   

   

 

   

Regards, Dana

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

See attached

0 Likes
Anonymous
Not applicable
0 Likes
Anonymous
Not applicable
        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.   
0 Likes
Anonymous
Not applicable
        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.   
0 Likes
Anonymous
Not applicable

Hi,

   

Simply convert the decimal value into the string. I would suggest you browse a couple of tutorials on the internet as there are plenty of examples available for decimal to string conversion. Mentioning examples here would be beyond the scope of this thread.

   


---------
Regards,
Jatin Das Gupta
SEO Experts India Reviews

0 Likes