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

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Sep 13, 2019 1:47 pm 
Offline

Joined: Tue Jun 19, 2018 8:28 am
Posts: 122
Currently I am designing few devices based on MOS6502/WDC65C02 CPUs.
I am going to use Motorola MC6840 timer circuit to generate interrupts and signals.
In particular I need:
1) Basic timer interrupt, to measure "system time". I'd like to implement something like millis() function from Arduino.
2) Square waves (without PWM, just standard 50% duty cycle) to generate basic audio "beeps" and to control stepper motors.
3) Pulse counting.

I've already read datasheet, but some things are still not clear to me.
1)I see there is no need to wire each timer input to system clock, if I want to use it to clock the timers. It could be distributed internally, from "E" pin. But what to do with unused timer inputs? Should I pull them up with resistors or simply left them disconnected?
2 Is it possible to use GATE input to "mute" its output, as it was done with Intel 8253 chip? If not, can I left unused GATE inputs disconnected or should I pull them up with resistors?


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 13, 2019 4:59 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
It would be helpful if you posted the datasheet or a link to it. This makes it a bit easier for anyone wishing to assist you. :)

Unused inputs should never be left unconnected with chips like this (MOS and CMOS). Tie them high or low, or used a resistor to pull them high or low.

cheers,
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: Sat Sep 14, 2019 4:53 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
Dr Jefyll wrote:
It would be helpful if you posted the datasheet or a link to it. This makes it a bit easier for anyone wishing to assist you. :)

Unused inputs should never be left unconnected with chips like this (MOS and CMOS). Tie them high or low, or used a resistor to pull them high or low.

cheers,
Jeff

Attachment:
File comment: MC6840 Data Sheet
MC6840.pdf [1.46 MiB]
Downloaded 72 times

As is typical of NMOS hardware from that time, it's kind of slow and a bit weak in the knees.

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


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 14, 2019 5:22 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
Quote:
As is typical of NMOS hardware from that time, it's kind of slow and a bit weak in the knees.

You might want to look into the W65C22S which is rated for much higher speeds, and from what you've written about your requirements, it can do everything you need (plus more). It's in current production too, with no end in sight. OTOH, if you just have some 6840's and you just want to have fun with them, there's nothing wrong with that, either.

_________________
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  
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 57 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: