Hi,
I have just stared working with the teensy 3.5 and I am having a frustrating time with the comparators and now the PITimers. Whenever I access (even just read a register), the serial interface stops working. I am successfully initiating and calling the ADC's although no using interrupts.
void pit0_isr(){
Serial.println("pit0") ;
pit0_val = PIT_CVAL0 ;
Serial.println(pit0_val) ;
// PIT_TFLG0 |= B1 ; //clears int flag
}
I call the Isr in the main loop. I have set up nothing on the. PIT, but I assume reading would have no effect but return a random number. However as you can see the PIT current value is never printed. Something similar is happening with the Comparators, the programme never gets passed any read or write to their registers.
Start setup
interrupts enabled
calibration successful
pit setup
time = 4
pit0
I confess to being completely lost on why it's behaving this way or how to progress to solve the problem. My only thought is there might be some exception taking place, but I have no idea how to explore what is actually happening. I would appreciate some help please.
Mike
I have just stared working with the teensy 3.5 and I am having a frustrating time with the comparators and now the PITimers. Whenever I access (even just read a register), the serial interface stops working. I am successfully initiating and calling the ADC's although no using interrupts.
void pit0_isr(){
Serial.println("pit0") ;
pit0_val = PIT_CVAL0 ;
Serial.println(pit0_val) ;
// PIT_TFLG0 |= B1 ; //clears int flag
}
I call the Isr in the main loop. I have set up nothing on the. PIT, but I assume reading would have no effect but return a random number. However as you can see the PIT current value is never printed. Something similar is happening with the Comparators, the programme never gets passed any read or write to their registers.
Start setup
interrupts enabled
calibration successful
pit setup
time = 4
pit0
I confess to being completely lost on why it's behaving this way or how to progress to solve the problem. My only thought is there might be some exception taking place, but I have no idea how to explore what is actually happening. I would appreciate some help please.
Mike