PDA

View Full Version : pic16f627A and 74H374 help



curtis
- 9th February 2008, 18:37
Greetings all;

In my first attempt with pics and more practice, I was able to program the 4x4 LED matrix to work well (see picxie). http://www.larwe.com/zws/products/picxie/index.html

Now I want to do the 8x8 matrix (see picxie2) but need a little code help using picBasic (not picBasic Pro) to write a PWM to RA0 and RA1 ports to send to the 74HC374 chips. Can someone clarify the connections of D0-D7 on both the 74hc374 chips to the B0-B7 ports of the pic chip.

http://www.larwe.com/zws/products/picxie2/index.html

Thanks everyone

Curtis

wasssup1990
- 15th February 2008, 09:06
Clarify as in understand how it works? The row select chip sources current and the column data chip sinks current. The pic is connect to both chips via a 8 bit wide data bus. I'm not familure with those chips and I havn't read the webpage either. I'll be guessing that you put your row byte on portb and pulse porta.1 to shift it into the row chip. Then you set portb for column data and the you pulse porta.0 to shift portb into that column chip.

E.g.
Put %00000001 on portb
Pulse porta.1
Put %00000001 on portb
Pulse porta.0
You will now have the bottom left led on.

mvs_sarma
- 15th February 2008, 13:37
@Curtis,
the byte is wired to both the HC374 chips as if it is a BUS. the concerned chip is selected by RA0 and RA1.

Software part , thanks to Wasssup1990, is already explained.