clockrates

CPU Emulation and locking to a specific clock speed

If you had read my other question, you'll know I've spent this weekend putting together a 6502 CPU emulator as a programming exercise. The CPU emulator is mostly complete, and seems to be fairly accurate from my limited testing, however it is running incredibly fast, and I want to throttle it down to the actual clock speed of the machin...

Drive an DAC from a stream that is clocked from another source?

Hi, My DAC is internally clocked at 48khz, I need to feed it from a stream that is also 48khz but is clocked from a different source. The two sources will drift over time and any buffering in between will inevitably overflow or underflow. Unfortunately, there is no rate control mechanism available for the source. How can this best be...

Can increment of a register be used to determine the clock rate?

Can increment of a register (in a loop) be used to determine the (effective) clock rate? I've naturally assumed it can, but I was commented that Cpu's may implant Super-scalar techniques that make this kind of computation useless. Also I was told that incrementing of registers on CPU can be done in less than one clock cycle. is it true...

ARM LPC1768 UART0 configuration problem, wrong baud rate.

My baud rate should be 115200, but it is 892.9 void UART0_Init(int pclk, int baudrate) { unsigned long int DLest; //unsigned long int pclk; unsigned int temp; // Turn on power to UART0 SC->PCONP |= PCUART0_POWERON; // Set PINSEL0 so that P0.2 = TXD0, P0.3 = RXD0 PINCON->PINSEL0 = (PINCON->PINSEL0 & ~...