diff options
Diffstat (limited to '')
-rw-r--r-- | Lab5.X/Lab 5 Report.pdf | bin | 0 -> 45125 bytes | |||
-rw-r--r-- | Lab5.X/dist/default/debug/memoryfile.xml | 4 | ||||
-rw-r--r-- | Lab5.X/lab5_lcd.c | 6 | ||||
-rw-r--r-- | Lab5.X/lab5_main.c | 4 | ||||
-rw-r--r-- | Lab5.X/nbproject/Makefile-genesis.properties | 4 | ||||
-rw-r--r-- | Lab5.X/nbproject/configurations.xml | 1 | ||||
-rw-r--r-- | Lab5.X/nbproject/private/private.xml | 6 | ||||
-rw-r--r-- | Lab5.X/strap012_Lab5.zip | bin | 0 -> 45577 bytes |
8 files changed, 12 insertions, 13 deletions
diff --git a/Lab5.X/Lab 5 Report.pdf b/Lab5.X/Lab 5 Report.pdf Binary files differnew file mode 100644 index 0000000..090ef8a --- /dev/null +++ b/Lab5.X/Lab 5 Report.pdf diff --git a/Lab5.X/dist/default/debug/memoryfile.xml b/Lab5.X/dist/default/debug/memoryfile.xml index 9f704b1..b444e63 100644 --- a/Lab5.X/dist/default/debug/memoryfile.xml +++ b/Lab5.X/dist/default/debug/memoryfile.xml @@ -11,8 +11,8 @@ <memory name="program"> <units>bytes</units> <length>65274</length> - <used>1086</used> - <free>64188</free> + <used>1125</used> + <free>64149</free> </memory> </executable> </project> diff --git a/Lab5.X/lab5_lcd.c b/Lab5.X/lab5_lcd.c index 8c0af52..f9567ad 100644 --- a/Lab5.X/lab5_lcd.c +++ b/Lab5.X/lab5_lcd.c @@ -1,7 +1,9 @@ #include "xc.h" #include "lab5_lcd.h" #include "string.h" -#define CON 32 +//CON should be between 0 and 0xFF. +#define CON 0x00 + //Obligatory delay function void delay(long n){ for (n=n; n>0; n--) { @@ -31,7 +33,7 @@ void lcd_init(void) { lcd_cmd(0b00111000); // function set, normal instruction mode lcd_cmd(0b00111001); // function set, extended instruction mode lcd_cmd(0b00010100); // interval osc - lcd_cmd(0b01110000); // contrast C3-C0 + lcd_cmd((0b0111 << 4) + CON); // contrast C3-C0 lcd_cmd(0b01011110); // Ion, Bon, C5-C4 lcd_cmd(0b01101100); // follower control delay(266665); diff --git a/Lab5.X/lab5_main.c b/Lab5.X/lab5_main.c index b133335..6af5ea7 100644 --- a/Lab5.X/lab5_main.c +++ b/Lab5.X/lab5_main.c @@ -26,12 +26,12 @@ void setup(void) { int main(void) { setup(); - lcd_setCursor(0, 0); + lcd_setCursor(0,0); lcd_printStr("Hello"); lcd_setCursor(2,1); lcd_printStr("World!"); while (1) { - delay(500000); + delay(300000); left(); } }
\ No newline at end of file diff --git a/Lab5.X/nbproject/Makefile-genesis.properties b/Lab5.X/nbproject/Makefile-genesis.properties index 0376466..b4b72a9 100644 --- a/Lab5.X/nbproject/Makefile-genesis.properties +++ b/Lab5.X/nbproject/Makefile-genesis.properties @@ -1,9 +1,9 @@ # -#Wed Apr 08 10:43:03 CDT 2020 +#Tue Apr 14 19:27:44 CDT 2020 default.Pack.dfplocation=C\:\\Program Files (x86)\\Microchip\\MPLABX\\v5.35\\packs\\Microchip\\PIC24F-GA-GB_DFP\\1.2.101 default.com-microchip-mplab-nbide-toolchainXC16-XC16LanguageToolchain.md5=859fc649e7017fd01769e2187e1537a7 default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc16\\v1.50\\bin -configurations-xml=26589ca1d802028c5a31cd15231825b7 +configurations-xml=c230c626988d1c5900bc0ce5cfd47f7f com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=5db0f4d6bbe0ec2a1f1096ccfb9d7ad3 default.languagetoolchain.version=1.50 host.platform=windows diff --git a/Lab5.X/nbproject/configurations.xml b/Lab5.X/nbproject/configurations.xml index 3ea7dfd..c5c48be 100644 --- a/Lab5.X/nbproject/configurations.xml +++ b/Lab5.X/nbproject/configurations.xml @@ -194,6 +194,7 @@ <property key="ToolFirmwareFilePath" value="Press to browse for a specific firmware version"/> <property key="ToolFirmwareOption.UseLatestFirmware" value="true"/> + <property key="firmware.download.all" value="false"/> <property key="memories.bootflash" value="true"/> <property key="memories.configurationmemory" value="true"/> <property key="memories.dataflash" value="true"/> diff --git a/Lab5.X/nbproject/private/private.xml b/Lab5.X/nbproject/private/private.xml index f2aa828..6807a2b 100644 --- a/Lab5.X/nbproject/private/private.xml +++ b/Lab5.X/nbproject/private/private.xml @@ -2,10 +2,6 @@ <project-private xmlns="http://www.netbeans.org/ns/project-private/1"> <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/> <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> - <group> - <file>file:/C:/Users/Ross/MPLABXProjects/EE2361Projects/Lab5.X/lab5_main.c</file> - <file>file:/C:/Users/Ross/MPLABXProjects/EE2361Projects/Lab5.X/lab5_lcd.c</file> - <file>file:/C:/Users/Ross/MPLABXProjects/EE2361Projects/Lab5.X/lab5_lcd.h</file> - </group> + <group/> </open-files> </project-private> diff --git a/Lab5.X/strap012_Lab5.zip b/Lab5.X/strap012_Lab5.zip Binary files differnew file mode 100644 index 0000000..62f6123 --- /dev/null +++ b/Lab5.X/strap012_Lab5.zip |