BF6916AXMCU规格书V1.4_20151108

合集下载

BF6912AX MCU规格书V1.1

BF6912AX MCU规格书V1.1
BYD Microelectronics Co., Ltd.
BF6912AXSPEC V1.1
BF6912AX
1、特性
● 工作电压:2.7~5.5V ● 工作温度:-40℃~+125℃ ● 储存温度:-50℃~+150℃ ● 32K FLASH
● 256(内部)+1024(外部)字节 SRAM
● 内置 RC 振荡电路(1MHZ) ● DW8051 内核,基于标准 8051 指令流水线结
W/R
0000_0000
(----_-aaa) W/R W/R W/R W/R W/R W/R W/R W/R W/R W/R (rrrr_rraa) (aaaa_aaar) W/R W/R ----_-aaa (----_---r)
0000_0111 0000_0000 0000_0000 0000_0000 0000_0000 0000_0000 0000_0000 0000_0000 1111_1111 1111_1111 1111_1111 0000_0000 0000_0000 xxxx_xxxx
BF6912AX
5、 引脚描述
符号
管脚号 BF6912AS22 BF6912AS11 BF6912AS19 BF6912AS27
功能描述
未使用
PB3/SNS
1
-
1
1
通用 IO 口;
断开
电容触摸感应通道
PB2/SNS
2
-
2
2
通用 IO 口;
断开
电容触摸感应通道
PB1/SNS
3
-
3
3
通用 IO 口;
断开
2、概述
● 与电容按键输入口复用 ● IIC 硬件从机通信模式,支持标准模式 100K 或

an6916s参数资料

an6916s参数资料

Input Voltage VI (mV) Output Voltage VO (V)
VOL–Ta
Transfer Characteristics (1)
Transfer Characteristics (2)
6 VCC=5V 5 Overdrive 4 3 2 80mV 1 5mV 0 0 –50 –100 0 1 2 3 4 5 6 20mV 50mV
Output Voltage VOL (V)
0.16
0.12
0.08
0.04
0 –60 –40 –20
0
20
40
60
80 100
Ambient Temperature Ta (˚C)
Time tPLH (µs)
Time tPLH (µs)
s Schematic Diagram (1/2)
No pin for AN6916 and AN6916S. 1 8 9
s Electrical Characteristics (VCC=5V, Ta=25˚C)
Parameter Input offset voltage Input offset current Input bias current Voltage gain Common-mode input voltage range Supply current Response time (1) Response time (2) Low level output voltage Output leakage current Symbol VI (offset) IIO IBias GV VCM ICC tPLH tPHL VOL IO (Leak) RL=∞ RL=5.1kΩ RL=5.1kΩ VREF= 0V, VI=1V, ISINK=70mA VREF=1V, VI= 0V, VO=5V RL=15kΩ 0 3.8 2 1 0.14 0.4 0.1 Condition min typ 1 1 50 200 VCC–1.5 5.3 max 5 50 200 Unit mV nA nA V/mV V mA µs µs V µA

PMC-651F馈线保护测控装置用户说明书_V5.2

PMC-651F馈线保护测控装置用户说明书_V5.2
本说明书版权属深圳市中电电力技术股份有限公司所有,未经书面许可,不得复制,传播或使用本文 件及其内容,违犯者将要对所造成的损失负责。深圳市中电电力技术股份有限公司保留所有版权。
我们已经检查了本手册关于描述硬件和软件保持一致的内容。由于不可能完全消除差错,所以我们不 能保证完全的一致。本手册中的数据将定期审核,并在新一版的文件中做必要的修改,欢迎提出修改建议。 以后版本中的变动不再另行通知。
3 功能说明...................................................................................................................................................................6 3.1 保护功能.......................................................................................................................................................7 3.1.1 辅助元件.......................................................................................................................................... 7 3.1.2 大电流闭锁保护............................................................................................................................ 10 3.1.3 相电流充电保护............................................................................................................................ 10 3.1.4 相电流加速保护............................................................................................................................ 11 3.1.5 开入加速相电流保护.................................................................................................................... 11 3.1.6 瞬时电流速断保护........................................................................................................................ 12 3.1.7 限时电流速断保护........................................................................................................................ 13 3.1.8 复压(方向)过流保护................................................................................................................ 14 3.1.9 过负荷保护.................................................................................................................................... 15 3.1.10 反时限过流保护.......................................................................................................................... 16 3.1.11 IN 充电保护................................................................................................................................. 17 3.1.12 IN 加速保护................................................................................................................................. 17 3.1.13 IN 过流保护................................................................................................................................. 18 3.1.14 IN 反时限过流保护..................................................................................................................... 19 3.1.15 I0 充电保护................................................................................................................................. 19 3.1.16 I0 加速保护................................................................................................................................. 20 3.1.17 I0 过流保护................................................................................................................................. 20 3.1.18 I0 反时限过流保护..................................................................................................................... 21 3.1.19 过电压保护.................................................................................................................................. 21 3.1.20 低电压保护.................................................................................................................................. 22 3.1.21 低压解列保护.............................................................................................................................. 23

