Hi Guys, Looking for clues to enlighten my darkness, and pointers to the FM I should read...
I'm using a dev kit with a PXA270.The 'scope is connected to a random GPIO pin (90 as it happens), and I'm using a tiny prog (extract below) to toggle the pin. Given that the CPU is set up for, and reports itself as, working at core freq = 520MHz, I don't understand why the GPIO pin is toggling with a period of about 800ns. After all, the loop requires roughly a dozen machine cycles, so I was expecting the loop period to be an order of magnitude smaller. What have I misunderstood about the phrase, "Doh!" so far?
Here's the loop, disassembled in gdb:
while(1) { *pGPCR2 = nBIT90; // clear bit 90
0x00008820 : ldr r3, [r11, #-28] 0x00008824 : ldr r2, [r11, #-32] 0x00008828 : str r3, [r2] *pGPSR2 = nBIT90; // set bit 90 0x0000882c : ldr r2, [r11, #-28] 0x00008830 : ldr r1, [r11, #-36] 0x00008834 : str r2, [r1] } 0x00008838 : b 0x8820Thanks, and sorry, etc...