- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been trying to understand how to use the UART with interrupt on Rx data but can't even get reliable polling to work when running stand alone.
I'm using the example project in AN96841, added a UART at 9600,8,1,n on P1_4 and P1_5 so I can use the Pioneer board as a USB-UART bridge to test and debug. At best I get the UART to receive and send while in debug mode but can't seem to understand why it won't work in stand alone. Transmission seems to be incomplete. At this point I've only confused myself on receiving. BLE section seems to be running fine and I can scan and connect with the pioneer kit dongle.
Are there any real world UART examples for PRoC with interrupt handling of the received data? I think this is the first device that doesn't start with an example with interrupts. I can't find any with the development environment examples. I can't find any posts that actually point to an example. Maybe I have something configured wrong but the 198 page DS doesn't seem to show how to use it.
An example would go along way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Nathan!
We had recently some UART issues which were connected to using sleep-modes in the examples hindering the UART to function.
UART with interrupts is quite simple, just do not forget to remove interrupt cause.
Easiest for us is always when you post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bob
I thought of this last night while trying to figure out the differences between running in debug and running stand alone. Once I commented out the block of code in the example that enteres deep sleep my interrupt handler worked like a champ. Now I just need to master this BLE stuff 😉
Nathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These might also be useful to you -
http://www.cypress.com/documentation/application-notes/an54460-psoc-3-and-psoc-5lp-interrupts AN54460 - PSoC® 3, PSoC 4, and PSoC 5LP Interrupts
http://www.cypress.com/?rID=95069 AN90799 - PSoC® 4 Interrupts
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These as well -
http://www.cypress.com/?id=5509 100 Projects in 100 Days with Bluetooth
http://www.cypress.com/?rID=102799&source=psoc4ble FAQs
http://www.cypress.com/?rID=102512 AN91445 - Antenna Design Guide
http://www.cypress.com/?rID=102505 AN94020 - Getting Started with PRoC™ BLE
http://www.cypress.com/?rID=110007 AN92584 - Designing for Low Power and Estimating Battery Life for BLE Applications
http://www.cypress.com/?rID=109900 AN91162 - Creating a BLE Custom Profile
http://www.cypress.com/?rID=110107 AN91184 - PSoC 4 BLE - Designing BLE Applications
http://www.cypress.com/?rID=102504 AN91267 - Getting Started with PSoC® 4 BLE
https://github.com/googlesamples/android-BluetoothLeGatt
Regards, Dana.