BF6910(BF6911)ASXX规格书

BF6910(BF6911)ASXX规格书
8.1 上电、掉电复位 ...................................................................................................................................... 20 8.2 FLASH 编程复位 ....................................................................................................................................... 20 8.3 软件复位 .................................................................................................................................................. 21 8.4 看门狗定时器溢出复位 .......................................................................................................................... 21 8.5 PC 指针溢出复位 ..................................................................................................................................... 21
3.1 引脚图 ....................................................................................................................................................... 6 3.2 引脚描述 ................................................................................................................................................... 6

Altronic 691360-1 油液传感器适配器说明书

Altronic 691360-1 油液传感器适配器说明书

ALTRONIC 691360-1LUBRICATION SENSOR 11.0 OVERVIEW1.1 This manual provides installation instructions and operating information for the Altronic Lubrication Sensor Adapter , model 691360-1.It is recommended that the user read this manual in its entirety before commencing operations.It is not our intention to instruct others on how to design controlsystems, nor can we assume responsibility for their safe operation. This advice is intended to help the end user install the Altronic Lubrication Sensor Adapter in such a manner as to reduce the risk of accident to personnel or to equipment.Do NOT attempt to operate, maintain, or repair the monitoredequipment until the contents of this document have been read and are thoroughly understood.1.2 The Altronic Lubrication Sensor Adapters are to be used with standard lubrication flow switches. Each adapter can monitor two individualflow switches. Combined with standard flow switches the 691360-1 forms a lubrication flow-monitoring system that responds directly to the presence or absence of properly timed lubrication pulses. If the lubrication pulses are detected as occurring consistently within the selected time interval, then the output of the 691360-1 is held in a constant OPEN or OFF state. If the lubrication pulses are not detected as occurring consistently within the selected time interval, then the output of the 691360-1 goes to a constant CLOSED or ON to ground state until the lubrication pulses return. Additionally, by connecting the outputs of 691360-1 to an Altronic Annunciator, the appropriate action can be taken to protect the equipment from damage when a lubrication system failure occurs.1.3 The Lubrication Sensor Adapter is NOT a direct shutdown device. A safety shutdown system such as an Altronic annunciator or PLC should beused in addition to the flow sensors and adapter.ALTRONIC LUBRICATION SENSOR ADAPTER2.0 INSTALLATION2.1The Lubrication Sensor Adapter should be inspected immediately afterunpacking. Check for any damage that may have occurred during shipping. If there are any questions regarding the physical integrity of the product, contact the distributor or Altronic, Inc.2.2The Lubrication S ensor A dapter is designed to be installed on reciprocatingengines and compressors or other industrial equipment using auxiliary lubrication systems. The 691360-1is designed to be mounted inside the control panel or another suitable weatherproof enclosure. The device should be protected from rain and other moisture sources at all times. Operating ambient temperature is –40°F TO +185°F (–40°C TO +85°C). Do not expose the device to temperatures outside the indicated range.2.3The circuitry of the Lubrication Sensor Adapter is powered directly byeither 12 to 24 volts DC or from the shutdown lead (+100 to +400 volts) of an industrial, negative ground, CD ignition system. The switch inputs of the adapter are internally pulled up to 5 volts and external power sources should not be connected to them. No additional external power source should ever be connected to the 691360-1 input terminals. See figure 1 for wiring connections. Each of the 691360-1 switch inputs monitors the connected lubrication flow switch for its’ state changes (switch opening and closing to ground), since either a broken field wire (open) or a field wire shorted to ground prevents the changing signal from reaching the input, these wiring failures cause a fault to be sensed. This makes the single wire connection to the flow switch Failsafe even though the flow switch is connected as a switch to ground. The output switches connect directly to the discrete inputs of any Altronic Annunciator system and can be used as Class A or Class B inputs. The OPEN DRAIN transistor outputs of the adapter are rated 100volts and 0.25 amperes maximum, and are suitable for direct connection to most industrial PLC inputs. Each output switch is independently controlled according to the status of its input switch’s current behavior. The Reset input is an optional connection, which when grounded resets both of the outputs to the OFF condition and holds them in this state until it is opened. This optional feature can be used to reset the outputs when interfacing to complex control systems.2FORM LSA II 2-08INSTALLATION INSTRUCTIONS3.0 OPERATION3.1The Lubrication Sensor Adapter should be setup to monitor for a loss oflubrication pulses from the flow switch for a period of time greater than that which is the normally expected time between lubrication pulses. The maximum time between pulses is set by adjusting a rotary switch on the device for each individual channel. The trip time is adjustable in approximately 30 second increments from about30 seconds to 4.5 minutes. Each switch position (1 to 9) is actually equalto that position number times 32 seconds for the total trip delay time.For example, switch position 5 = 5 x 32 or 160 seconds (approximately 2.5 minutes). The trip time is quartz crystal controlled and does not vary with temperature, voltage or the age of this device. Always select a trip time which is at least 30 seconds longer than the actual maximum time between pulses to avoid false trips. During normal operation of the lubrication system the LED indicator flashes on each input pulse transition, this flashing LED can be used to measure the actual time between pulses and to confirm proper operation of the flow switches. The switch position 0 setting can be used to disable the specific channel for service of the lubrication system or testing.3ALTRONIC LUBRICATION SENSOR ADAPTER fIg. 1MOUNTINg DIMENSIONS4FORM LSA II 2-085INSTALLATION INSTRUCTIONSfIg. 2WIRINg DIAgRAM。

