6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 9:05 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Aug 03, 2020 9:29 pm 
Offline

Joined: Tue Jul 28, 2020 11:03 pm
Posts: 4
Hi! I just wanted to drop in and say hello! I'm Erik, a software guy by trade but with a soft passion for hobby hardware and in particular the 6502!

Also wanted to share a brainfart that caused me hours of debugging with the oscilloscope. I have a small breadboard computer going with a R65C02, ROM, RAM and a R65C51. For starters I figured I would write a very small program to output "Hello world" to the ACIA. First, I managed to transmit one single character. Since I wanted to transmit more, I programmed the command register to fire an interrupt when the transmission was complete. No matter what I tried that interrupt didn't acknowledge. I probed the entire board, checked the schematic, checked the code, checked the datasheets. The IRQ line stayed low.

Well after pulling my beard out, I took a look at the vectors at the top of ROM. Well guess what, I had NMI and IRQ in the wrong order! :oops: :)


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 03, 2020 9:44 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8506
Location: Midwestern USA
Risc wrote:
Since I wanted to transmit more, I programmed the command register to fire an interrupt when the transmission was complete. No matter what I tried that interrupt didn't acknowledge. I probed the entire board, checked the schematic, checked the code, checked the datasheets. The IRQ line stayed low.

Well after pulling my beard out, I took a look at the vectors at the top of ROM. Well guess what, I had NMI and IRQ in the wrong order! :oops: :)

Welcome to the club. It's all part of the learning process.

BTW, for future reference, the WDC version of the 65C51 is defective. The transmitter bit is stuck, which means it and the TxD IRQ cannot be used. There are numerous posts around here about it.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 03, 2020 9:59 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
Welcome, Risc.

BigDumbDinosaur wrote:
BTW, for future reference, the WDC version of the 65C51 is defective. The transmitter bit is stuck, which means it and the TxD IRQ cannot be used. There are numerous posts around here about it.

I think 6502.org forum member GaBuZoMeu has the best solution yet: Use the 51's pin 5 (if in DIP), the x16 clock, as an output to drive a VIA's PB6 for its T2 to count pulses and generate an interrupt. The T2 latch value does not need to change with Φ2 rate nor with baud rate.

_________________
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: Tue Aug 04, 2020 7:00 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Welcome Erik! Nice little puzzle to solve.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 17 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: