Digital Computer Architecture II
Lesson 7 - Introduction to PIC programming with C, Project assignment
Study materials
Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/1433/jaro2009/PA176/um/7445607/pic7_introC.pdf
Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/1433/jaro2009/PA176/um/7445607/PICC_manual.pdf
Program template in C:
Chyba: Odkazovaný objekt neexistuje nebo nemáte právo jej číst.
https://is.muni.cz/el/1433/jaro2009/PA176/um/7445607/C_main.zip
Tasks
Task 1
Write in C language following example: Two GPIO ports as outputs to diods. Period 1second (intruction cycle takes 1microsedond (1MHz)) - change the lighting diod after 1 sec using counters, not timers. The sequence shoud be: LED1ON & LED2OFF, BOTH OFF, LED1OFF & LED2ON, BOTH OFF, LED1ON & LED2OFF, BOTH OFF, LED1OFF & LED2ON, BOTH OFF, etc.
Task 2
Write in C language following example: Two GPIO ports as outputs to diods. Period 1second (intruction cycle takes 1microsedond (1MHz)) - change the lighting diod after 1 sec using TIMER1 and its interrupt. The sequence shoud be: LED1ON & LED2OFF, BOTH OFF, LED1OFF & LED2ON, BOTH OFF, LED1ON & LED2OFF, BOTH OFF, LED1OFF & LED2ON, BOTH OFF, etc.