当前位置:网站首页>TC397 MCMCAN
TC397 MCMCAN
2022-04-22 10:27:00 【Delta-delta】
register
Base address
about MCMCAN modular , All registers are prefixed with CAN0_、CAN1_ or CAN2_, Specific product variants may have corresponding modules .
The register is divided into three different parts :
- General Configuration Registers
- User Interface Registers
- Registers within M_CAN


CAN Clock Control Register(CLC)
Clock control register CLC Allows the programmer to adjust the function and power consumption of the module according to the application requirements . The following description shows the clock control register function implemented in the standard interface of the module . When the module kernel is connected to CLC Clock control interface ,CLC Of the control module f(SYN) and f(ASYN) Module clock signal 、 Sleep mode and quick shutdown mode .

Module Control Register(MCR)
Module control register MCR Include OK MCMCAN Basic settings for module operation . If and only if... Is set during write access MCR.CCCE and MCR.CI when , Yes MCR Write access to the lowest byte of the register is valid . To turn the clock on or off , It must then be reset MCR.CCCE and MCR.CI Bit . Before this sequence happens , No write access to the corresponding node .
In order to be able to change the clock settings , The following programming sequence needs to be met :
uwTemp = CANn_MCR.U;
uwTemp |= (0xC0000000 | CLKSELx);
CANn_MCR.U = uwTemp;
uwTemp &= ~0xC0000000;
CANn_MCR.U = uwTemp;
// The clock settings for CAN nodes becomes active.
// To be able to start the RAM initialization, the following programming sequence need to be met:
CANn_MCR |= 0xC0000000;
// Wait until CANn_MCR.RBUSY is 0b
// Set CANn_MCR.RINIT to 0b
// Set CANn_MCR.RINIT to 1b
// Dummy read CANn_MCR
// Wait until CANn_MCR.RBUSY is 0b
// Set CANn_MCR.RINIT to 0b
CANn_MCR &= ~0xC0000000;
// RAM initialization is finished


CC Control Register i( CCCRi (i=0-3) )
CCCRi Register enable and disable CAN Bus participation and basic protocol functions . Due to the synchronization mechanism between clock domains , In the face of CCCRi Write after operation , The register should be read back , Until the setting value is written to the register . please remember , The register also includes bits affected by hardware .
stay MCR Enable... In register CAN After clock , The application must wait 10 The host core can only access a clock cycle .
LDMST or SWAPMSK.W The instruction can only be used for rwh Use when bit mask is enabled


版权声明
本文为[Delta-delta]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221017363635.html
边栏推荐
- Ctyunos scale deployment of China Telecom and jointly build Tianyi cloud digital base with openeuler
- Share some unknown and super easy-to-use API functions in sklearn module
- LLVM之父Chris Lattner:编译器的黄金时代
- 【sv】 assign force区别
- 天梯22模拟 L3-2 拼题A打卡奖励 (30 分)
- [FAQ] how do HMS core push services and local creation notification messages overlap each other?
- 「译文」给讨厌YAML的人的10个写YAML的建议
- [required for design!] Common color matching table for Web Design
- Mynodequery 1.0.2.2 is released, and the Ping node specifies IPv4 or IPv6, and the dashboard adds sorting
- MySQL进阶之数据的增删改查(DML)
猜你喜欢

Meituan side: have you used jstat, jmap, mat in the production time? Can you give me a practical example?

leetcode771. 宝石与石头

004-MYSQL的查询过程

Introduction and basic use of numpy Library

soatest初步认识

安全远程访问+安全文件传输+终端仿真+远程管理丨上海道宁联合VanDyke为IT行业人员带来可靠的、易于配置的软件

斜率优化DP

【uvm】 raise_ Statements that consume simulation time cannot be added before object

【sv】 assign force区别

QT record of some problems in signal slot connection
随机推荐
Laya Uncaught ReferenceError: spine is not defined
[required for design!] Common color matching table for Web Design
Cobbler cobbler cobbler
QByteArray的一些函数转换使用
How to implement acid at the bottom of MySQL?
Multi target tracking extended Kalman filter (EKF)
Mysql database common sense storage engine
SWOOLE高性能内存数据库的使用和配置教程
Formdate save data
Unity3D build时错误提示:Missing Project ID in Unity 解决方案
Several forms of PAAS hybrid cloud based on container
分享几个 Sklearn 模块中不为人知又超级好用的 API 函数
《MySQL 是怎样运行的:从根儿上理解 MySQL 》优质笔记
004-MYSQL的查询过程
Analysis and interpretation of the current situation and challenges faced by enterprise operation and maintenance in the digital era
(产品资源)明德扬AD8488模块高性能数字X射线FMC接口128模拟通道高速ADC芯片
Best practices for cost reduction and efficiency increase of public cloud
TC397 EVADC
API 网关的功能用途及实现方式
一个简单的PLC运动控制项目