nop ;1 cycle
nop ;1 cycle
nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
+ nop ;1 cycle
bis.b #13, &0x0031 ;5 cycles
bic.b #8, &0x0031 ;4 cycles
//Normal voltage, use resistors instead of output.
//P5DIR=0x80; //ONLY glitch pin is output.
+ P5DIR|=0x80; //glitch pin is output.
P5OUT|=0x80; //It MUST begin high.
//P5REN|=0x7F; //Resistors pull high and low weakly.
// Timer A0 interrupt service routine
interrupt(TIMERA0_VECTOR) Timer_A (void){
+ //This oughtn't be necessary, but glitches repeat without it.
+ TACTL=0; //disable counter.
+
+
P5OUT^=BIT7;//Glitch
- //P5DIR=BIT7; //All else high impedance.
+ //asm("nop"); //delay deepens glitch.
P5OUT^=BIT7;//Normal
+
+ //This oughtn't be necessary, but glitches repeat without it.
+ //TACTL=0; //disable counter.
+
+ //P5OUT^=BIT7;//Normal
return;
}