6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 7:35 pm

All times are UTC




Post new topic Reply to topic  [ 128 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9
Author Message
PostPosted: Sat Mar 09, 2019 2:41 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
There seems to be some quantitizing error making it hard to follow in the picture. It will make it easier if you put a little dead time between bytes.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 2:46 am 
Offline

Joined: Wed Dec 05, 2018 7:52 pm
Posts: 48
GARTHWILSON wrote:
There seems to be some quantitizing error making it hard to follow in the picture. It will make it easier if you put a little dead time between bytes.


How can I do this? Put a little dead time between bytes?


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 3:36 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
The easiest would be to just put a delay loop between bytes as you send them, to take up enough time that you can clearly see the marking time in between, then see the start bit for each byte.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 7:44 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
I'd suggest you sample at least 4x faster - or post an image at least 4x wider, which is what I really mean. See the narrowest pulses? They have different widths in the image you posted, but in reality they must all be the same width. For anyone to figure out the bit boundaries, they need an idea of where bits start and end, so a bit more resolution would be helpful.


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 2:36 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
hitlp wrote:
Hello guys. It's me again.

I came back with a new 6502 processor and by the time I communicated with the ACIA (6551) it worked correctly. Now I'm trying to do a serial output with "Hello World!". I'm trying to use Putty but I do not see anything in the text output. Using the logic analyzer, every time I press the 6502 reset, it "spits" the same output. But I can not analyze it.

What can it be now? :(

Check the cables, that you have the right serial port selected and the right baud rate.

You can check your serial port is working by looping TXD back to RXD and sending a few characters.

_________________
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: Sat Mar 09, 2019 3:50 pm 
Offline

Joined: Wed Dec 05, 2018 7:52 pm
Posts: 48
Hello guys. It's me one more time.

I checked the cables, looped the TX and RX and I can receive the sent characters correctly.

I'm using a baudrate of 9600. Below is the logical analysis of when I press some character on the keyboard. Look through the zero channel of the analyzer that nothing happens.

Attachment:
captura05.PNG
captura05.PNG [ 4.73 KiB | Viewed 448 times ]


Below the analyzer brings the result of when I press the reset. I tried to increase the resolution. See if you can see better this way. Because of the resolution of my notebook, I could not get a better print. NOTE: Images are not on the same time scale. The first catch event is very fast.

Attachment:
captura06.PNG
captura06.PNG [ 5.09 KiB | Viewed 448 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 4:15 pm 
Offline

Joined: Wed Dec 05, 2018 7:52 pm
Posts: 48
Folks! Good news.

It worked. The problem was in the ACIA baudrate. I use a 1.8432 MHz crystal connected to ACIA ports 6 and 7. Port 7 before was connected to a capacitor and it was on GND. I removed the capacitor and it worked. The baudrate of 9600 was accurate!

  : D: D: D: D: D

A long time ago I was not so happy to see a Hello World! on my screen!

I'll send more news. Thank you all!!!


Top
 Profile  
Reply with quote  
PostPosted: Sat Mar 09, 2019 4:30 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
(You found your problem while I was composing this - I made a mistake at first and got nonsense, but corrected myself and now it shows that it is possible to decode serial data manually.)

Quote:
Great, so if you can mock up a grid to show each bit time, or pair of bit times, and align it so you can mark off sets of ten bit-times, can you arrange that so you see a zero start bit then 8 data bits then a one stop bit? I think you probably can, and that's encouraging.

I think I see these pulse widths:
Code:
412111 11112211 321211 321211 141211 6121 13111111 141211 212311 321211 312211 11...
which is
Code:
0  0001 0010  1
0  1010 0110  1
0  0011 0110  1
0  0011 0110  1
0  1111 0110  1
0  0000 0100  1
0  1110 1010  1
0  1111 0110  1
and so on...
which would be
Code:
48 65 6C 6C 6F 20 57 6F...

which makes "Hello Wo..."


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 128 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 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: