2 \author Travis Goodspeed
3 \brief Glitching Support for GoodFET20
5 See the TI example MSP430x261x_dac12_01.c for usage of the DAC.
6 This module sends odd and insufficient voltages on P6.6/DAC0
7 in order to bypass security restrictions of target devices.
14 //! Disable glitch state at init.
17 //Set GSEL high to disable glitching.
29 //! Setup analog chain for glitching.
30 void glitchsetupdac(){
33 ADC12CTL0 = REF2_5V + REFON; // Internal 2.5V ref on
34 // Delay here for reference to settle.
35 for(i=0;i!=0xFFFF;i++) asm("nop");
36 DAC12_0CTL = DAC12IR + DAC12AMP_5 + DAC12ENC; // Int ref gain 1
37 // 1.0V 0x0666, 2.5V 0x0FFF
39 //DAC12_0DAT = 0x0880;
40 //__bis_SR_register(LPM0_bits + GIE); // Enter LPM0