RT1060基础问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1060基础问题

1,636 Views
jwang2
Contributor I

大家好:

    初次使用RT1060,以前都是用的STM32,想快速入门RT1060。

    以下是些基础的问题,有些看了手册也不是很明白,希望能够得到回答

1.哪里可以下载到各个外设的库函数和例程?

2.脉冲输出可以输出有相位差的脉冲吗?如何精确控制脉冲输出的个数?1个TIM或者PWM,可以在2个不同的引脚,分时输出脉冲吗?

3.计数器支持脉冲+方向输入吗?1个TIM,可以在2个不同的引脚,1个对脉冲进行加计数,另1个对脉冲进行减计数吗?

4.计数器一共有多少个,可以有外部时钟的有多少个?

Labels (1)
0 Kudos
1 Reply

1,387 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi j wang,

     感谢你对NXP MIMXRT 芯片的关注与支持,下面由我为你提供技术解答。

  回答你的几个问题:

1.哪里可以下载到各个外设的库函数和例程?

答: 官方提供了完整的MIMXRT1060 SDK驱动以及例程,具体下载链接:

Welcome | MCUXpresso SDK Builder 

点击select development board,然后在board里面选择EVK-RT1060,点击右边的build,

pastedImage_2.png

然后下载代码。

下载之后,你可以在压缩包里面看到一个doc文件夹,里面有具体教你怎么使用官方的SDK代码。

2.脉冲输出可以输出有相位差的脉冲吗?如何精确控制脉冲输出的个数?1个TIM或者PWM,可以在2个不同的引脚,分时输出脉冲吗?

答:这个完全是可以实现的,可以通过代码去配置相应的模块,具体输出多少个数,也完全可以通过代码去实现。

3.计数器支持脉冲+方向输入吗?1个TIM,可以在2个不同的引脚,1个对脉冲进行加计数,另1个对脉冲进行减计数吗?

答: quad Timer的counter可以实现count up/down, 具体你可以查看我们RT芯片的参考手册。关键还是结合手册上面硬件配置。

4.计数器一共有多少个,可以有外部时钟的有多少个?

答: RT芯片有很多的定时器,所以计数器也有很多,就以quad timer模块为例,就有4个16位counter,从手册中可以大致看到下面定时器的一些特性:

50.1 Overview
The following timers are supported in this chip:
• General Purpose Timer (GPT): A 32-bit up-counter with 12-bit pre-scaler
• Periodic Interrupt Timer (PIT): A 32-bit counter timer that features programmable
count modulus, clock division features etc.
• Quad Timer (TMR): It provides four timer channels with variety of controls for
individual and multi-channel features
• Quadrature Encoder/Decoder (ENC): It provides interfacing capability to position/
speed sensors
• Enhanced FlexPWM: It contains PWM submodules each of which is set up to control
a single half bridge power stage
• Watchdog Timer (WDOG1,2): The WDOG1 and WDOG2 protect against system
failures by providing a method by which to escape from unexpected events or
programming errors
• Watchdog timer (RTWDOG/WDOG3): It is a high reliability independent timer that
is available for system use
• External Watchdog Monitor (EWM): It is designed to monitor external circuits, as
well as the MCU software flow

可以支持的外部时钟的模块也比较多,具体你需要多少呢?可以根据你的具体要求选择具体的模块,然后再看具体的模块是否支持外部时钟,一般都是支持的,具体请查看下我们的手册。

如果还有任何问题,欢迎继续交流。

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos