参数资料
型号: MCP215XDM
厂商: Microchip Technology
文件页数: 22/58页
文件大小: 0K
描述: BOARD DEMO FOR MCP215X
产品培训模块: PIC18 J Series MCU Overview
标准包装: 1
主要目的: 接口,IrDA
嵌入式: 是,MCU,8 位
已用 IC / 零件: MCP2150,MCP2155
主要属性: 带 PIC18F MCU 的 IrDA 控制器
次要属性: 设置为数据记录器,带 LCD,GUI,用于 EEPROM 的插口,可电池供电
已供物品: 板,电源
产品目录页面: 685 (CN2011-ZH PDF)
相关产品: MCP2155T-I/SO-ND - IC IRDA PROTOCOL CONTRLR 18-SOIC
MCP2150T-I/SO-ND - IC IRDA STD CONTROLLER 18SOIC
MCP2150T-I/SS-ND - IC IRDA STD CONTROLLER 20SSOP
MCP2155T-I/SS-ND - IC IRDA PROTOCOL CONTRLR 20-SSOP
MCP2155-I/SO-ND - IC IRDA PROTOCOL CTRLR 18SOIC
MCP2155-I/P-ND - IC IRDA PROTOCOL CTRLR 18DIP
MCP2155-I/SS-ND - IC IRDA PROTOCOL CTRLR 20SSOP
MCP2150-I/SS-ND - IC IRDA STD CONTROLLER 20SSOP
MCP2150-I/SO-ND - IC IRDA STD CONTROLLER 18SOIC
MCP2150-I/P-ND - IC IRDA STD CONTROLLER 18DIP
其它名称: MCP215XDMR
MCP215XDMR-ND
MCP215X Data Logger Demo Board User’s Guide
2.3.2.1
VENDING MACHINE PROGRAM DESCRIPTION
This demo emulates a vending machine by counting the number of each item (soda
and candy) dispensed.
Once the MCP215X Data Logger Demo Board has completed reset and the LCD
module indicates which switches to depress to select a program, depress switch S2 .
The LCD module will indicate that the vending machine program is selected.
The LCD module will then indicate the values of the soda and candy counters.
Depressing the S2 switch will increment the soda counter, while depressing the S3
switch will increment the candy counter. Once either switch is depressed, the LCD
module displays the new counter values. Each counter is an 8-bit value and can display
a value from 0 to 255 (decimal).
When the PIC16F877 receives a data byte, the value is checked to determine the
operation to perform. The vending machine program understands two commands:
1. Transmit the counter values.
2. Clear the counter values.
Table 2-3 shows the two commands that the vending machine program accepts. All
other data values that are received are ignored. Once the program has received the
“Transmit the current counter values” command, the PIC16F877 will transmit the data
on two lines, in the following easy-to-read format:
Soda = xxx
Candy = xxx
where xxx is the counter value
TABLE 2-3:
VENDING MACHINE COMMANDS
Command
Description
Transmit the current soda and candy counter values to the
Primary device
Clear the current soda and candy counters
Note:
All other received data values are ignored.
ASCII Code
5
6
Hex Code
0x35
0x36
The host UART interface is operating at 115,200 baud.
The transfer will not commence until the PIC16F877 has received a data byte from the
Primary device.
The PIC16F877 follows the flow control of the MCP2150 to ensure that data is not lost.
The MCP2150 handles all the IrCOMM protocol for the data packets that it receives
from the PIC16F877.
Once the command has been processed, the PIC16F877 waits for the next command
to be received.
The program flow for the vending machine demo is shown in Figure 2-6.
DS51516A-page 18
? 2004 Microchip Technology Inc.
相关PDF资料
PDF描述
MCP23X08EV BOARD EVALUATION FOR MCP23X08
MCP23X17EV BOARD EVAL FOR MCP23X17
MCP2515DM-PTPLS BOARD DAUGHTER PICTAIL MCP2515
MCP3905EV BOARD DEMO FOR MCP3905
MCP402XEV BOARD EVAL FOR MCP402X
相关代理商/技术参数
参数描述
MCP2200 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO
MCP2200_11 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO
MCP2200_13 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:USB 2.0 to UART Protocol Converter with GPIO
MCP-220-00001-01 制造商:Supermicro Computer Inc 功能描述:HOT-SWAPPABLE HARD DRIVE TRAY BLACK - Bulk
MCP-220-00001-03 制造商:SUPER MICRO COMPUTER, INC. 功能描述:HOT-SWAP 3.5" DRIVE TRAY, SILVER - Bulk