This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../../Library/18f4520ptr.h" | |
#include "../../Library/modifiedlcd.h" | |
float Vres=5.0/1023.0; | |
float Voltage; | |
float Voltage1; | |
float Vmin=0; |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres = 5.0 / 1023.0; | |
float Voltage; | |
#INT_AD |
This file contains 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
#include <18f4520.h> | |
#use delay (clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/modifiedlcd.h" | |
int push=1; | |
#INT_EXT | |
void int_ext_isr(){ |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/KeypadC1.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres=5.0/1023.0; | |
float Voltage, Voltage1, VoltageP; | |
float Vmin=0; |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/KeypadC1.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres=5.0/1023.0; | |
float Voltage, Voltage1; | |
float Vmin=0; |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/KeypadC1.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres=5.0/1023.0; | |
float Voltage, Voltage1; | |
float Vmin=0; |
This file contains 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
#include <18F4520.h> | |
#use delay (clock = 20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../4520_B.h" | |
#include "../modifiedlcd_B.h" | |
#define COL0 0x6 | |
#define COL1 0x5 | |
#define COL2 0x3 |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/KeypadC1.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres=6.0/1023.0; | |
float Voltage; | |
float Vmin=3; |
This file contains 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
//GPIO | |
int *TRISA=0xF92, *TRISB=0xF93, *TRISC=0xF94; | |
int *PORTA=0xF80, *PORTB=0xF81, *PORTC=0xF82; | |
// Analog to Digital | |
int16 *Q=0xFC3; | |
struct _ADCON0{ | |
int ADON:1; |
This file contains 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
#include <18f4520.h> | |
#use delay(clock=20000000) | |
#fuses HS, NOWDT, NOLVP | |
#include "../Library/18f4520ptr.h" | |
#include "../Library/modifiedlcd.h" | |
float Vres=6.0/1023.0; | |
float Voltage; | |
float Vmin=3; |