PMC-651F馈线保护测控装置使用说明书_V1.4

PMC-651F馈线保护测控装置使用说明书_V1.4

PMC-651F馈线保护测控装置操作使用说明书(V1.4版)深圳市中电电力技术有限公司2009年7月20日目录1装置简介 (1)1.1概述 (1)1.2产品特点 (1)1.3基本功能 (1)2技术指标 (2)2.1工作环境条件 (2)2.2额定参数 (2)2.3准确度 (2)2.4遥信分辨率 (3)2.5过载能力 (3)2.6继电器输出 (3)2.7开关量输入 (4)2.8电气绝缘性能 (4)2.9机械性能 (4)2.10电磁兼容性能 (4)3功能说明 (5)3.1保护功能 (5)3.1.1瞬时电流速断 (5)3.1.2复合电压元件 (5)3.1.3复压(方向)过流 (5)3.1.4复压保护 (5)3.1.5反时限过流 (6)3.1.6相电流加速 (6)3.1.7过负荷保护 (6)3.1.8零序过流 (6)3.1.9同期元件 (7)3.1.10手合检同期 (7)3.1.11遥合检同期 (7)3.1.12重合闸 (8)3.1.13低周减载 (8)3.1.14低周解列 (8)3.1.15低压解列 (9)3.1.16绝缘监视 (9)3.1.17TV断线 (9)3.1.18控制回路异常 (9)3.2开入量配置 (10)3.3测量功能 (10)3.3.1测量数据 (10)3.3.2保护数据 (10)3.3.3计量数据 (11)3.3.4遥信功能 (11)3.3.5AI/AO (11)3.4控制功能 (12)3.5通讯功能 (12)3.6记录功能 (12)3.6.1事件记录 (12)3.6.2故障录波记录 (13)3.7谐波分析功能 (14)4操作使用说明 (14)4.1按键操作 (14)4.2信号指示灯 (14)4.3装置上电 (14)4.4默认显示 (15)4.5事件报告显示 (15)4.6显示说明 (15)4.6.1数据查询 (16)4.6.2定值查询 (16)4.6.3定值管理 (16)4.6.4报告管理 (19)4.6.5谐波分析 (20)4.6.6装置维护 (21)4.6.7装置调试 (21)4.6.8定值清单 (21)5安装调试说明 (26)5.1安装 (26)5.1.1装置安装图 (26)5.1.2背板端子布置 (27)5.2通电试验 (30)5.3投运前调试 (30)5.4装置故障分析 (30)6接线原理图 (32)6.1装置接线原理图 (32)6.2操作回路原理图 (34)6.3同期功能接线示意图 (36)7售后服务承诺 (36)7.1装置升级 (36)7.2质保范围 (36)8附录1:手册变更信息 (37)1装置简介1.1概述PMC-651F是深圳市中电电力技术有限公司精心开发适用于66KV及以下电压等级馈入和馈出线路的保护测控装置。

