projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed GoodFET22. GSEL must be high or DAC0 must be high and DAC1 low.
[goodfet]
/
firmware
/
apps
/
glitch
/
glitch.c
diff --git
a/firmware/apps/glitch/glitch.c
b/firmware/apps/glitch/glitch.c
index
2242448
..
0ff76f1
100644
(file)
--- a/
firmware/apps/glitch/glitch.c
+++ b/
firmware/apps/glitch/glitch.c
@@
-23,8
+23,8
@@
void glitchprime(){
TACTL|=TACLR; //Clear TimerA Config
TACTL|=
TASSEL_SMCLK | //SMCLK source,
TACTL|=TACLR; //Clear TimerA Config
TACTL|=
TASSEL_SMCLK | //SMCLK source,
- MC_1
;
//Count up to CCR0
-
//
TAIE; //Enable Interrupt
+ MC_1
|
//Count up to CCR0
+
TAIE; //Enable Interrupt
CCTL0 = CCIE; // CCR0 interrupt enabled
CCR0 = glitchcount;
CCTL0 = CCIE; // CCR0 interrupt enabled
CCR0 = glitchcount;
@@
-72,26
+72,8
@@
interrupt(TIMERA0_VECTOR) Timer_A (void)
asm("nop");
asm("nop");
DAC12_0DAT = glitchH;
asm("nop");
asm("nop");
DAC12_0DAT = glitchH;
- //DAC12_0DAT = glitchL;
- /*
- switch(glitchstate){
- case 0:
- P1OUT|=1;
- glitchstate=1;
- DAC12_0DAT = glitchH;
- break;
- case 1:
- P1OUT|=1;
- glitchstate=0;
- DAC12_0DAT = glitchL;
- break;
- default:
- P1OUT&=~1;
- //Do nothing.
- break;
- }
- */
#endif
#endif
+ TACTL |= MC0; // Stop Timer_A;
}
}