Rev. 1.00 4 2013-03-19 Rev. 1.00 5 2013-03-19
BS84B08A-3/BS84C12A-3
A/D 型触控按键单片机
A/D 转换器.....................................................................................................................61
A/D 简介 ...............................................................................................................................61
A/D 转换寄存器介绍 ...........................................................................................................61
A/D 转换器数据寄存器 – ADRL,ADRH .........................................................................62
A/D 转换控制寄存器 – ADCR0,ADCR1,ACERL ........................................................ 62
A/D 操作 ...............................................................................................................................65
A/D 输入引脚 .......................................................................................................................66
A/D 转换步骤 .......................................................................................................................67
编程注意事项 .......................................................................................................................68
A/D 转换功能 .......................................................................................................................68
A/D 转换应用范例 ...............................................................................................................69
触控按键功能 ................................................................................................................71
触控按键结构 .......................................................................................................................71
触控按键寄存器描述 ...........................................................................................................71
触控按键操作 .......................................................................................................................76
触控按键中断 .......................................................................................................................78
编程注意事项 .......................................................................................................................79
串行接口模块 – SIM .....................................................................................................79
SPI 接口 ................................................................................................................................79
SPI 接口操作 ........................................................................................................................79
SPI 寄存器 ............................................................................................................................80
SPI 通信 ................................................................................................................................83
I
2
C 接口 .................................................................................................................................85
I
2
C 接口操作 .........................................................................................................................85
I
2
C 寄存器 .............................................................................................................................86
I
2
C 总线通信 .........................................................................................................................89
I
2
C 总线起始信号 .................................................................................................................90
从机地址 ...............................................................................................................................91
I
2
C 总线读 / 写信号 ..............................................................................................................91
I
2
C 总线从机地址确认信号 .................................................................................................91
I
2
C 总线数据和确认信号 .....................................................................................................91
I
2
C 超时控制 .........................................................................................................................92
中断 ................................................................................................................................93
中断寄存器 ...........................................................................................................................93
中断寄存器内容 ...................................................................................................................94
中断操作 ...............................................................................................................................95
外部中断 ...............................................................................................................................96
触控按键中断 .......................................................................................................................97
定时 / 计数器中断 ................................................................................................................ 97
SIM 中断 ............................................................................................................................... 97
时基中断 ...............................................................................................................................97
EEPROM 中断 ...................................................................................................................... 98
A/D 转换器中断 ...................................................................................................................98
中断唤醒功能 .......................................................................................................................98