This document is intended to provide embedded engineers with a quick reference to getting the MSCAN12 module up and running for any HCS12 MCU. Basic knowledge of the functional descr iption and configuration options will give the user a better under
第一章 端口整合模块 端口 A,B和K为通用I/O接口 端口 E 整合了IRQ,XIRQ中断输入 端口 T 整合了1个定时模块 端口 S 整合了2个SCI模块和1个SPI模块 端口 M 整合了1个MSCAN 端口 P 整合了 PWM 模块,同时可用作外部中断源输入 端口 H 和 J 为通用I/O接口,同时可用作外部中断源输入 端口 AD 整合了1个16位通道ATD模块
相当详细讲解和分析,模块也相当稳定。void MSCANInit(void) { char sj,p; char t_seg1, t_seg2; if (!CANCTL0&0x01) // Active MSCAN initialization mode CANCTL0 =0x01; // Wait until the MSCAN is in initialization mode while (!CANCTL1&0x01) ; sj = (SJW-1)<<6; p = (BRP-