E2E DM36x Community,
Here's a procedure that can come in handy in the case that you would want to use the CLKOUT0, CLKOUT1 or CLKOUT2 in DM36x.
hotmenu Clkout0_driver() { *(unsigned int *)0x01C40048 &= 0xFFFFFFFE; // Enable CLKOUT0 driver *(unsigned int *)0x01C40010 |= 0x00300000; // GIO37 will act as CLKOUT0 *(unsigned int *)0x01C40000 |= 0x00008000; // GIO 93 as CLKOUT0 *(unsigned int *)0x01C40948 |= 0x00000002; // OBS CLK enabled *(unsigned int *)0x01C40904 = 0x00000000; // Oscillator divider output enabled *(unsigned int *)0x01C40924 = 0x00008001; // Expecting 12 Mhz clock GEL_TextOut(" Clkout 0 enabled \n"); }
hotmenu Clkout1_driver() { *(unsigned int *)0x01C40048 &= 0xFFFFFFFD; // Enable CLKOUT1 driver *(unsigned int *)0x01C40010 |= 0x30000; // GIO35 will act as CLKOUT1 *(unsigned int *)0x01C40D48 |= 0x2; // OBS CLK enabled *(unsigned int *)0x01C40D04 = 0x00; // Oscillator divider output enabled *(unsigned int *)0x01C40D24 = 0x8001; // Expecting 12 Mhz clock GEL_TextOut(" Clkout 1 enabled \n"); }
hotmenu Clkout2_driver() { *(unsigned int *)0x01C40048 &= 0xFFFFFFFB; // Enable CLKOUT2 driver *(unsigned int *)0x01C40010 |= 0x00000300; // GIO31 will act as CLKOUT2 *(unsigned int *)0x01C40904 = 0x00; // Oscillator divider output enabled *(unsigned
int *)0x01C40924 = 0x8001; // Default value observed on CLKOUT2
will be PLLC1_VCO/(((SYSCLK99 +1)*16))- 15 Mhz clock (using 24Mhz
crystal) GEL_TextOut(" Clkout 2 enabled \n"); }
|