This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Project name: | |
| unid_04_09_timer0_50ms.c (TMR0@.05) | |
| * Copyright: | |
| (c) J3, Oct 2019 | |
| * Revision History: | |
| V 1.0 | |
| Initial compilation | |
| * Status: | |
| 100% completed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define TRUE 1 | |
| /* | |
| * Project name: Unit 04 - TMR | |
| unit_04_08_timer0_500ms.c [TMR0@.5s] | |
| * Copyright: | |
| (c) J3, Oct 2019 | |
| * Revision History: | |
| Version 1.0 - Oct, 2019 | |
| Initial compilation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_07_timer2.c [TMR@.32s] | |
| Objective: In this project we will program TIMER2; | |
| Each TMR2's pulse will toggle LED at PORTD.RD0. | |
| Two buttons are used to STOP / GO the Timer2 | |
| See Math Formula Memory presented below:) | |
| Author: microgenios, edited by J3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_06_timer1asCounterLCD.c [CNT@65536PULSES] | |
| Objective: In this project we will program TIMER1 | |
| AS COUNTER and present results on LCD. | |
| Here you will learn about UNION \o/ | |
| (see please preview example using LED) | |
| Author: microgenios, edited by J3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_05_timer1asCounter.c [CNT@1PULSE] | |
| Objective: In this project we will program TIMER1 AS COUNTER. | |
| Each pulse on PORTC.RC0 will toggle LED at PORTD.RD0:) | |
| See Calculation Memory presented below:) | |
| Author: microgenios, edited by J3 | |
| PIC Lessons: How to Start to Program PIC 18 - Step-by-step for Beginners! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_04_timer1.c [TMR@MAX] | |
| Objective: In this project we will program TIMER1 AS TIMER | |
| to count its maximum scale and present results on the LED. | |
| See Calculation Memory are presented below:) | |
| Author: microgenios, edited by J3 | |
| PIC Lessons: How to Start to Program PIC 18 - Step-by-step for Beginners! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_03_countTillTen.c [CNT@10pulses] | |
| Objective: In this project we will program TIMER0 AS COUNTER | |
| to count until 10 PULSES and present result on LED. | |
| There is no Calculation Memory because we are in asynch count mode:( | |
| To simulate, enter 10 pulses on pin RA4 (PIC18F4520's sixth pin). | |
| Author: microgenios, edited by J3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_01_timer0Extended.c [TMR0@5s] | |
| Objective: In this project let's configure Timer0 to overflow at each 5s. | |
| An LED (attached on PORTD.RB0) will blink at each 5 second:) | |
| See Calculation Memory for better code's undenstanding:) | |
| Author: microgenios, edited by J3 | |
| PIC Lessons: How to Start to Program PIC 18 - Step-by-step for Beginners! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 04 - TMR | |
| Code: unit_04_01_timer0.c [TMR0@1s] | |
| Objective: In this project let's configure Timer0 to overflow at each 1s. | |
| An LED (attached on PORTD.RD0) will blink at each second:) | |
| See Calculation Memory for better code's understanding:) | |
| Author: microgenios, edited by J3 | |
| PIC Lessons: How to Start to Program PIC 18 - Step-by-step for Beginners! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Project: Unit 03 - ADC | |
| Code: unit_03_05_forcePoint.c | |
| Objective: This code tells you how to force a point to a numbers to turn it into (fake) float | |
| Lib Notes : Select these Libraries (LIB.MANAGER) for mikroC PRO for PIC compiler:) | |
| > ADC | |
| > LCD | |
| > Conversions |