6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Jun 17, 2024 1:18 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: ACIA 6551 and Bluetooth
PostPosted: Sun Oct 18, 2015 7:43 pm 
Offline

Joined: Sun Oct 18, 2015 4:37 pm
Posts: 4
Hi everybody,

I'm trying to connect a bluetooth module to a 6551 ACIA, but maybe I think, that it's too simple :D

I am using a HC-05 bluetooth module, that should be able to connect to a UART TTL source, but it does not seem to work. I tried to connect Rx to Tx and vice versa. Has anybody tried something similar? Maybe, I need some level shifters? The ACIA seems to have a 5V TTL output, is that correct?

Cheers,
Michael


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 3:31 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1688
Location: Sacramento, CA
Hi Michael,

Can you post the part # of the bluetooth module?

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 6:04 am 
Offline

Joined: Sun Oct 18, 2015 4:37 pm
Posts: 4
Hi Daryl,

I have the same module, as seen here:

http://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/

So, it's not only the module, but it's on a breakout board. I tried to configure the module with AT-commands with an USB-TTL adaptor. This works.

Cheers,
Michael


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 7:30 am 
Offline
User avatar

Joined: Fri Oct 31, 2003 10:00 pm
Posts: 199
The HC-05 is a strict 3.3 V device, so be careful with TTL 5 V power and signals. Power with 3.3V and lower the TX with a voltage divider.

http://www.tec.reutlingen-university.de ... -Modul.pdf was helpful for me in the past.

Check if you did not switch TX and Rx connections, and there is the KEY/EN input to think about. And baudrate.


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 10:58 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
I believe the 6551 needs an external CTS signal to enable its transmitter. Have you connected it to something?

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 11:30 am 
Offline

Joined: Sun Oct 18, 2015 4:37 pm
Posts: 4
Thanks for your answers!

I connected only Rx and Tx, nothing else. Should I connect the RTS/CTS lines, too? They seem to be on the module on Pin 3 and 4. I assume, that they are 3.3V level, too.
Is a voltage divider okay, or should I use some IC for that?

The key pin is needed for AT command, I've already configured the module. But for that, it was connected to an USB-TTL adaptor and not to the ACIA.

Cheers,
Michael


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 4:39 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
MS6502 wrote:
Thanks for your answers!

I connected only Rx and Tx, nothing else. Should I connect the RTS/CTS lines, too? They seem to be on the module on Pin 3 and 4. I assume, that they are 3.3V level, too.
Is a voltage divider okay, or should I use some IC for that?

The key pin is needed for AT command, I've already configured the module. But for that, it was connected to an USB-TTL adaptor and not to the ACIA.

Cheers,
Michael


I'd wire the 6551's CTSB pin to its own RTSB.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2015 7:08 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1688
Location: Sacramento, CA
MS6502 wrote:
Hi Daryl,

I have the same module, as seen here:

http://www.instructables.com/id/AT-command-mode-of-HC-05-Bluetooth-module/

So, it's not only the module, but it's on a breakout board. I tried to configure the module with AT-commands with an USB-TTL adaptor. This works.

Cheers,
Michael


Here are few ideas to built on top of the others already presented. I'll assume your breakout board provides the 3.3v to 5v conversions - if not, you need to address that too.

You proved the BT module with the USB-TTL adapter and you said you configured it. Does it retain things like baud rate settings through power down/power up cycles? What baud rate is the BT module using?

Next, on the 6551, connect it to the same USB-TTL adapter and ensure it is transmitting and receiving and at the same baud rate as the BT module.

If both of those steps can be repeated individually, even through power cycles, then my guess is they will work when you connect the TX-RX, RX-TX, and Gnd-Gnd.

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 23, 2015 1:33 pm 
Offline

Joined: Sun Oct 18, 2015 4:37 pm
Posts: 4
Okay, I've tested the USB-TTL adaptor. I have now a level converter between the ACIA and the USB adaptor. There is still no communication. The USB adaptor has RTS and CTS lines, should I try to connect them to the ACIA, too?

The bluetooth module stores all settings, I make.


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 24, 2015 5:05 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1688
Location: Sacramento, CA
Sounds like your 6551 is not functioning properly yet. Can you verify the crystal connected to pin 6 & 7 is functioning? Also, connect the cts, dcd, and dsr pins to gnd. Now connect just the USB tx, rx, and gnd to the 6551.

it would help if you would provide the code you are using to configure the 6551 and give us an idea of how you can verify it is functioning (i.e., is your system running a system monitor that accepts commands and returns data via the 6551?)

Daryl

_________________
Please visit my website -> https://sbc.rictor.org/


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 24, 2015 3:55 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1378
One other inquiry.... which (brand, lot#, etc.) 6551 chip are you using??

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Wed Jul 04, 2018 6:12 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
I was able to get my Rockwell R65C51 to connect using an HC-05 with no trouble. I did add a voltage divider to the RXD line to drop the 5v down to ~3.3v to play it safe, but it did work at the full 5v when I did a quick test. I'm still trying to get an HM-10 (V4.0 BLE vs. V2.0) to work, but it hasn't been cooperative as of yet.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: