数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STC12C5402 数据表(PDF) 59 Page - List of Unclassifed Manufacturers

部件名 STC12C5402
功能描述  STC12C5410AD
Download  149 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  ETC1 [List of Unclassifed Manufacturers]
网页  
标志 ETC1 - List of Unclassifed Manufacturers

STC12C5402 数据表(HTML) 59 Page - List of Unclassifed Manufacturers

Back Button STC12C5402 Datasheet HTML 55Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 56Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 57Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 58Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 59Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 60Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 61Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 62Page - List of Unclassifed Manufacturers STC12C5402 Datasheet HTML 63Page - List of Unclassifed Manufacturers Next Button
Zoom Inzoom in Zoom Outzoom out
 59 / 149 page
background image
宏晶科技:www.MCU-Memory.com   Mobile:13922805190(姚永平)   Tel:0755-82948409    Fax: 0755-82944243
宏晶科技:专业单片机 / 存储器供应商   www.MCU-Memory.com   STC12C5410AD 系列 1T 8051 单片机中文指南
59
Mnemonic
Add Name
 7
 6
 5
 4
 3
 2
 1
 0
Reset Value
ADC_CONTR C5h A/D 转换控制寄存器
 ADC_POWER  SPEED1 SPEED0
ADC_FLAG
ADC_START CHS2
CHS1 CHS0 0xx0,0000
ADC_DATA
C6h A/D 转换结果寄存器,高8位
 -
 -
 -
 -
 -
 -
 -
 -
xxxx,xxxx
ADC_LOW2
BEh A/D 转换结果寄存器,低2位  -
 -
 -
 -
 -
 -
 -
 -
xxxx,xxxx
A/D 转换控制寄存器
 ADC_POWER SPEED1
SPEED0
ADC_FLAG ADC_START CHS2 CHS1 CHS0 0xx0,0000
ADC_CONTR  特殊功能寄存器:  A/D 转换控制特殊功能寄存器
CHS2
CHS1
CHS0
Analog Input Channel Select
模拟输入通道选择
选择  
P 1 . 0  作为
A / D 输入来用
选择  
P 1 . 1  作为
A / D 输入来用
选择  
P 1 . 2  作为
A / D 输入来用
选择  
P 1 . 3  作为
A / D 输入来用
选择  
P 1 . 4  作为
A / D 输入来用
选择  
P 1 . 5  作为
A / D 输入来用
选择  
P 1 . 6  作为
A / D 输入来用
选择  
P 1 . 7  作为
A / D 输入来用
CHS2 / CHS1 / CHS0:模拟输入通道选择,CHS2 / CHS1 / CHS0
ADC_START:  模数转换器(ADC) 转换启动控制位,设置为“1”时,开始转换, 转换结束后为 0 。
ADC_FLAG:   模数转换器转换结束标志位,当 A/D 转换完成后,ADC_FLAG = 1,要由软件清 0。
ADC_DATA / ADC_LOW2  特殊功能寄存器:  A/D 转换结果特殊功能寄存器
模拟 / 数字转换结果计算公式如下:结果 ( ADC_DATA[7:0],ADC_LOW2[1:0] ) = 1024 x Vin / Vcc
Vi n 为模拟输入通道输入电压,V c c 为单片机实际工作电压,用单片机工作电压作为模拟参考电压。
   STC12C5410AD 系列带 A/D 转换的单片机在 P1 口,有 8 路 10 位高速 A/D 转换器,  速度可达 100KHz。
P1.7 - P1.0 共 8 路电压输入型 A/D,可做温度检测、电池电压检测、按键扫描、频谱检测等。上电复位
后 P1 口为弱上拉型 I/O 口,用户可以通过软件设置将 8 路中的任何一路设置为 A/D 转换,不需作为 A/D 使
用的口可继续作为 I/O 口使用。需作为 A/D 使用的口需先将其设置为高阻输入或开漏模式。在 P1M0、P1M1
中对相应的位进行设置。
          A/D 转换 及 A/D 转换测试程序
P1M0【 7: 0】
地址 : 91h
P1M1【 7: 0】
地址 : 92h
I/O 口模式 ( P1.x
如做 A/D使用 , 需先将其设置成开漏或高阻输入 )
准双向口 ( 传统 8051
I/O
口模式 ) ,
灌电流可达 20mA , 拉电流为 230µA
推挽输出 ( 强上拉输出 , 可达 20mA, 尽量少用 )
仅为输入 ( 高阻 ), 如果该 I/O口需作为 A/D使用 , 可选此模式
开漏 (Open Drain) , 如果该 I/O口需作为 A/D 使用 , 可选此模式
SPEED1 ,SPEED0 :模数转换器转换速度控制位
SPEED1
SPEED0
A / D 转换所需时间
210 个时钟周期转换一次
CPU 工作频率
20 MHz 时
A / D 转换速度约
100 KHz
420 个时钟周期转换一次
630 个时钟周期转换一次
840 个时钟周期转换一次
ADC_POWER:   ADC 电源控制位。
    0 :关闭 ADC 电源;1 :打开 A/D 转换器电源
   启动 AD 转换前一定要确认 AD 电源已打开,AD 转换结束后关闭 AD 电源可降低功耗,也可不关闭。
   初次打开内部 A/D 转换模拟电源,需适当延时,等内部模拟电源稳定后,再启动 A/D 转换
   建议启动 A/D 转换后,在 A/D 转换结束之前,不改变任何 I/O 口的状态,有利于高精度 A/D 转换
ADC_DATA
C6h A/D 转换结果寄存器,全部8位有效,为10位A/D转换结果的高8位
 -  -  -  -  -  -  -  - xxxx,xxxx
ADC_LOW2
BEh A/D 转换结果寄存器,只有低2位有效,为10位A/D转换结果的低2位
 x  x  x  x  x
x  -  - xxxx,xxxx
取 ADC_DATA 的 8 位为 ADC 转换的高 8 位,取 ADC_LOW2 的低 2 位为 ADC 转换的低 2 位,则为 10 位精度。
如果舍弃 ADC_LOW2 的低 2 位,只用 ADC_DATA 寄存器的 8 位,则 A/D 转换结果为 8 位精度。
                              结果  ADC_DATA[7:0]  = 256 x Vin / Vcc
             不管是 A/D 转换完成后由该位申请产生中断,还是由软件查询该标志位 A/D 转换是否结束,
         当 A/D 转换完成后,ADC_FLAG = 1,一定要软件清 0。


类似零件编号 - STC12C5402

制造商部件名数据表功能描述
logo
STCmicro Technology Co,...
STC12C5604 STC-STC12C5604 Datasheet
1Mb / 377P
   Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
2011-7-15
STC12C5604AD STC-STC12C5604AD Datasheet
1Mb / 377P
   Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
2011-7-15
STC12C5604AD-35C STC-STC12C5604AD-35C Datasheet
1Mb / 377P
   Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
2011-7-15
STC12C5604AD-35I STC-STC12C5604AD-35I Datasheet
1Mb / 377P
   Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
2011-7-15
STC12C5608 STC-STC12C5608 Datasheet
1Mb / 377P
   Enhanced 8051 Central Processing Unit ,1T per machine cycle, faster 8~12 times than the rate of a standard 8051.
2011-7-15
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址




隐私政策
ALLDATASHEETCN.COM
ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com