It is currently Thu May 23, 2013 8:51 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Inverted pulses to led matrix
PostPosted: Wed Oct 20, 2010 7:27 am 
Offline
decided to stick around...
decided to stick around...

Joined: Tue Jun 08, 2010 12:14 pm
Posts: 32
Okay so i just got done building the 8x8 game system and i noticed a few problems. Ive only uploaded pong onto it for right now.


The problem is it looks like the 8bits being sent to the display are inverted like instead 11110011 it comes out as 00001100 i think.

The first picture is what the screen should look like and the second picture is what it looks like right now.

Im thinking it has something to do with the difference between brads newer 8x8 schematic and the older one. I have a feeling that inorder to make the newer 8x8 game system schematic work is by changing the code so that the 8bits are sent inverted to the 74373's. But i could be completely wrong.

Can someone please help me out and tell me why this is happening.


Attachment:
Untitled.png
Untitled.png [ 42.87 KiB | Viewed 751 times ]


Attachment:
ccvxc.png
ccvxc.png [ 54.12 KiB | Viewed 751 times ]


Top
 Profile  
 
 Post subject: Re: Inverted pulses to led matrix
PostPosted: Wed Oct 20, 2010 2:43 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
Yep they certainly do look inverted!

All you need to do is to invert the data before it is sent from the W register to your output port. So just add this line before sending it:

Code:
xorlw b'11111111'


You can also have a look at an earlier post I have made here:

http://www.bradsprojects.com/forum/viewtopic.php?f=20&t=33


Top
 Profile  
 
 Post subject: Re: Inverted pulses to led matrix
PostPosted: Thu Oct 21, 2010 6:59 am 
Offline
decided to stick around...
decided to stick around...

Joined: Tue Jun 08, 2010 12:14 pm
Posts: 32
I see how that little piece of code works but i just dont know where to put it, im still a n00b at programming. :(

I'm guessing somewhere in the draw_paddle or draw_ball subroutine. Could you maybe give me a hint to where it should go. :D

Thanks


Top
 Profile  
 
 Post subject: Re: Inverted pulses to led matrix
PostPosted: Sat Oct 23, 2010 8:02 am 
Offline
decided to stick around...
decided to stick around...

Joined: Tue Jun 08, 2010 12:14 pm
Posts: 32
UPDATE: i figured out where to put that little piece of code. It was kind of a no brainer.

Thank for your help. Now i can start working on adding a second player. :D


Top
 Profile  
 
 Post subject: Re: Inverted pulses to led matrix
PostPosted: Sun Oct 24, 2010 9:10 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Fri Mar 26, 2010 10:30 pm
Posts: 1863
Good work!


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

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 0 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme made by Keenen Wheeler