参数资料
型号: PIC12C672-10I
厂商: Microchip Technology Inc.
元件分类: 8位微控制器
英文描述: 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter
中文描述: 8引脚,8位CMOS微控制器与A / D转换器
文件页数: 44/44页
文件大小: 935K
代理商: PIC12C672-10I
Tips ‘n Tricks
=OMMP=jáêáé=qó=fK
apQMMQM_Jé~=R
TIP #4 Reading DIP Switches
The input of a timer
can be used to test
which switch(s) is
closed. The input of
Timer 1 is held high
with a pull-up
resistor.
Sequentially, each
switch I/O is set to
input and Timer 1 is
checked for an
increment indicating
the switch is closed.
Each bit in the DP register represents its
corresponding switch position. By setting Timer 1
to FFFFh and enabling its interrupt, an increment
will cause a rollover and generate an interrupt.
This will simplify the software by eliminating the bit
test on the TMR1L register.
Sequentially set each GPIO to an input and test for
TMR1 increment (or 0 if standard I/O pin is used).
PIC12F6XX
GP0
GP1
GP2
GP3
GP5/T1CKI
10K
VDD
GP4
Data I/O
movlw
b'11111111'
movwf
TRISIO
movwf
DIP
movlw
b'00000111'
movwf
T1CON
movlw
b'11111110'
movwf
Mask
clrf
GPIO
LOOP
clrf
TMR1L
movf
Mask,W
movwf
TRISIO
btfsc
TMR1L,0
andwf
DIP,F
bsf
STATUS,C
rlf
Mask,F
btfsc
Mask,4
goto
Loop
retlw
0
相关PDF资料
PDF描述
PIC12CE67 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
PIC18F6680 64/68/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with ECAN Module
PIC16F505T 8/14-Pin, 8-Bit Flash Microcontrollers
PIC16F72 28-Pin, 8-Bit CMOS FLASH MCU with A/D Converter
PIC16F72T 28-Pin, 8-Bit CMOS FLASH MCU with A/D Converter
相关代理商/技术参数
参数描述
PIC12C672-10I/JM 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontroller with A/D Converter
PIC12C672-10I/JW 制造商:未知厂家 制造商全称:未知厂家 功能描述:MICROCONTROLLER|8-BIT|PIC CPU|CMOS|DIP|8PIN|CERAMIC
PIC12C672-10I/MF 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 6 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC12C672-10I/P 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 6 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC12C672-10I/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 12C672 DIP8