6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:42 am

All times are UTC




Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
PostPosted: Thu Sep 22, 2016 5:33 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
beholder wrote:
Ok! Got my first serial data sent back and forth between my computer and the SBC!!!!!
Hurray!

The bad news... it only works if I have my arduino providing the clock :(

If you want some help with this how about posting a schematic?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 22, 2016 6:24 am 
Offline

Joined: Wed Sep 02, 2015 7:28 pm
Posts: 63
Sorry but I don't have a schematic :cry:

My SBC is a copy of Daryl's SBC 2.5 (http://sbc.rictor.org/info2.html) I tried to keep as close as possible.
I wire wrapped/soldered on a protoboard following his schematics.

The only differences from his schematics:
Not using max232, but an FTDI breakout board (https://www.sparkfun.com/products/9716)
Im only using RX & TX

EEPROM only
I have only 1 x 100uFarads electrolytic capacitor on the power supply.

I'll be posting pics soon :)
Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 22, 2016 12:53 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
beholder wrote:
Ok! Got my first serial data sent back and forth between my computer and the SBC!!!!!
Hurray!
I bet that feels good. Congrats! :)

Quote:
It's so bizarre, all I have to do is switch the oscillator with the arduino and it works! I can see in my terminal window the word "OK"
At least now I know is something to do with my 1MHz can oscillator.
Is it still the same oscillator with the TTL output? The 74HC541 you're using as a buffer actually isn't appropriate, as its inputs aren't rated to accept TTL levels -- just as the inputs on the 'C02 aren't rated to accept TTL levels. (It's more or less a fluke that the 74HC541 made any improvement. But it's not unusual to see bizarre stuff in circumstances like this.)

Do you have a 74HCT541 -- or some other 74HCT chip -- that you could use as the buffer? 74HCT chips do accept TTL levels at their inputs.

Alternatively, you could try adding a pullup resistor (say 2.2 or 3.3K) from the osc. output to VCC. Better yet, get rid of that darn oscillator and replace it with the proper part! :)

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 22, 2016 3:25 pm 
Offline

Joined: Wed Sep 02, 2015 7:28 pm
Posts: 63
Hi Jeff.
Indeed, it was very satisfying when I saw the words "OK" on my monitor :D

I only have the 74hc541, but I'll be ordering a new oscillator today from digikey!
Will try using a resistor, thanks for the tip!
Allmost there! Soon I'll have my own 6502 sbc :twisted:
Thanks


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 22, 2016 4:13 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 491
Location: Switzerland
If it is a problem with the TTL output level a pull up should show if this is the case. A TTL output can sink approx 16mA so if you add a 680-2200Ohm pull up to VCC to the output of your canned oszillator you should see if the level is the issue. The pull up will overwrite the high output level of the oszillator and bring the level at almost VCC level if you have only CMOS inputs connected to PHI2. At the low level the TTL output is strong enough to pull the output to approx 0.5V even with the load of the pull-up


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC


Who is online

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