Hi,
i have really a problem here. The BT81x should run default with 60 Mhz core clock an the new one with 72 MHz when i write:
EVE_cmdWrite(EVE_CLKSEL, 0x46); /* set clock to 72 MHz */
Then i do this:
EVE_memWrite32(REG_FREQUENCY, 72000000); to set it correct
I am setting up the chip and then check the speed with:
// Write the EVE stats:
uint32_t eveClockOld = EVE_memRead32(REG_CLOCK);
delay(1000);
uint32_t eveClockNew = EVE_memRead32(REG_CLOCK);
Serial.print("EVE clock: ");
Serial.println(eveClockNew - eveClockOld);
delay(1000);
uint32_t eveFramesOld = EVE_memRead32(REG_FRAMES);
delay(1000);
uint32_t eveFramesNew = EVE_memRead32(REG_FRAMES);
Serial.print("EVE frames: ");
Serial.println(eveFramesNew - eveFramesOld);
With the values set to:
EVE_cmdWrite(EVE_CLKSEL, 0x46)
EVE_cmd_pclkfreq(50500000L, 0)
EVE_memWrite8(REG_PCLK, 0x01)
i get this:
EVE PCLK Frequency: 50000000 => OK
EVE clock: 34668795 => would expect 72000000 or something here (looks like approx half of 72000000 Hz)
EVE frames: 85
With nothing written to EVE_CLKSEL (which should be default => 60 Mhz) I get:
EVE PCLK Frequency: 50000000 => OK
EVE clock: 28909452 => would expect 60000000 or something here (looks like approx half of 60000000 Hz)
EVE frames: 85
I am using no external crystal with the setting EVE_cmdWrite(EVE_CLKINT,0); /* setup EVE for internal clock */ set.
So my question is what can be the reason for this or do i missed/messed up here something ?
Thank you for your help.
Torsten