Hi,
I have just made the switch from an Arduino Uno to a Teensy 4.1. However, I am finding it hard to get resources for the Teensy 4.1 like:
1. How many hardware timers are on the i.MX RT1062 chip (the 328p had Timer0, Timer1 and Timer2).
2. Which of these timers are used for the default functions of elapsedMillis/millis/elapsedMicros
3. Tutorial on how to setup/configure and use the GPT, PIT, TMR, ENC
4. How many GPTs, PITs, TMRs and ENCs can I setup in a project
5. The relationship between GPT, PIT, TMR, ENC and the hardware timers such as Timer0/1/2
I have read through the PJRC tutorials and whatever I could on here but some direction to good resources, tutorials or anyone willing to help would really be helpful. I am currently using Teensyduino but upgrading to Visual Micro soon.
I just finished making a table that balances a metal ball at the center using 2 rc servo motors. In that I hard coded the PWM generation of both servo control signals using Timer0 as well as the 4-wire touch screen position sensing code without using the Servo Library or the 4-wire touchscreen library.
I would like to be able to setup and use the hardware timers and GPT, PIT, TMR and ENC timers for PWM/Input Capture/Timer Compare Interrupts etc without depending on libraries for the same for good flexibility for my projects.
I have two projects that I wish to make using the 4.1. One being a Motion controller that syncs a slave Servo motor to a master encoder using a pulse train and another project which detects missing labels on a continuous web of labels using a label sensor with reference to an encoder that picks up the web speed and the required time that the sensor should be on/off in normal circumstances. I'll post on the Projects area later for these if I run into any issues but at the moment I need help getting to using the 4.1 well
Thanks for reading and I hope to be able to enjoy coding and using the 4.1 as much as I enjoy using the 328p
I have just made the switch from an Arduino Uno to a Teensy 4.1. However, I am finding it hard to get resources for the Teensy 4.1 like:
1. How many hardware timers are on the i.MX RT1062 chip (the 328p had Timer0, Timer1 and Timer2).
2. Which of these timers are used for the default functions of elapsedMillis/millis/elapsedMicros
3. Tutorial on how to setup/configure and use the GPT, PIT, TMR, ENC
4. How many GPTs, PITs, TMRs and ENCs can I setup in a project
5. The relationship between GPT, PIT, TMR, ENC and the hardware timers such as Timer0/1/2
I have read through the PJRC tutorials and whatever I could on here but some direction to good resources, tutorials or anyone willing to help would really be helpful. I am currently using Teensyduino but upgrading to Visual Micro soon.
I just finished making a table that balances a metal ball at the center using 2 rc servo motors. In that I hard coded the PWM generation of both servo control signals using Timer0 as well as the 4-wire touch screen position sensing code without using the Servo Library or the 4-wire touchscreen library.
I would like to be able to setup and use the hardware timers and GPT, PIT, TMR and ENC timers for PWM/Input Capture/Timer Compare Interrupts etc without depending on libraries for the same for good flexibility for my projects.
I have two projects that I wish to make using the 4.1. One being a Motion controller that syncs a slave Servo motor to a master encoder using a pulse train and another project which detects missing labels on a continuous web of labels using a label sensor with reference to an encoder that picks up the web speed and the required time that the sensor should be on/off in normal circumstances. I'll post on the Projects area later for these if I run into any issues but at the moment I need help getting to using the 4.1 well
Thanks for reading and I hope to be able to enjoy coding and using the 4.1 as much as I enjoy using the 328p