參數(shù)資料
型號: PIC18LF252-I/SP
廠商: Microchip Technology
文件頁數(shù): 64/134頁
文件大?。?/td> 0K
描述: IC MCU FLASH 16KX16 A/D 28DIP
產(chǎn)品培訓(xùn)模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標(biāo)準(zhǔn)包裝: 15
系列: PIC® 18F
核心處理器: PIC
芯體尺寸: 8-位
速度: 40MHz
連通性: I²C,SPI,UART/USART
外圍設(shè)備: 欠壓檢測/復(fù)位,LVD,POR,PWM,WDT
輸入/輸出數(shù): 23
程序存儲器容量: 32KB(16K x 16)
程序存儲器類型: 閃存
EEPROM 大?。?/td> 256 x 8
RAM 容量: 1.5K x 8
電壓 - 電源 (Vcc/Vdd): 2 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 5x10b
振蕩器型: 外部
工作溫度: -40°C ~ 85°C
封裝/外殼: 28-DIP(0.300",7.62mm)
包裝: 管件
1997 Microchip Technology Inc.
DS30444E - page 35
PIC16C9XX
5.3
PORTC and TRISC Register
PORTC is an 6-bit bi-directional port. Each pin is indi-
vidually congurable as an input or output through the
TRISC register. PORTC is multiplexed with several
peripheral functions (Table 5-5). PORTC pins have
Schmitt Trigger input buffers.
When enabling peripheral functions, care should be
taken in dening TRIS bits for each PORTC pin. Some
peripherals override the TRIS bit to make a pin an out-
put, while other peripherals override the TRIS bit to
make a pin an input. Since the TRIS bit override is in
effect while the peripheral is enabled, read-mod-
ify-write instructions (BSF, BCF, XORWF) with TRISC
as destination should be avoided. The user should refer
to the corresponding peripheral section for the correct
TRIS bit settings.
EXAMPLE 5-3:
INITIALIZING PORTC
BCF
STATUS,RP0 ; Select Bank0
BCF
STATUS,RP1
CLRF
PORTC
; Initialize PORTC
BSF
STATUS,RP0 ;
MOVLW
0xCF
; Value used to
; initialize data
; direction
MOVWF
TRISC
; Set RC<3:0> as inputs
; RC<5:4> as outputs
; RC<7:6> always read 0
FIGURE 5-5:
PORTC BLOCK DIAGRAM
(PERIPHERAL OUTPUT
OVERRIDE)
Data Latch
RBPU(2)
P
VDD
Q
D
CK
Q
D
CK
Q
D
EN
Data bus
WR Port
WR TRIS
RD TRIS
RD Port
weak
pull-up
RD Port
RB0/INT
I/O
pin(1)
TTL
Input
Buffer
Note 1: I/O pins have diode protection to VDD and VSS.
2: To enable weak pull-ups, set the appropriate TRIS bit(s)
and clear the RBPU bit (OPTION<7>).
Schmitt Trigger
Buffer
TRIS Latch
TABLE 5-5: PORTC FUNCTIONS
TABLE 5-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC
Name
Bit#
Buffer Type
Function
RC0/T1OSO/T1CKI
bit0
ST
Input/output port pin or Timer1 oscillator output or Timer1 clock input
RC1/T1OSI
bit1
ST
Input/output port pin or Timer1 oscillator input
RC2/CCP1
bit2
ST
Input/output port pin or Capture input/Compare output/PWM output
RC3/SCK/SCL
bit3
ST
Input/output port pin or the synchronous serial clock for both SPI and
I2C modes.
RC4/SDI/SDA
bit4
ST
Input/output port pin or the SPI Data In (SPI mode) or data I/O (I2C
mode).
RC5/SDO
bit5
ST
Input/output port pin or Synchronous Serial Port data out
Legend: ST = Schmitt Trigger input
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
Power-on
Reset
Value on all
other resets
07h
PORTC
RC5
RC4
RC3
RC2
RC1
RC0
--xx xxxx
--uu uuuu
87h
TRISC
PORTC Data Direction Control Register
--11 1111
Legend: x = unknown, u = unchanged, - = unimplemented, read as '0'. Shaded cells are not used by PORTC.
相關(guān)PDF資料
PDF描述
PIC18LF252-I/SO IC MCU FLASH 16KX16 A/D 28SOIC
PIC24HJ64GP510A-I/PF IC PIC MCU FLASH 64KB 100-TQFP
PIC24HJ64GP510-I/PF IC PIC MCU FLASH 64KB 100TQFP
DSPIC33FJ32GS610-I/PT IC MCU/DSP 32KB FLASH 100TQFP
PIC16LF876-04I/SP IC MCU FLASH 8KX14 EE A/D 28DIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC18LF252T-I/SO 功能描述:8位微控制器 -MCU 32KB 1536 RAM 23I/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 安裝風(fēng)格:SMD/SMT
PIC18LF252T-I/SOG 功能描述:8位微控制器 -MCU 32KB 1536 RAM 23I/O Lead Free Package 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 安裝風(fēng)格:SMD/SMT
PIC18LF2539-I/SO 功能描述:8位微控制器 -MCU 24KB 1408 RAM 21I/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 安裝風(fēng)格:SMD/SMT
PIC18LF2539-I/SP 功能描述:8位微控制器 -MCU 24KB 1408 RAM 21I/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 安裝風(fēng)格:SMD/SMT
PIC18LF2539T-I/SO 功能描述:8位微控制器 -MCU 24KB 1408 RAM 21I/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 安裝風(fēng)格:SMD/SMT