Hi Banedon.
I figured out why it wasn't working on 115200, the serial window has a dropdown option box where you choose which rate.
Didn't know I had to set the arduino project and the serial window
I got both the free run and tight loop examples working, from this website:
http://mysite.du.edu/~jcalvert/tech/6504.htm
I hooked up LEDs on all 16 pins of the address bus to check what was happening.
As expected from the tight loop example, the address are always jumping at $00, $01 and $02.
Works perfect and I guess the reset works as well.
Now... I got this funny thing happening when I reset my 65c02. The address bus always starts at FFFF(all leds light up), then it will spit out some random address for 4 clocks (low-high) then it goes to $FFFC, then $FFFD (which from what I understand is the reset vector), then it starts the tight loop.
Any explanation why I get these random values at reset? Could a reset circuit cause this? Im using Garth's reset circuit form his potpourri example with the 74HC138. I wonder if I made a mistake
I'm using my arduino to provide the clock. At the beginning of my loop I set the output pin to LOW then to HIGH. Then I read the address bus pins to see what's happening with the 6502.
Here's a quick copy of what my serial is capturing form the 6502. This right after a reset:
The hex is from address bus pins A0-A7. I can see the full address from the LEDs
The first is always FFFF, then 4 random values, than FFFC and FFFD, than the loop starts.
Doesn't matter if I change the clock speed to very fast or very slow, same results.
########## RESET ##########
- clock low: 1
- clock high: 2
- clock low: 3
ff
- clock high: 4
- clock low: 5
03
- clock high: 6
- clock low: 7
f0
- clock high: 8
- clock low: 9
ef
- clock high: 10
- clock low: 11
ee
- clock high: 12
- clock low: 13
fc
- clock high: 14
- clock low: 15
fd
- clock high: 16
- clock low: 17
00
- clock high: 18
- clock low: 19
01
- clock high: 20
- clock low: 21
02
- clock high: 22
- clock low: 23
00
- clock high: 24
- clock low: 25
01
- clock high: 26
- clock low: 27
02
- clock high: 28
- clock low: 29
00
- clock high: 30
- clock low: 31
01
- clock high: 32
- clock low: 33
02
- clock high: 34
- clock low: 35
00
- clock high: 36
- clock low: 37
01
- clock high: 38
- clock low: 39
02
- clock high: 40
- clock low: 41
00