參數(shù)資料
型號(hào): PIC16HV540-04/P
廠商: Microchip Technology
文件頁(yè)數(shù): 13/44頁(yè)
文件大?。?/td> 0K
描述: IC MCU OTP 512X12 18DIP
產(chǎn)品培訓(xùn)模塊: Asynchronous Stimulus
8-bit PIC® Microcontroller Portfolio
標(biāo)準(zhǔn)包裝: 25
系列: PIC® 16C
核心處理器: PIC
芯體尺寸: 8-位
速度: 4MHz
外圍設(shè)備: 欠壓檢測(cè)/復(fù)位,POR,WDT
輸入/輸出數(shù): 12
程序存儲(chǔ)器容量: 768B(512 x 12)
程序存儲(chǔ)器類(lèi)型: OTP
RAM 容量: 25 x 8
電壓 - 電源 (Vcc/Vdd): 3.5 V ~ 15 V
振蕩器型: 外部
工作溫度: 0°C ~ 70°C
封裝/外殼: 18-DIP(0.300",7.62mm)
包裝: 管件
產(chǎn)品目錄頁(yè)面: 635 (CN2011-ZH PDF)
配用: AC164001-ND - MODULE SKT PROMATEII 18/28DIP
MCP2200
DS22228B-page 20
2011 Microchip Technology Inc.
2.3.1.19
ReadPinValue
Function:
int SimpleIOClass::ReadPinValue(unsigned int pin)
EXAMPLE 2-19:
2.3.1.20
ReadPort
Function:
bool SimpleIOClass::ReadPort(unsigned int *returnvalue)
EXAMPLE 2-20:
Summary:
Reads the specified pin.
Description:
Reads the specified pin and returns the value as the return value. If the pin has been configured as a
digital input, the return value will be either ‘0’ or ‘1’. If an error occurs, the function will return a value
of 0x8000.
Precondition:
Must be previously configured as an input via a ConfigureIO call.
VID and PID must be previously set via a call to InitMCP2200(VID, PID).
Parameters:
pin
- the pin number to set (0-7)
Returns:
This function returns the read value of the pin, or returns a value of 0x8000, if an error occurs.
Remarks:
None.
Summary:
Reads the GPIO port as digital input.
Description:
Reads the GPIO port and returns the value in returnvalue. This provides a means to read all pins
simultaneously, instead of one-by-one.
Precondition:
Must be previously configured as an input via a ConfigureIO call.
VID and PID must be previously set via a call to InitMCP2200(VID, PID).
Parameters:
pin - the pin number to set (0-7)
returnvalue - the value read on the pin (‘0’ or ‘1’)
Returns:
This function returns True if the transmission is successful and returns False if the transmission fails.
Remarks:
Pins configured for output return the current state of the port. Pins configured as input read as zero.
unsigned int rv;
if (SimpleIOClass::ReadPinValue(0) != 0x8000)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
unsigned int rv;
if (SimpleIOClass::ReadGPIOPort (0, &rv))
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
相關(guān)PDF資料
PDF描述
PIC16C54C-04/P IC MCU OTP 512X12 18DIP
22-02-3093 CONN FFC/FPC VERTICAL 9POS .100
PIC16C620A-04/P IC MCU OTP 512X14 COMP 18DIP
PIC16F722-I/SP IC PIC MCU FLASH 2KX14 28-DIP
PIC16F684-I/P IC PIC MCU FLASH 2KX14 14DIP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16HV540-20/P 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 20MHz PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小: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
PIC16HV540-20/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 20MHz SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小: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
PIC16HV540-20/SS 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 20MHz SSOP20 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小: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
PIC16HV540-20I/P 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 20MHz IndTemp PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小: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
PIC16HV540-20I/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O 20MHz IndTemp SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時(shí)鐘頻率:50 MHz 程序存儲(chǔ)器大小: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