IT WORKS!!! :D
So I didn't use the capacitor.
As for the software the mistake was ">>". That's why all the LEDs were on. I changed it to ">>=" :idea: and it works.
I didn't quite understand your questions about port B (I'm new to to this). TRISB = 0x00 sets all the pins on port B as outputs ...
Search found 3 matches
- Sat Sep 18, 2010 1:29 am
- Forum: Forum 42
- Topic: PIC with shift register
- Replies: 5
- Views: 3004
- Fri Sep 17, 2010 11:37 pm
- Forum: Forum 42
- Topic: PIC with shift register
- Replies: 5
- Views: 3004
Re: PIC with shift register
Thank you for trying to help me. Here is how I connected the pins:
PINs 8 and 13 to ground
PINs 10 and 16 to +5v
PIN 14 to RB0
PIN 12 to RB1
PIN 11 to RB2
PINs 1-7 and 9 to LEDs through resistors
I also have a .1uf capacitor between PIN 12 and ground. If I take out the capacitor, all the 8 LEDs are ...
PINs 8 and 13 to ground
PINs 10 and 16 to +5v
PIN 14 to RB0
PIN 12 to RB1
PIN 11 to RB2
PINs 1-7 and 9 to LEDs through resistors
I also have a .1uf capacitor between PIN 12 and ground. If I take out the capacitor, all the 8 LEDs are ...
- Fri Sep 17, 2010 4:25 pm
- Forum: Forum 42
- Topic: PIC with shift register
- Replies: 5
- Views: 3004
PIC with shift register
Hello everyone,
I'm trying to use a PIC 16F819 with a 74HC595 shift register, and I can't make it work. Here is the microC program:
#define dataPIN PORTB.f0
#define latchPIN PORTB.f1 //0 la tranmisie si 1 la afisare
#define clockPIN PORTB.f2 //1 dupa fiecare bit
void outOneByte(int dispData ...
I'm trying to use a PIC 16F819 with a 74HC595 shift register, and I can't make it work. Here is the microC program:
#define dataPIN PORTB.f0
#define latchPIN PORTB.f1 //0 la tranmisie si 1 la afisare
#define clockPIN PORTB.f2 //1 dupa fiecare bit
void outOneByte(int dispData ...