Home www.visualprog.cz

 

My new OpenGl technology engine 3DOT  for your information

is

here

 

 

Microcontroler PIC18F2480 CAN bus project

 18.2.2006  start of date 

Email Kontakt .

Pro více informací je zde formulář

(c) 2006 Pavel Pindora 

Click on of the PayPal button to donate money to this Project

 

Hardware

Hardware for CAN bus

 

                       

PICOLLO Grande for prog.chip  http://www.asix.cz/a6piccolog.htm
PIC18F2480 http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName=en020612
82C250 CAN Transceiver 1Mb http://www.semiconductors.philips.com/acrobat_download/datasheets/PCA82C250_5.pdf

 

 

a small program , Interrupt from Timer0 

 CAN_CONF.inc
	__CONFIG _CONFIG1H, 0x05	; B7=IESO B6=FCMEN B3:0=FOSC3:0
	__CONFIG _CONFIG2L, 0xFF	; B4:3=BORV1:0 B2:1=BOREN1:0 B0=PWRTEN-L
	__CONFIG _CONFIG2H, 0xFF	; B4:1=WDTPS3:0 B0=WDTEN
	__CONFIG _CONFIG3H, 0x7F	; B7=MCLRE B2=LPT1OSC B1=PBADEN
	__CONFIG _CONFIG4L, 0xFF	; B7=DEBUG-L B6=XINST B5:4=BBSIZ1:2 B2=LVP B0=STVREN
	__CONFIG _CONFIG5L, 0xFF	; B3:0=CP3:0
	__CONFIG _CONFIG5H, 0xFF	; B7=CPD B6=CPB
	__CONFIG _CONFIG6L, 0xFF	; B3:0=WR3:0
	__CONFIG _CONFIG6H, 0xFF	; B7=WRTD B6=WRTB B5=WRTC
	__CONFIG _CONFIG7L, 0xFF	; B3:0=EBTR3:0
	__CONFIG _CONFIG7H, 0xFF	; B6=EBTRB

 

CAN bus and some description  (11.2.2006)

Délka vedení (Length of wire) Resistance Ohm / 1m Max. Baud rate
< 40m <70mO/m  1Mbits/sec
< 300m <60 mO/m  500kbits/sec
< 600m <40 mO/m 100kbits/sec
< 1000m <26 mO/m 50kbits/sec

 

¨