LM3S6916 中文资料

LM3S6916 中文资料

LM3S6916 中文资料[详细参数]概述Luminary Micro公司Stellaris®所提供一系列的微控制器是首款基于ARM® CortexTM-M3的控制器,它们为对成本尤其敏感的嵌入式微控制器应用方案带来了高性能的32位运算能力。

这些具备领先技术的芯片使用户能够以传统的8位和16位器件的价位来享受32位的性能,而且所有型号都是以小占位面积的封装形式提供。

该Stellaris® 系列芯片能够提供高效的性能、广泛的集成功能以及按照要求定位的选择,适用于各种关注成本并明确要求具有的过程控制以及连接能力的应用方案。

该Stellaris® LM3S1000 系列使用更大的片上存储器、增强型电源管理和扩展I/O以及控制功能来扩展Stellaris®家族。

该Stellaris® LM3S2000 系列是针对控制器局域网(CAN)应用方案而设计的一组芯片,它在Stellaris系列芯片的基础上扩展了Bosch CAN网络技术——短距离工业网络里的黄金标准。

该Stellaris® LM3S2000 系列芯片还标志着先进的Cortex-M3内核和CAN能力的首次结合运用。

该Stellaris® LM3S6000 系列芯片结合了10/100以太网媒体访问控制(MAC)以及物理层(PHY),标志着ARM Cortex-M3 MCU 已经具备集成连接能力,还是唯一集成了10/100以太网MAC和PHY物理层的ARM架构MCU。

该Stellaris® LM3S8000 系列结合了 Bosch 控制器局域网技术和 10/100 以太网媒体访问控制(MAC)以及物理 (PHY) 层。

该LM3S6916 微控制器是针对工业应用方案而设计的,包括远程监控、电子贩售机、测试和测量设备、网络设备和交换机、工厂自动化、HVAC和建筑控制、游戏设备、运动控制、医疗器械、以及火警安防。

AXOS 产品说明书

AXOS 产品说明书

