Magu I am also beginner....but I think you are asking something but you ask somtehing that too general and may be too hard for you to chew one shot.
Why not you create a simple flashing LEDs 1st.
Be familiar with with the PIC 1st. The Circuit and PIC Basic Pro Language 1st.
Then once successful you can start troubleshooting this project why not you try to always on all the row 1st and cascade the counter.
Just high all the Rows 1st.
TRISA = %00000000
TRISB = %10000000
'Variables...
ColPosition VAR BYTE
ClockColsCounter VAR PORTB.6
ROW1 VAR PORTA.2
ROW2 VAR PORTA.3
ROW3 VAR PORTB.4
ROW4 VAR PORTB.3
ROW5 VAR PORTB.0
ROW6 VAR PORTB.2
ROW7 VAR PORTB.1
ResetColsCounter VAR PORTB.5
'Reset 4017 counters
ResetColsCounter = 1
Pause 100
ResetColsCounter = 0
ROW1 = 0
ROW2 = 0
ROW3 = 0
ROW4 = 0
ROW5 = 0
ROW6 = 0
ROW7 = 0
Matchmode:
ColPosition=0
ROW1 = 1
ROW2 = 1
ROW3 = 1
ROW4 = 1
ROW5 = 1
ROW6 = 1
ROW7 = 1
CascadeCounter:
For ColPosition = 0 to 37
PULSOUT ClockColsCounter,100 'to create a PWM for 4017 counter clock
Next ColPosition
Goto Matchmode:
END
Do not think to fetch the data from the EEprom 1st.
By doing this you know that your circuit is ok. (power supply, micro and driver is ok)
Then you can start deal with the EEPROM.
Just Try a basic thing 1st once you verified the basic thing works then you go to the harder thing.
Nobody can help you if you just keep ask general thing why it doesn't work.
Bookmarks