项................................................................................................................................................134 A/D 转
换功能.................................................................................................................................................135
A/D 转换应用范
例.........................................................................................................................................135 比较
器................................................................................................................................................................13
7 比较器操
作....................................................................................................................................................137 比较
器寄存器................................................................................................................................................137
比较器中
断....................................................................................................................................................139 编程
注意事项................................................................................................................................................139
串行接口模块 --
SIM.......................................................................................................................................139SPI 接
口..........................................................................................................................................................139
SPI 接口操
作..................................................................................................................................................139 SPI 寄
存器......................................................................................................................................................140
SPI 通
信..........................................................................................................................................................142
I2C 接
口..........................................................................................................................................................144
I2C 接口操
作..................................................................................................................................................144 I2C 寄
存器......................................................................................................................................................145
I2C 总线通
信..................................................................................................................................................148 I2C 总
线起始信号..........................................................................................................................................148 从
机地
址........................................................................................................................................................149 I2C
总线读/写信号.........................................................................................................................................149
I2C 总线从机地址确认信
号..........................................................................................................................149 I2C 总线数据和确认
信号..............................................................................................................................150 外围时钟输
出....................................................................................................................................................151 外围
时钟操作................................................................................................................................................151
中
断....................................................................................................................................................................
152 中断寄存
器....................................................................................................................................................152 中断
操作........................................................................................................................................................161
外部中
断........................................................................................................................................................164 比
较器中
断....................................................................................................................................................165 多功
能中断....................................................................................................................................................165