Haefely is a subsidiarya brand ofof Hubbell Incorporated.⏹ The sensitive touch screen guaranteesreduction of time and effort at a reason-able price⏹ Voltage and current monitoring of Surgeimpulses and EUT power provides valuable feedback to the test engineer⏹ Automatic generation of test report,including test parameters, test setup and test resultAPPLICATIONS⏹ Compliance and pre-compliance testing ofelectrical products⏹ CE marking⏹ Product development and debugging⏹ Compliance testing of telecom and wire-less devices ⏹ IEC 61000-4-9*⏹ IEC 61326⏹ ITU-T K.20⏹ ITU-T K.21⏹ ITU-T K.41⏹ ITU-T K.45 INDUSTRIES⏹ Industrial⏹ Residential⏹ Components⏹ Medical⏹ Renewable energy ⏹ Telecom*optional MSURGE-A requiredSummaryThe AXOS5 Surge Test System is a state of the art stand-alone Surge Combination Wave 1.2/50µs...8/20µs impulse generator. Created after the successful AXOS5 Compact Immunity Test System, the AXOS5 Surge Test System incorporates all the best features of our well-known and proven PSURGE-series with the addition of a new touch screen interface for superior functionality. It is both cost-effective and fully compliant with the IEC/EN 61000-4-5 standards. It also comes equipped with all the hardware needed for instant upgrades with optional key codes. These key codes can be entered with ease to expand the test capabilities of the AXOS5 Surge Test System, including EFT/Burst and AC/DC Dips Interrupts.Furthermore, it has a built-in 16A single phase coupling/decoupling network (CDN) which can betECHNICaL SPECIFICatIONS GENERAL DATAControl power85 V - 264 V50/60 Hz Dimensions(W x H x D)19“ / 4U(45 x 18 x 49 cm)User test storage unlimited Weight25 kgRemote interface Ethernet, RJ45USB for USB memorystickDisplay7“ / 800x480 / 24 bitwith touch-screen AUX. interface D-sub 37p for externalCDN, external trans-former etc.S e p t e m b e r 2012Headquarters China (Sales & Service Office) North American OfficeHaefely T est AG HAEFEL Y Representative OfficeHipotronics Inc.Birsstrasse 300 8-1-602, Fortune StreetHaefely EMC Division4052 Basel No.67, Chaoyang Road, Chaoyang District1650 Route 22Switzerland Beijing, China 100025 Brewster, NY 10509☎ + 41 61 373 41 11 ☎ +86 10 8578 8099 ☎ +1 845 279 3644 + 41 61 373 49 12+86 10 8578 9908 +1 845 279 2467******************** *****************.cn****************************。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

BYD Microelectronics Co., Ltd.BF6916AX SPEC V1.4目录目录 (1)1、特性 (3)2、电气特性 (1)2.1 AC特性 (1)2.2 DC特性 (1)2.3极限参数 (2)3、概述 (3)4、方框图 (3)5、引脚配置 (4)6、引脚描述 (5)7、SFR总表 (8)8、可位操作寄存器位描述 (12)9、标准功能 (13)9.1 CPU (13)9.2 RAM (13)9.3 Flash程序存储器 (14)9.4系统时钟和振荡器 (15)9.5 I/O端口 (16)9.6 定时器 (18)9.7 UART (25)9.8 中断 (29)10、增强功能 (35)10.1 EEPROM (35)10.2 PWM输出模块 (38)10.3 IIC通信 (40)10.4电容式按键(CTK)寄存器 (46)10.5ADC应用 (52)10.6LED功能模块 (53)10.7 复位 (58)10.8 WDT (60)10.9 工作模式 (62)10.10 低电压检测模块 (63)11、指令系统 (63)11.1、指令编码 (65)11.2、指令集 (65)13、应用电路(仅供参考) (72)14、封装信息 (73)I——SOP16-2R (73)II——SOP20-4R (74)III——SOP28-5R (75)IIV——SOP32 (76)免责声明 (77)BF6916AX 1、特性●工作电压:2.7~5.5V●工作温度:-40℃~+85℃●储存温度:-50℃~+125℃●32K FLASH●支持2K EEPROM●256(内部)+768(外部)字节SRAM●内置两路RC振荡电路(1MHz与32KHz)●支持外部32768Hz晶振输入●8051内核,基于标准8051指令流水线结构的8位单片机●工作频率:24M,一个指令周期包括四个系统时钟周期●最大封装支持27个电容按键输入,所有按键输入口可以复用为IO●最大封装支持29个双向输入/输出口,其中COM口I/O支持80mA灌电流。

