參數(shù)資料
型號: PIC12F683-I/P
廠商: Microchip Technology
文件頁數(shù): 104/176頁
文件大?。?/td> 0K
描述: IC MCU FLASH 2KX14 8DIP
產品培訓模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
Digi-Key 應用說明: AN0005 PWM Example with Microchip's CCP Module
AN0005 Example Code
標準包裝: 60
系列: PIC® 12F
核心處理器: PIC
芯體尺寸: 8-位
速度: 20MHz
外圍設備: 欠壓檢測/復位,POR,PWM,WDT
輸入/輸出數(shù): 5
程序存儲器容量: 3.5KB(2K x 14)
程序存儲器類型: 閃存
EEPROM 大?。?/td> 256 x 8
RAM 容量: 128 x 8
電壓 - 電源 (Vcc/Vdd): 2 V ~ 5.5 V
數(shù)據(jù)轉換器: A/D 4x10b
振蕩器型: 內部
工作溫度: -40°C ~ 85°C
封裝/外殼: 8-DIP(0.300",7.62mm)
包裝: 管件
產品目錄頁面: 645 (CN2011-ZH PDF)
配用: DM163029-ND - BOARD PICDEM FOR MECHATRONICS
AC162058-ND - HEADER MPLAB ICD2 FOR PIC12F683
I3-DB12F683-ND - BOARD DAUGHTER ICEPIC3
ACICE0201-ND - MPLABICE 8P 300 MIL ADAPTER
AC124001-ND - MODULE SKT PROMATEII 8DIP/SOIC
2007 Microchip Technology Inc.
DS41211D-page 31
PIC12F683
4.0
GPIO PORT
There are as many as six general purpose I/O pins
available.
Depending
on
which
peripherals
are
enabled, some or all of the pins may not be available as
general purpose I/O. In general, when a peripheral is
enabled, the associated pin may not be used as a
general purpose I/O pin.
4.1
GPIO and the TRISIO Registers
GPIO
is
a
6-bit
wide,
bidirectional
port.
The
corresponding data direction register is TRISIO.
Setting a TRISIO bit (= 1) will make the corresponding
GPIO pin an input (i.e., put the corresponding output
driver in a High-Impedance mode). Clearing a TRISIO
bit (= 0) will make the corresponding GPIO pin an
output (i.e., put the contents of the output latch on the
selected pin). An exception is GP3, which is input only
and its TRISIO bit will always read as ‘1’. Example 4-1
shows how to initialize GPIO.
Reading the GPIO register reads the status of the pins,
whereas writing to it will write to the PORT latch. All
write operations are read-modify-write operations.
Therefore, a write to a port implies that the port pins are
read, this value is modified and then written to the
PORT data latch. GP3 reads ‘0’ when MCLRE = 1.
The TRISIO register controls the direction of the GPIO
pins, even when they are being used as analog inputs.
The user must ensure the bits in the TRISIO register
are maintained set when using them as analog inputs.
I/O pins configured as analog input always read ‘0’.
EXAMPLE 4-1:
INITIALIZING GPIO
Note:
The ANSEL and CMCON0 registers must
be initialized to configure an analog
channel as a digital input. Pins configured
as analog inputs will read ‘0’.
BANKSEL
GPIO
;
CLRF
GPIO
;Init GPIO
MOVLW
07h
;Set GP<2:0> to
MOVWF
CMCON0
;digital I/O
BANKSEL
ANSEL
;
CLRF
ANSEL
;digital I/O
MOVLW
0Ch
;Set GP<3:2> as inputs
MOVWF
TRISIO
;and set GP<5:4,1:0>
;as outputs
REGISTER 4-1:
GPIO: GENERAL PURPOSE I/O REGISTER
U-0
R/W-x
R/W-0
R-x
R/W-0
GP5
GP4
GP3
GP2
GP1
GP0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7-6
Unimplemented: Read as ‘0’
bit 5-0
GP<5:0>: GPIO I/O Pin bit
1
= Port pin is > VIH
0
= Port pin is < VIL
相關PDF資料
PDF描述
PIC16C774T-E/PQ IC MCU OTP 4KX14 A/D PWM 44-MQFP
PIC16F877T-04E/PQ IC MCU FLASH 8KX14 EE 44-MQFP
PIC16F684-I/SL IC PIC MCU FLASH 2KX14 14SOIC
PIC16F874T-04E/PQ IC MCU FLASH 4KX14 EE 44-MQFP
PIC16F874T-10E/PQ IC MCU FLASH 4KX14 EE 44-MQFP
相關代理商/技術參數(shù)
參數(shù)描述
PIC12F683T-E/MD 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC12F683T-E/MDQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC12F683T-E/MF 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 6 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC12F683T-E/MFQTP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC12F683T-E/P 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology