frankfurter
Member
i've been using the TimerOne Library for awhile now
I am able to use it on Teensy 3.2, Attiny85 and Atmega328 without a hitch.
I am just testing out my new Teensy 4.0 and I am having all sorts of weird behavior with the TimerOne library
is this someting that is being worked on? i know theres a lot going on right now with the 4.0 stuff
but i figured i'd ask in case there was something i'm not aware of
I downloaded the latest TimerOne library today. and the latest Teensyduino as well
both which helped me get further but not all the way
the function that i attached to TimerOne sort of seems to work
my DAC chip (MCP4921) outputs sound and values
but I can't setPeriod and change the timing of the timer
and nothing else inside my attached function does anything
the Serial Monitor also stops working
(it works if i remove TimerOne from my program)
and I have to push the program button on my Teensy 4.0 everytime I upload
(this also automatically works like u would expect when I remove TimerOne from my program)
sorta seems like the Teensy freezes up or something
anyway just looking for some insight or info that I may not be hip too
also i've tried a few different things, including IntervalTimer with similar results.
the only way i could get it to work was to scrap the Timer Routine and just run the function straight from loop()
but that is not ideal.
really want to get the Timer Routine working or any type of Interrupt Service Routine for that matter
thanks yall!
<#
I am able to use it on Teensy 3.2, Attiny85 and Atmega328 without a hitch.
I am just testing out my new Teensy 4.0 and I am having all sorts of weird behavior with the TimerOne library
is this someting that is being worked on? i know theres a lot going on right now with the 4.0 stuff
but i figured i'd ask in case there was something i'm not aware of
I downloaded the latest TimerOne library today. and the latest Teensyduino as well
both which helped me get further but not all the way
the function that i attached to TimerOne sort of seems to work
my DAC chip (MCP4921) outputs sound and values
but I can't setPeriod and change the timing of the timer
and nothing else inside my attached function does anything
the Serial Monitor also stops working
(it works if i remove TimerOne from my program)
and I have to push the program button on my Teensy 4.0 everytime I upload
(this also automatically works like u would expect when I remove TimerOne from my program)
sorta seems like the Teensy freezes up or something
anyway just looking for some insight or info that I may not be hip too
also i've tried a few different things, including IntervalTimer with similar results.
the only way i could get it to work was to scrap the Timer Routine and just run the function straight from loop()
but that is not ideal.
really want to get the Timer Routine working or any type of Interrupt Service Routine for that matter
thanks yall!
<#