Anonymous
Not applicable
Feb 18, 2013
08:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 18, 2013
08:17 PM
Hai
I want to convert hex to dec value and it display to pc
How can i send decimal value through uart for psoc. which logic is use here
plz help me for programing
Labels
- Labels:
-
PSoC 3
4 Replies
Feb 19, 2013
03:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 19, 2013
03:56 AM
Anonymous
Not applicable
Feb 19, 2013
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 19, 2013
08:32 AM
my question is -->
suppose if i take decimal value 12345, how can i send to pc using UART ? which conditions are use in c language?
Feb 19, 2013
08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 19, 2013
08:55 AM
Where does this decimal value come from? Is it something you calculate in your program?
Otherwise, have a look at the API for the UART component (http://www3.cypress.com/?rID=48892 )
Feb 19, 2013
11:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 19, 2013
11:06 AM
If you want to convert hex to dec char representation use spintf(). Then use
void UART_Write(char * aStr, BYTE bCnt) to send the data.
Or use the following to send as chars via Tx, using
void UART_PutSHexByte(BYTE bValue)
void UART_PutSHexInt(int iValue)
Regards, Dana.