I try to see the influence of the SPEED and SRE setting on an output. I use output pin 13 and have the following connections from this pin: 100 Ohm to +3V3, 100 Ohm to GND, 100 pF to GND. I don't see any influence of the SPEED setting on the waveform at pin 13. (I can see an influence of the DSE setting). Anyone an idea how to demonstrate influence of SPEED/SRE setting ?
Code:
void SPEEDtest1(){
Serial.println("SPEEDtest1()...") ; Serial.flush() ;
cli() ;
while(1){
for(int speed=0 ; speed<4 ; speed++){
if(speed==0){
CORE_PIN14_PORTSET = CORE_PIN14_BITMASK; // trigger scope
}
else {
CORE_PIN14_PORTCLEAR = CORE_PIN14_BITMASK;
}
int sre=0 ;
int tmp=IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03 ;
tmp &= ~ ( (3<<6) | (1<<0) ) ;
tmp |= (speed<<6) | sre ;
IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03=tmp ;
for(int k=0 ; k<100 ; k++){
CORE_PIN13_PORTSET = CORE_PIN13_BITMASK;
CORE_PIN13_PORTCLEAR = CORE_PIN13_BITMASK;
}
}
}
}