●两路可单独配置的16位PWM,支持两组IO映射●4个16位定时器,具有溢出中断,其中定时器0/1使用系统时钟分频,定时器2时钟使用系统时钟分频和内部RC时钟(32kHz)时钟,定时器3使用内部32KRC或外部晶振时钟●3个外部中断,外部中断0和1有低电平、高电平、上升沿、下降沿四种中断方式可选外部中断2仅支持上升沿、下降沿中断方式,外部中断0、1支持两组IO映射●低电压检测中断,下降沿3.8V产生中断●支持空闲模式,唤醒时间18ms~2.3s ●睡眠模式可通过外部中断0/1/2、TIMER3中断以及IIC从机中断唤醒●最大封装支持5路8位AD检测(SOP32),与电容按键输入口复用●IIC硬件从机通信模式,可支持标准模式100K或快速模式400K●2路8051标准UART通信●支持硬件14*7LED矩阵扫描●两级中断优先级可选●中断源——电容按键中断(ADC检测中断)——外部中断0,1,2——Timer0,Timer1,Timer2,Timer3——IIC从机通信中断——UART中断——LED中断、LVDT中断——看门狗(WDT)中断●支持掉电复位,掉电电压2.4V/3V可选●看门狗定时器,使用内部32KHz时钟。

●各按键的灵敏度可独立控制,配置灵活●内置RF加强模块●封装型号:SOP16/SOP20/SOP28/SOP32BYD Microelectronics Co., Ltd.BF6916AX SPEC V1.42、电气特性2.1 AC特性2.2 DC特性2.3极限参数3、概述BF6916AX是基于27个电容检测通道的芯片,它可以用来检测近距离感应或者触摸。

其内置MCU,可灵活配置;通过配置可实现按键、滚轮、滑条等多种应用。

27个按键都能独立的运行,并且每个按键都能通过对相应的特殊功能寄存器写命令来调节灵敏度。

BF6916AX通过IIC和UART与主机进行通信。

BF6916AX包含一个主频为24MHz的单片机内核和一些其他外围设备。

4、方框图5、引脚配置6、引脚描述注:“*”表示工作时必须使用的管脚,“-”表示工作时未使用的管脚7、SFR总表注:W/R可写可读;R只读;’a’该位可写可读;’r’该位可读;’-‘该位无定义; ’x’该位不定态。

8、可位操作寄存器位描述注:未使用的SFR位禁止读/写。

9、标准功能9.1 CPUBF6916AX采用8051核作为MCU核,8051采用4时钟指令周期,相比于标准8051的12时钟指令周期,具有更快的运行速度,同时它完全兼容标准8051指令。

9.2 RAM根据数据的取值方式,可将RAM分为三个模块:●data区:共有256字节,地址为00H~FFH,其中包括工作寄存器组、位寻址区、缓冲以及SFR,其中缓冲区包含了堆栈区。

通过立即寻址方式来读取与写数据。

●idata区:共有128字节,地址为80H~FFH,该区域用户可以完全使用。

通过工作寄存器间接寻址方式来读取与写数据。

●xdata区:共有768字节,地址为0000H~02FFH,该区域用户可以完全使用。

通过数据指针或者工作寄存器寻址方式来读取与写数据。

在编写程序时注意预留堆栈空间,避免堆栈溢出导致程序跑飞。

在使用C语言编程时,堆栈首地址由程序自动分配,但是一定存放在data或者idata里。

Keil中可在STARTUP.A51中设置堆栈的首地址。

下表中列出了上表中,n取值0~7,i取值0~1。

9.3 Flash程序存储器Flash结构示意图:●Flash内存包括两个block:main_block和information_block;main_block大小为32k Bytes,information_block大小为512 Bytes;●通过专用烧录器能进行正常的读写操作,应用代码不可操作。

●支持main_block读保护和information_block写保护。

●烧录端口附8位CRC校验码。

●常温下数据保持年限为10年。

9.4系统时钟和振荡器9.4.1 特性⏹支持内部RC振荡器⏹内建1MHz RC振荡器⏹Timer3支持外部32768Hz晶振输入9.4.2 时钟定义时钟方框图1、内部时钟定义:OSCCLK:内置RC振荡器,频率为1MHz。

f OSC定义为OSCCLK的频率。

T OSC定义为OSCCLK的周期。

WDTCLK:内置32kHz时钟,该时钟作为看门狗时钟以及定时器3时钟。

f WDT定义为WDTCLK的频率。

t WDT定义为WDTCLK的周期。

SYSCLK:系统时钟24M,是OSCCLK经过锁相环倍频后的输出时钟。

这个时钟为CPU 指令周期的时钟。

