參數(shù)資料
型號(hào): PIC16HV540T-04/SS
廠商: Microchip Technology
文件頁(yè)數(shù): 14/44頁(yè)
文件大小: 0K
描述: IC MCU OTP 512X12 20SSOP
標(biāo)準(zhǔn)包裝: 1,600
系列: 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
封裝/外殼: 20-SSOP(0.209",5.30mm 寬)
包裝: 帶卷 (TR)
2011 Microchip Technology Inc.
DS22228B-page 21
MCP2200
2.3.1.21
ReadPortValue
Function:
int SimpleIOClass::ReadPortValue()
EXAMPLE 2-21:
2.3.1.22
SelectDevice
Function:
int SimpleIOClass::SelectDevice(unsigned int uiDeviceNo)
EXAMPLE 2-22:
Summary:
Reads the GPIO port as digital input.
Description:
Reads the GPIO port and returns the value of the port. This provides a method to read all pins
simultaneously, instead of one-by-one. In case of an error, the returned value will be 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:
None.
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.
Summary:
Selects one of the active devices in the system.
Description:
The function is used to select one of the detected devices in the system as the “active device”.
Precondition:
At least one call to the InitMCP2200() is required in order to initiate a DLL search for the compatible
devices. Also, in order to know the actual number of devices in the system, call the
SimpleIOClass::IsConnected()
function. VID and PID must be previously set via a call to
InitMCP2200(VID, PID)
.
Parameters:
uiDeviceNo
- the ID of the device to be selected (can have a value between 0 and the number of
devices minus 1).
Returns:
This function returns ‘0’ in case of selection success, otherwise it will return:
E_WRONG_DEVICE_ID (-1) for a device ID that is out of range
E_INACTIVE_DEVICE (-2) for an inactive device.
Remarks:
Call the SimpleIOClass::IsConnected() prior to the call of this function in order to have the most
recent number of devices that are present in the system.
int rv;
rv = SimpleIOClass::ReadPortValue()
if (rv != 0x8000)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Invalid command ” +
SimpleIOClass::LastError;
int iResult;
iResult = SimpleIOClass::SelectDevice(1)
if (iResult == 0)
{
lblStatusBar->Text = “Success”;
}
else
lblStatusBar->Text = “Error selecting device”;
相關(guān)PDF資料
PDF描述
VI-BNB-IY-S CONVERTER MOD DC/DC 95V 50W
PIC16CE624T-20E/SS IC MCU OTP 1KX14 EE COMP 20SSOP
VI-26J-IY-S CONVERTER MOD DC/DC 36V 50W
VI-263-IY-S CONVERTER MOD DC/DC 24V 50W
PIC16CE624T-20E/SO IC MCU OTP 1KX14 EE COMP 18SOIC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16HV540T-20/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線(xiàn)寬度: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
PIC16HV540T-20/SS 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線(xiàn)寬度: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
PIC16HV540T-20I/SO 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線(xiàn)寬度: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
PIC16HV540T-20I/SS 功能描述:8位微控制器 -MCU .75KB 25 RAM 12 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線(xiàn)寬度: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
PIC16HV610-E/ML 功能描述:8位微控制器 -MCU 1.75KB Flash 72B RAM RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線(xiàn)寬度: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