6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 15, 2024 2:34 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: square frequency
PostPosted: Wed Dec 29, 2004 1:46 pm 
Offline

Joined: Mon Dec 27, 2004 12:23 pm
Posts: 1
hi,
I want to square wave with 6502 assembly which is my frequnecy . I write only 50hz frequncy square vaew output how can I do it ?

.ORG $0200
LDA #$00
STA $0401
LDA #$0F
STA $0400
LDA #$04
STA $0401
AGAIN: LDA #$01
STA $0400
JSR WAIT
JSR WAIT
LDA #$00
STA $0400
JSR WAIT
JSR WAIT
JMP AGAIN
BRK
BRK
.ORG $022A
WAIT LDY #$20
LDX #$1D
A1: DEX
BNE A1
A2: DEY
BNE A2
RTS
BRK

_________________
never stop when you show last


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 29, 2004 11:21 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8541
Location: Southern California
I'm sure we can give you a more efficient way. What kind of hardware are you running it on? What I/O IC is at address 400?


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

All times are UTC


Who is online

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