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...
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 (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...
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 & ~...