Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 07:33:18 19:33


Login with username, password and session length


Pages: [1]
Print
Author Topic: CAN Module for dsPIC using PCWHD  (Read 2807 times)
0 Members and 1 Guest are viewing this topic.
djohn
Newbie
*
 Muted
Offline Offline

Posts: 28

Thank You
-Given: 8
-Receive: 19


« on: March 13, 2012, 11:03:41 11:03 »

Hi
I am trying to use CAN module for microchip dsPIC30F series (6011/6010/6014 etc.) but project wizard does not show any option for configuring CAN module like it does for UART, I2C, SPI etc.
Also no header file is shown in the list of header files to be selected.
Anything wrong or any workaround? or just force the include file and then call library functions? (not sure about library functions either)
I am using PCWHD 4.110

Thanks.
Logged
Magnox
V.I.P
Active Member
*****
Offline Offline

Posts: 208

Thank You
-Given: 775
-Receive: 238


Oink!


« Reply #1 on: March 13, 2012, 11:21:04 11:21 »

Version 4.128 is the same, no CAN configuration for dsPIC.

I would configure a project for another PIC, like 18F458, just to get the basic setup. A quick glance at the library files shows that the 18 and dsPIC CAN libraries at least have similar functions. You might get away with pasting the initialization code as-is into a dsPIC project with the include files changes accordingly (can-dspic30.h and .c).
Logged
djohn
Newbie
*
 Muted
Offline Offline

Posts: 28

Thank You
-Given: 8
-Receive: 19


« Reply #2 on: March 13, 2012, 12:17:57 12:17 »

Thanks foxyrick,

I was wondering whether CCS does not support CAN for dspic or it is just a bug. Maybe they have some patch for this..
But anyway thanks again, I will try this..
Logged
Magnox
V.I.P
Active Member
*****
Offline Offline

Posts: 208

Thank You
-Given: 775
-Receive: 238


Oink!


« Reply #3 on: March 13, 2012, 01:01:29 13:01 »

CCS are a little inconstant in their software. For instance their LCD configuration from the PIC18 project wizard uses the wrong definitions and does not work.

It's probably not a bug as such, just a 'have not got around to implementing the wizard yet'.

4.130 is the latest version, unfortunately we do not have it yet. There is nothing in the change list that is relevant though.
Logged
Elmer
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 14
-Receive: 8



« Reply #4 on: March 14, 2012, 04:04:18 04:04 »

Dunno if it's relevant, but the dsPIC series has been haunted by a really (really!) bad CAN infrastructure that can truly be a pain. I think they sorted it out on the 33E devices IIRC. It could be why CCS doesn't provide support.
Logged

peace in the valley
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC