
Originally Posted by
mackrackit
Here is a little bit that may get you started. The PBP manual will help to explain some.
Code:
'Pin setup
include "modedefs.bas"
' The clock and load pins can be shared_
'on all shifters
'Data pins are for each shifter
Clock var PORTB.7
Load var PORTB.6
Data_1 var PORTB.5
Data_2 var PORTB.4
LEDs_1 var byte
LEDs_2 var byte
'Send data to the shifter
pulsout Load,1
shiftout Data_1,Clock,MSBPre,[LEDs_1]
pulsout Load,1
shiftout Data_2,Clock,MSBPre,[LEDs_2]
Now the fun part, if you have the data sheet for the shifter it will help.
If it is a serial to parallel register, sending the value of 2 should make the first output pin on the shifter go high, a value of 4 activate the second pin, a value of 6 both pin 1 and 2. And so on. Each pin up is double from the last. To send to multiple pins, add the values for each pin. This is the same for shift in registers.
This is interesting
http://www.eelab.usyd.edu.au/digital...egister03.html
Hi Roy, Hi Mackrackit,
Have you unzipped Trent's 245 LED post, I have , he provides a nice VB program to send data to his display, all the code, a pdf article on building it, and the code is in PBP, a good read to be sure. http://www.picbasic.co.uk/forum/showthread.php?t=6033 BTW that 74HC425 is either very obscure or the number is either been <font color=red>misread</font color> or is someone's house numbered device, without seeing the schematic it is hard to guess what it really is.<br> Mackrackit, thanks for that last post, a good study.
Last edited by Archangel; - 5th August 2008 at 00:22.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks