Seminář z architektury digitálních systémů

5. PIC - EEPROM paměť, časovače v jazyce C

Studijní materiály 

Zadání příkladu

At the begining of program, store to the EEPROM memory a set of following values for different LEDs states (active high - 1=>led on):
GP1/GP0:
 000011
 000001
 000000
 000001
 000011
 

 

Then use Timer1 for measuring cca 0,5sec and use its interrupt for changing state of diods -> load to GPIO first value from EEPROM, at next interrupt load second value from EEPROM etc. and at the end start from begining.