CAN/LIN/J2602 PICtail ? (Plus)
DAUGHTER BOARD USER ’S GUIDE
Chapter 3. CAN/LIN/J2602 PICtail (Plus) Daughter Board
Tutorial Program
This chapter provides a brief description of the code that can be used with the
CAN/LIN/J2602 PICtail (Plus) Daughter Board. When connected to the PIC18 Explorer
Board, the code included with the board can be used. When the daughter board is con-
nected to the Explorer 16 Board, some examples available on Microchip’s web site
(www.microchip.com) can be used. Topics covered include:
3.1
PIC18 TUTORIAL OVERVIEW
The PIC18 tutorial in this chapter demonstrates the CAN module features of the
PIC18FXXK80 family in mode 1. When either the PIC18F46K80 PIM or PIC18F66K80
PIM is connected to the PIC18 Explorer Board, and is interfaced with the
CAN/LIN/J2602 PICtail (Plus) Daughter Board, the tutorial demonstrates how to trans-
mit and receive with the CAN module.
The PIC18 tutorial project, ECAN_Daughterboard.mcp , is written in C for MPLAB
C18. Make sure that the correct PIC18FXXK80 device is chosen for the project. This
tutorial program transmits data over the CAN bus when the RB0 push button is
pressed, and has three filters with three buffers to receive data sent over the CAN bus.
The project contains three files, main.c , CAN.c , and CAN.h . The CAN.c and CAN.h
files contain the functions used for CAN communication. These files can be easily
ported to other projects if needed. The main.c file contains the code that handles the
CAN communication for this specific tutorial.
Specifically for this example, while running in mode 1, when a CAN message is
received that fits one of the three filters, 0x111, 0x444, and 0x0A0, the LEDs on PORTD
increment by one. When the push button on RB0 is pressed, a CAN message is trans-
mitted. To show that the device is working properly, the LED on RD7 is toggled contin-
uously at a constant rate.
To effectively demonstrate this tutorial, a device is needed to transmit and receive mes-
sages to and from the PIC18FXXK80. Any device capable of CAN communication can
be used, but a CAN bus analyzer is the simplest to use. Microchip has a CAN bus ana-
lyzer available for purchase on the web called the CAN bus Analyzer Tool
(APGDT002). This analyzer tool can query the CAN bus for all messages transmitted
and received. It can be connected to the DB9 connectors on the CAN/LIN/J2602 PICtail
(Plus) Daughter Board.
? 2011 Microchip Technology Inc.
DS70319B-page 21
相关PDF资料
AC164131 BOARD DAUGHTER USB PICTAIL PLUS
AC164132 BOARD DAUGHTER PICTAIL ETHERNET
AC164141 BOARD SMART CARD / SIM CARD
AC164142 BOARD DAUGHTER PWR LINE MODEM
AC164144 LLC PICTAIL PLUS DAUGHTR BRD
AC164145 BOARD DAUGHTER PWR LINE MODEM
AC243005-1 KIT MEMORY SERIAL SUPERFLASH 1
AC244002 PAK PERFORMANCE MPLAB REAL ICE
相关代理商/技术参数
AC164130-2 功能描述:子卡和OEM板 CAN/LIN PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164131 功能描述:子卡和OEM板 USB PICtail Plus Daughter Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
AC164132 功能描述:以太网开发工具 100Mbps Ethernet PICtail Plus DB RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
AC164133 功能描述:电源管理IC开发工具 dsPIC BuckBoost PICtail Daughtr Brd RoHS:否 制造商:Maxim Integrated 产品:Evaluation Kits 类型:Battery Management 工具用于评估:MAX17710GB 输入电压: 输出电压:1.8 V
AC164133 制造商:Microchip Technology Inc 功能描述:Buck/Boost Converter PICtail P
AC164133-DM300027 制造商:Microchip Technology Inc 功能描述:DIGITAL POWER WEB BUNDLE 制造商:Microchip Technology Inc 功能描述:DIGITAL PWR SUPPLY BUNDLE, DEV KIT 制造商:Microchip Technology Inc 功能描述:EVAL KIT, DIGITAL POWER SUPPLY BUNDLE; Silicon Manufacturer:Microchip; Silicon Core Number:dsPIC33FJ16GS; Kit Application Type:Power Management; Application Sub Type:Power Supply Controller ;RoHS Compliant: Yes
AC164134 功能描述:Zigbee/802.15.4开发工具 PICtail Plus RF Card RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:EM35x 频率:2.4 GHz 接口类型:USB 工作电源电压:
AC164134-1 功能描述:子卡和OEM板 PICTail Plus 2.4GHz RF Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit