參數(shù)資料
型號(hào): PIC12F1840T-I/SN
廠商: Microchip Technology
文件頁數(shù): 15/122頁
文件大?。?/td> 0K
描述: MCU 7KB FLASH 256B RAM XLP 8SOIC
標(biāo)準(zhǔn)包裝: 3,300
系列: PIC® XLP™ 12F
核心處理器: PIC
芯體尺寸: 8-位
速度: 32MHz
連通性: I²C,LIN,SPI,UART/USART
外圍設(shè)備: 欠壓檢測/復(fù)位,POR,PWM,WDT
輸入/輸出數(shù): 5
程序存儲(chǔ)器容量: 7KB(4K x 14)
程序存儲(chǔ)器類型: 閃存
EEPROM 大?。?/td> 256 x 8
RAM 容量: 256 x 8
電壓 - 電源 (Vcc/Vdd): 2.3 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 4x10b
振蕩器型: 內(nèi)部
工作溫度: -40°C ~ 85°C
封裝/外殼: 8-SOIC(0.154",3.90mm 寬)
包裝: 帶卷 (TR)
2011 Microchip Technology Inc.
Preliminary
DS41441B-page 111
PIC12(L)F1840
12.0
I/O PORTS
In general, when a peripheral is enabled, that pin may
not be used as a general purpose I/O pin.
The port has three registers for its operation. These
registers are:
TRISA register (data direction register)
PORTA register (reads the levels on the pins of
the device)
LATA register (output latch)
PORTA has the following additional registers. They
are:
ANSELA (analog select)
WPUA (weak pull-up)
The Data Latch (LATA register) is useful for
read-modify-write operations on the value that the I/O
pins are driving.
A write operation to the LATA register has the same
affect as a write to the corresponding PORTA register.
A read of the LATA register reads of the values held in
the I/O PORT latches, while a read of the PORTA
register reads the actual I/O pin value.
The port has analog functions and has an ANSELA.
register which can disable the digital input and save
power. A simplified model of a generic I/O port, without
the interfaces to other peripherals, is shown in
FIGURE 12-1:
GENERIC I/O PORT
OPERATION
12.1
Alternate Pin Function
The Alternate Pin Function Control (APFCON) register
is used to steer specific peripheral input and output
functions between different pins. The APFCON register
is shown in Register 12-1. For this device family, the
following functions can be moved between different
pins.
RX/DT
TX/CK
SDO
SS (Slave Select)
T1G
P1B
CCP1/P1A
These bits have no effect on the values of any TRIS
register. PORT and TRIS overrides will be routed to the
correct pin. The unselected pin will be unaffected.
Q
D
CK
Write LATA
Data Register
I/O pin
Read PORTA
Write PORTA
TRISA
Read LATA
Data Bus
To peripherals
ANSELA
VDD
VSS
相關(guān)PDF資料
PDF描述
PIC16LF1902T-I/SS MCU 3.5KB FLASH 128B RAM 28SSOP
PIC16LF720T-I/ML MCU PIC 3.5KB FLASH 20QFN
PIC16F720T-I/ML MCU PIC 2K FLASH 20-QFN
PIC16LF722AT-I/SS MCU 8BIT 2K FLASH XLP 28-SSOP
PIC16F722AT-I/SS MCU 8BIT 2K FLASH XLP 28-SSOP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12F505 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F505TE/MC 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F505TE/MG 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F505TE/MS 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F505TE/P 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8/14-Pin, 8-Bit Flash Microcontrollers