Tool/software: Code Composer Studio
Hello,
I'm not very experience with programming micro-controllers and this is the first time I have worked with the MSP430F5529.
I need to produce a square wave with a frequency of 5MHz to serve as a clock pulse for another piece of equipment that I am working with. I have set the MCLK to 25 MHz and I have raised the voltage to accommodate this clock frequency. However, when I run the following code
for(;;) {
P2OUT ^= 0x01;
}
P2.0 is only toggled at a frequency of 1.61 MHz. Is there anyway to iterate through this loop faster? Presumably after that speed is increased, I can set a delay using __delay_cylces() to achieve the precise frequency.
Please help me if possible. I would appreciate any advice or suggestions.