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 |
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_04_voltimeter.c | |
Objective: This code tells you how you can create a voltimeter:) | |
Range: 0-5v | |
USE: AN1 | |
Lib Notes : Select these Libraries (LIB.MANAGER) for mikroC PRO for PIC compiler:) | |
> ADC |
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_03_formatNumbers.c | |
Objective: This code tells you how you can format the number you will present on screen:) | |
We will read channels (0 & 1) and present at LCD screen, like this: | |
[AN0: ranged 0-100%] ie: S1: 56% | |
[AN1: ranged 0-255 ] ie: S2: 255 | |
Lib Notes : Select these Libraries (LIB.MANAGER) for mikroC PRO for PIC compiler:) |
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_02_chooseChannel.c | |
Objective: We will create a function to read | |
a tripot at channel AN0 or AN1 | |
depending on the parameter passed:) | |
Note: Select these Libraries for mikroC PRO for PIC compiler:) | |
> LCD | |
> Conversions |
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_01_tripotRead.c | |
Objective: This is the hello world for ADC Module! | |
We will read a tripot at channel AN0 | |
and present the result in the LCD:) | |
Note: Select these Libraries for mikroC PRO for PIC compiler:) | |
> LCD | |
> Conversions |