Microchip Technology DM164130-3 User Manual

Page of 10
28-Pin LIN Demo Board Overview
©
 2009 Microchip Technology Inc.
 
DSxxxxx-page 5
1.4
28-PIN LIN DEMO BOARD OVERVIEW
The 28-Pin LIN Demo Board is populated with a PIC16F886 MCU (U1), a MCP2021 
LIN Transceiver with Voltage Regulator (U2), four LEDs (DS1-DS4), Two push buttons 
(SW1 and SW2), 32 KHz crystal (X2) and potentiometer (RP1). The board layout is 
shown in Figure 1-1. The demo board has several test points to access the I/O pins of 
the MCU and a generous prototyping area. The MCU can be programmed with the 
PICkit™ 2 Microcontroller Programmer from header P1.
FIGURE 1-1:
28-PIN LIN DEMO BOARD
1.5
RUNNING THE DEFAULT DEMONSTRATION
The assembled 28-Pin LIN Demo Board comes preprogrammed with a demonstration 
program. To use this program, power the demo board (9.0-18.0 V
DC
) using a LIN 
Network Analyzer and/or a bench power supply connected to header P3 or P4. To use 
the PICkit™ 2 Microcontroller Programmer, connect it to a PC USB port using the USB 
cable. The demo board will blink the LEDs in the Reset pattern. The Reset pattern 
consists of three different LED blink patterns. First, the LEDs will “ping pong” (LED1, 2, 
3 and 4, then LED 4, 3, 2 and 1). Second, the LEDs will blink on and off in unison. Third, 
the LEDs will perform the ADC display where values 0x0A, 0x0D and 0x0C display in 
sequence followed by the Most Significant 4 bits of the ADC result measuring channel 
1, which is the on-board potentiometer. After this sequence, the EAUSART is initialized 
for LIN communcation. 
Sending an ID of 0x2F will request a four-byte data response as follows:
Data byte 1 = ADC result
Push Button
 
Potentiometer
PICkit™ 2 or 3 
LEDs DS1-DS4
 RP1
Programming Header
SW1
Generous
LIN Analyzer 
Connectors
Aux Power
Connector
Crystal 
Mounting Pads
32 KHz Crystal
Prototyping
Area
Push Button 
SW2
GND
LIN
+9-18V