MCP215XDM Microchip Technology, MCP215XDM Datasheet - Page 22

BOARD DEMO FOR MCP215X

MCP215XDM

Manufacturer Part Number
MCP215XDM
Description
BOARD DEMO FOR MCP215X
Manufacturer
Microchip Technology
Datasheets

Specifications of MCP215XDM

Main Purpose
Interface, IrDA
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
MCP2150, MCP2155
Primary Attributes
IrDA Controller with PIC18F MCU
Secondary Attributes
Set up as a Data Logger with LCD, GUI, Socket for EEPROM, Battery Powerable
Processor To Be Evaluated
MCP2150
Silicon Manufacturer
Microchip
Silicon Core Number
MCP2150, MCP2155
Kit Application Type
Interface
Application Sub Type
Standard Protocol Stack Controller
Kit Contents
Board
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Other names
MCP215XDMR
MCP215XDMR

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP215XDM
Manufacturer:
MICROCHIP
Quantity:
12 000
MCP215X Data Logger Demo Board User’s Guide
DS51516A-page 18
2.3.2.1
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:
TABLE 2-3:
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.
Description
Transmit the current soda and candy counter values to the
Primary device
Clear the current soda and candy counters
Note:
Soda = xxx
Candy = xxx
where xxx is the counter value
VENDING MACHINE PROGRAM DESCRIPTION
All other received data values are ignored.
VENDING MACHINE COMMANDS
ASCII Code
 2004 Microchip Technology Inc.
5
6
Command
Hex Code
0x35
0x36

Related parts for MCP215XDM