Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Assignment_Four/EINT0.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@


/*** global ***/
extern bool enabled;


/************* Interrupt service routine for EINT0 ****************************/
__irq void EINT0_ISR(void) { // interrupt service routine
enabled = !enabled; // toggle enabled mode
T1TCR = !T1TCR; // toggle timer1

EXTINT |= 0x01; // clears EINT0 interrupt flag
VICVectAddr = 0; // Update interrupt priority hardware
Expand Down
705 changes: 348 additions & 357 deletions Assignment_Four/Listings/exercise1.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions Assignment_Four/MCB2300 evaluationboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ void initEvaluationBoard(void) {
//PINMODE4 = 0x0020AAAA; // LEDS
SCS |= (1 << 0); // enable fast GPIO !!!
//LEDS = 0x00; // on reset all leds are off
// BUZZER = 0x00; // BUZZER off at start

//BUZZER = 0x00; // BUZZER off at start
// init the lcd
lcd_init();
//PINMODE1 |= (2 << 20);

// select the DAC (Aout)
PINSEL1 |= (2 << 20);
}

2 changes: 0 additions & 2 deletions Assignment_Four/MCB2300 evaluationboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ void init_T2(void); // function prototype
void init_T3(void); // function prototype
void init_EINT0(void); // function prototype

void printLCDText(char const *string1, char const *string2, int mode);


#endif
2 changes: 2 additions & 0 deletions Assignment_Four/Objects/ExtDll.iex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[EXTDLL]
Count=0
Binary file modified Assignment_Four/Objects/eint0.crf
Binary file not shown.
Binary file modified Assignment_Four/Objects/eint0.o
Binary file not shown.
Binary file modified Assignment_Four/Objects/exercise1.axf
Binary file not shown.
14 changes: 3 additions & 11 deletions Assignment_Four/Objects/exercise1.build_log.htm
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,14 @@ <h2>Tool Versions:</h2>

<h2>Project:</h2>
C:\Users\Zwonni\Documents\Hanze Elektro\EPDE\Embedded Systems\ARM7\_git\ARM7\Assignment_Four\exercise1.uvproj
Project File Date: 10/02/2017
Project File Date: 10/04/2017

<h2>Output:</h2>
*** Using Compiler 'V5.06 update 1 (build 61)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'LPC2378'
assembling LPC2300.s...
compiling MCB2300 evaluationboard.c...
compiling LCD_4bit.c...
compiling Timer0.c...
compiling EINT0.c...
Build target 'LPC2378'
compiling main.c...
compiling Timer1.c...
compiling Timer2.c...
compiling Timer3.c...
linking...
Program Size: Code=2452 RO-data=80 RW-data=0 ZI-data=1384
Program Size: Code=4660 RO-data=96 RW-data=200 ZI-data=1408
FromELF: creating hex file...
".\Objects\exercise1.axf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:00:01
Expand Down
Loading