Show Posts
|
|
Pages: 1 2 [3] 4 5 ... 8
|
|
31
|
Using Arduino / General Electronics / Re: 74HC165
|
on: October 04, 2011, 08:04:09 am
|
But how is it programmed? In the sketch given in the ShiftIn tutorial page, it is programmed like this: void loop() { //Pulse the latch pin: //set it to 1 to collect parallel data digitalWrite(latchPin,1); //set it to 1 to collect parallel data, wait delayMicroseconds(20); //set it to 0 to transmit data serially digitalWrite(latchPin,0);
//while the shift register is in serial mode //collect each shift register into a byte //the register attached to the chip comes in first switchVar1 = shiftIn(dataPin, clockPin);
But is it necessary to put the load (latch) pin HIGH, delay 20microsec and put it in LOW? Can I just put it in LOW immediately? One more thing, do I need to put the load(latch) pin back to HIGH? The sample sketch given doesn't have one.
|
|
|
|
|
32
|
Using Arduino / General Electronics / 74HC165
|
on: October 04, 2011, 07:10:53 am
|
With the use of 74HC165, I can have 8 extra digital input pins, but how to configure it? It doesn't have a latch pin like the 74HC595, instead it has a load pin, whats the use of it? How to configure that pin? Do I put it LOW before every data transmission and HIGH again after every data transmission? Q7is the output data, not Q7 with - on top , right? CE to low or high? Datasheet: http://www.cytron.com.my/datasheet/IC/74/74HC165.pdf
|
|
|
|
|
37
|
Using Arduino / Project Guidance / Re: Powering an Arduino
|
on: October 03, 2011, 09:32:00 am
|
|
You guys misunderstood my question, only MarkT got it. I'm powering the Arduino through the power jack, I just want to know is the 5V pin available at 5V for use while powering 9V through the power jack.
|
|
|
|
|
40
|
Using Arduino / Project Guidance / Extra Input/Output pins
|
on: October 02, 2011, 05:19:33 am
|
|
We can use to trigger 8 outputs with the use of 3 pins with the 74HC595 IC. And read/write 8 inputs/outputs with the 74HC4051 IC but only can read/write 1 pin at a time. Does anyone know what IC can read/write 8 inputs/outputs (analog and/or digital) at the same time?
|
|
|
|
|
41
|
Using Arduino / General Electronics / 74HC595
|
on: October 02, 2011, 01:30:52 am
|
|
We program it with the function shiftOut(), eg.shiftOut(dataPin, clockPin, MSBFIRST, 255) (255 - BIN=11111111 - all pins high). But can we program it like shiftOut(dataPin, clockPin, MSBFIRST, 11111111) to make all pins high?
What if there's no shiftOut function, how can we send binary data to the data pin?
|
|
|
|
|