- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have the same radar module as shown here, I have taken the XeThru arduino library and ported it to work the the PSOC UART API. However I am still not receiving anything from the radar unit. To debug I have just connected an arduino to the UART of the PSOC to get it to read back the data I am sending which all appears valid.
The radar unit operates at 2.8V and I am using a level shifter (same one shown in the link). My setup matches that of the sample project with the exception of the PSOC.
I have attached my project, any help would be greatly appreciated.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are reading from UART using GetChar() without checking or waiting for a character ready. This might return a 0x00 indicating that situation, but you do not react on that. Additionally you compare an unsigned with -1 and ignore that warning.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply Bob, made the rookie mistake of using the 12.6/12.7 tx/rx pins which are shared by the kitprog. I just had to move them then it worked.