F SYS定义为SYSCLK的频率。

T SYS定义为SYSCLK的周期。

2、外部输入时钟定义:XTALCLK:外部晶振输入时钟,频率为32768Hz。

f XTAL定义为XTALCLK的频率。

T XTAL 定义为XTALCLK的周期。

9.5 I/O端口可使用的GPIO口个数,与所选用的芯片型号和使用的触摸通道数有关。

GPIO端口的一些引脚和器件外设功能复用。

通常情况下,当使能外设时,该引脚不能作为通用IO引脚使用。

PORT有3个寄存器,其中X可以为A/B/C/D:TRISX 寄存器(方向寄存器):TRISX置1将对应的引脚配置为输入,清零将对应的引脚配置为输出DATAX 寄存器(数据寄存器):DATAX置1将对应的引脚配置输出高,清零将对应的引脚配置输出低SELX 寄存器(复用功能选择寄存器):SELX置1将对应的引脚配置为IO口,清零将对应的引脚配置为触摸通道将端口设置为GPIO时,需要对以上3组寄存器都进行相应的设置,使用PB口时,需要关闭LED_EN使能。

9.5.1 PA端口PA端口是5位宽的双向端口,PA3和PA4为漏极开路输出端口,使用时需外接上拉电阻。

PA的引脚复用情况:Bit7-5:保留SELA<0>为PA0的复用功能选择寄存器,SELA<0>=1,选择PA<0>作为IO口;SELA<0>=0,选择PA<0>作为电容触摸通道。

9.5.2 PB端口PB端口是8位有效的双向端口,每个端口都为推挽输出。

LED_EN为PB口大电流输入使能寄存器,为1则使能,LED扫描模式下最大可承受80mA大电流输入,为0则关闭使能。

9.5.3PC端口PC端口是8位有效的双向端口,每个端口都为推挽输出。

9.5.4PD端口PD端口是8位有效的双向端口,每个端口都为推挽输出。

9.6 定时器BF6916AX包含4个定时器(定时器0、定时器1、定时器2、定时器3)。

定时器0/1的时钟为系统时钟的分频时钟,定时器2使用系统时钟分频和内部32KHz RC时钟,定时器3使用内部32K RC时钟或者外部晶振时钟。

定时器最大可设置为16位计数器,分别通过两个字节配置:低字节(TL0、TL1、TL2)和高字节(TH0、TH1、TH2)。

通过设置IE寄存器中的ET0位使能定时器0中断,通过设置IE寄存器中的ET1位使能定时器1中断,通过设置IE寄存器中的ET2位使能定时器2中断。

定时器3与WDT中断复用。

●定时器0 –TL0和TH0●定时器1 –TL1和TH1●定时器2 –TL2和TH2●定时器3 –TIMER3_SET_L和TIMER3_SET_H9.6.1 定时器0/1通过设置IE寄存器中的ET0位使能定时器0中断,通过设置IE寄存器中的ET1位使能定时器1中断,通过TR0/1使能计数器工作,通过TF0/1判断是否定时器发生溢出中断。

Timer0/1由寄存器TMOD和TCON控制,四种运行模式如下:●13 位定时器/计数器(模式0)●16 位定时器/计数器(模式1)●自动重载初值的8位计数器(模式2)●两个8位定时器/计数器(模式3,只用于定时器/计数器0)在本系统中,默认的定时器时钟是clk/12,可选定时器时钟clk/4,对于可选的计数器外部时钟(C/T可选)输入端口t0/t1均接地,不使用。

通过CKCON(时钟控制寄存器)中的控制位(T0M/T1M)来设置计数器的时钟为clk/12还是clk/4。

Timer1可作为串口波特率生成器,详细波特率公式见串口说明。

模式0 :13位定时器/计数器在模式0中,定时器为13位的计数器,其0-4位为TL0,另外8位为TH0。

TCON 寄存器中的使能位(TR0)来控制定时器的开启和关闭。

C/T位用来选择定时器/计数器的时钟源。

当13位计数器计数累积到1FFFh(全1时),计数器清0(全0),并且TF0置位。

相关文档
最新文档