Bluetooth PIC connection

Status
Not open for further replies.

amitaiwe

Member level 3
Joined
Feb 19, 2014
Messages
57
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Visit site
Activity points
547
Hi,
I am sending data via UART from a pic to a Bluetooth device.
the PIC is from the pic16f family and the BT is RN42SM.

The default configuration for the Bluetooth module is:
" When the module receives data, it strips the Bluetooth headers and trailers and passes the user data to the UART port. When data is written to the UART port, the module constructs the Bluetooth packet and sends it out over the Bluetooth wireless connection." (data sheet)

because the BT is transmitting all the time I would
want to stop the UART transmission when the data has been all transmitted.
1. Can I do this by changing the UART RTS or CTS bit of the BT?
is that the purpose of one of these bits in the first place?
if not, do these bits need to be wired anywhere?

2. Can that be done by changing somehow any of the IO bit? (see page 5 in BT data sheet attachment)
what information can be sent to the PIC from the IO bits?

Thanks, Amitai
 

hello,

RTS and CTS are mainly used if you want to synchronize exchange ( use hardware protocol.).
If you don't need , you can use UART classic with only TX and RX pins
Bluetooth device will send your data, only when you write to the UART BT.
I do like this with an RN41..
if your BT RN42SM works with SSP1 protocol ..no problemo

It is your decision to work or not work with CTS or RTS.
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…