Hi Daniela, A few weeks ago, I tried to evaluate the CAN Interface without the demo files, only with Philips User Manual, and it ended in a big chaos. For this Sort of Controllers, you need a little bit source code from the manufacturers of the controller or the compiler. If possible, use the FullCAN Example from the Keil Homepage: The File is called "LPC2_CAN_EXAMPLES.ZIP". You can download it from the following link: http://www.keil.com/download/docs/lpc2_can_examples.zip.asp The unzipped Folder is called "LPC2_CANFull_V110". It's not only an Example, but very professionell, one may initialise 1 to 4 CAN Interfaces by #ifdef-#endif compiler steering dependant to the used LPC2000 Controller part (2129, 2294, eg.). The Example uses the right PINSEL selections for each of the selected CAN Controller. Your Pin Selection for CAN Controller 2 is right, the same as in the FullCAN Example. What Code and ARM Board do you use? The Keil MCB2100 or other??? I have modified the FullCAN Example to fit it to my Application, added a Standard Group Acceptance Filter Initialisation and Auto-Bit- Rate-Detection described in the Philips Application Note AN97076, Page57, for the Philips SJA1000 CAN-Controller. That all costs a few days of development but works very well on my Keil MCB2100 Board. My Keil MCB2100 works together with a CAN Analyzer on the CAN Controller 1 and 2 (CANalyzer from "vector informatik"), such a tool for your PC is very useful and helpful and certainly necessary to make decisions on bus traffic, identifiers, acceptance filters and statistics. Greetings from Dietmar. www.weiss-electronic.de -------------------------------------------------------------- --- In lpc2000@yahoogroups.com, "daniela_boyo" <dob3@l...> wrote: > > Hi everyone, > > I'm having some problems using the 2nd CAN controller network on the > LPC2129 ARM board. So far I have successfully used the 1st CAN > controller and I'm now trying to incoorporate the 2nd one. I'm using > the same code as the 1st one except that I have changed the PINSEL1 > register as follows: > > // Enable pins for selected CAN port 2 > PINSEL1 |= 0x00014000L; // Set bits 14 and 16 > > and all the CAN registers from 1 to 2. > > Is there anything else that I am missing out that needs to be done in > software? > > Any help would be greatly appreciated. > > Thank you! > Daniela.
Message
Re: CAN controller 2 on the LPC2129
2005-02-19 by dietmar_wengler
Attachments
- No local attachments were found for this message.