){CAN_tstCfgtstCfg ;tstCfg=CAN_CONFIG ;/* 禁用模块 */pstCan -> MCR|=CAN_MCR_MDIS_MASK ;/* 清除时钟源字段*/pstCan ->
2023-04-18 06:36
|= CAN_MCR_MDIS_MASK;/* MDIS=1: 在选择时钟之前禁用模块 */ CAN0->CTRL1 &= ~CAN_CTRL1_CLKSRC_MASK; /* CLKSRC=0
2023-04-28 08:19
编号0 级联01 SRES 1 零区 朋友 0 MDIS 0 有了这个,我能够看到 TAP 寄存器正在更新,我能够在 RAM 结果 FIFO 中看到 ADC 计数。 但我看不到时间戳得到更新。 在没有
2023-06-08 08:09
我有一块SPC560B。我需要制作一个BootLoader。我想这样做:JMP_ADDRESS是0x40000POWERON - >在闪存中以0x000000运行BootLoader .--->延迟3000ms - >如果ï¼updatecmd==false)-----> (*(AppFunctionType)(JMP_ADDRESS+8))(); // 跳 至 应用 和 应该 不 背部 这可以吗?为什么所有人都在RAM中开发BootLoader?无法在Flash中为SPC5XXX / MPC5XXXX运行BootLoader?以上来自于谷歌翻译以下为原文 I have a board of SPC560B. I need to make a BootLoader.I want to do that:the JMP_ADDRESS is 0x40000PowerON--> running BootLoader at 0x000000 in flash.--->delay 3000ms-->if (update cmd ==false)-----> (*(AppFunctionType)(JMP_ADDRESS+8))(); // jump to app and should not back Is that ok?Why do all people develop BootLoader in RAM for ?Can't BootLoader be run in Flash for SPC5XXX/MPC5XXXX?
2019-06-28 09:45
ADUC7026 Keil环境下,能不能用USB直接下载hex文件到开发板上,打开ARMWSD.EXE后为什么点击start程序就死了,没反应,无法下载!
2018-11-16 10:07
如何学习MPC5744P CAN总线?
2022-02-07 08:58
} / *启用设备。* / canp-> flexcan-> MCR.R& = ~CAN_MCR_MDIS; / * *每MB单独过滤,禁用帧自我接收, *禁用FIFO,启用
2018-11-22 10:36
我的KL25Z怎么进不了中断啊,中断也开了,中断函数也写了,就是进不去啊void Pit_init(void){SIM_SCGC6 |= SIM_SCGC6_PIT_MASK;/*PIT定时器系统时钟使能*/enable_irq(INT_PIT-16);/*定时器中断向量使能*/PIT_MCR=0X00;/*标准定时器时钟使能*/PIT_TCTRL1=0X00;/*定时器的级联位,使能位,中断位全部清除*/PIT_LDVAL1=48000;//定时器初始值,定时器采用倒计时方式,记到0是产生中断,这里计时PIT_LDVAL1/SYSCLOCK,这里相当于1msPIT_TCTRL1=PIT_TCTRL_TIE_MASK; //定时器中断使能位使能PIT_TFLG1=0X01; //中断标志位,标志超时并发送中断请求,向该位写1,即为清除该标志PIT_TCTRL1=PIT_TCTRL_TEN_MASK; //定时器使能位使能} void Pit1_isr(void){ //PIT_TCTRL1=PIT_TCTRL_TEN_SHIFT; // 关闭定时器 PIT_TFLG1=0X01;//清除标志位 RED_ON;//红灯亮 BLUE_ON; //蓝灯亮// PIT_TCTRL1=PIT_TCTRL_TEN_MASK; }在isr.h里也定义了#ifndef __ISR_H#define __ISR_H 1 extern void tpm0_isr(void);extern void tpm1_isr(void);extern void Pit1_isr(void); #undefVECTOR_033#define VECTOR_033 tpm0_isr #undefVECTOR_034#define VECTOR_034 tpm1_isr #undef VECTOR_038#define VECTOR_038 Pit1_isr #endif//__ISR_H不知道为什么就是不执行中断,求帮助
2015-01-06 16:10
FlexSPI复位方式不当会导致i.MXRT系列下OTFAD加密启动失败怎么解决?
2022-02-07 08:11
大家好, 我正在尝试让我的SPC560C05L3进入待机模式,但它无法正常工作。我也尝试过其他模式,让控制器进入每个RUN模式都没问题,但其他模式不起作用。 我用这段代码:ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE)| SPC5_ME_MCTL_KEY; ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE)| SPC5_ME_MCTL_KEY_INV; 如果(ME.GS.B.S_MTRANS){ Send_CAN_message(); } 但它不起作用。我也没有得到我的CAN消息,处理器只是继续运行其余的代码。我已经检查了我的唤醒,除了1之外所有唤醒都被禁用,并且那个没有激活的触发器并且根本没有触发。 我错过了让控制器进入待机模式的东西吗? 谢谢,米切尔 #spc560-mcu #standby以上来自于谷歌翻译以下为原文 Hi everybody, I'm trying to get my SPC560C05L3 into Standby mode, but it's not working. I also tried other modes, and getting the controller into every RUN mode is no problem, but the other modes just don't work. I use this bit of code: ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE) | SPC5_ME_MCTL_KEY; ME.MCTL.R = SPC5_ME_MCTL_MODE(STANDBY_MODE) | SPC5_ME_MCTL_KEY_INV; if(ME.GS.B.S_MTRANS){ Send_CAN_message(); } but it's not working. I also don't get my CAN message and the processor just continues running the rest of the code. I already checked my wake-ups, and all wake-ups are disabled except 1, and that one doesn't have an active trigger and isn't triggered at all. Am I missing something to get the controller into standby mode? Thanks, Mitchel #spc560-mcu #standby
2019-03-11 08:40