Interrupt driven UART EZ-BLE CYBLE-022001-00

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

cross mob
Anonymous
Not applicable

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.

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
Anonymous
Not applicable

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

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

These might also be useful to you -

   

 

   

http://www.embedded.com/design/programming-languages-and-tools/4397803/Interrupts-short-and-simple--...

   

 

   

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.

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

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.

0 Likes