9S12DP256 CAN Initialization

Started by bdcps2002 in 68HC1216 years ago 8 replies

Hi everybody, I am using MC9S12DP256 on TechnologicalArts board, which has 2 CAN ports. Even though CAN works in Loopback mode, I...

Hi everybody, I am using MC9S12DP256 on TechnologicalArts board, which has 2 CAN ports. Even though CAN works in Loopback mode, I couldn't get them to talk to each other. When initializing, do I have to do anything other than: // Enable MSCAN module.???? Anything else


MSCAN

Started by Adrian Vos in 68HC1213 years ago 3 replies

Hi All, I have got the CAN working on a product I have running the S12DP256B. I have two units connected togeather with transceivers...

Hi All, I have got the CAN working on a product I have running the S12DP256B. I have two units connected togeather with transceivers happily talking to each other. The next step is to connect this unit into an existing CAN network in a car. There are lots of settings available for CAN...time quanta size and relative times of different sections of


Re: problem regarding Succesful Transmission of CAN message

Started by cisc...@tom.com in 68HC129 years ago

how application knows when arbitration lost? will msCAN retry later? thanks! helo everybody > > i am working on...

how application knows when arbitration lost? will msCAN retry later? thanks! helo everybody > > i am working on S12MSCAN-v2....for data transmission > between any test equipment and an ECU...the Microcontroller I am > using in the using ECU is MC9S12D64.. > > i have a question regarding this.... > > how can we know that the CAN transmission is > compl


problem regarding Succesful Transmission of CAN message

Started by yadunandan kasu in 68HC1212 years ago 2 replies

helo everybody i am working on S12MSCAN-v2....for data transmission between any test equipment and an ECU...the Microcontroller...

helo everybody i am working on S12MSCAN-v2....for data transmission between any test equipment and an ECU...the Microcontroller I am using in the using ECU is MC9S12D64.. i have a question regarding this.... how can we know that the CAN transmission is completed...instead of cheking the MSCAN transmitter register (CAN0TFLG (TXE)).. ho...


Example assembly code for MSCAN

Started by Andrey Shvartsman in 68HC1214 years ago

Would someone mind sharing an example of CAN assembly code? I am trying to figure out how to program a master-slave configuration...

Would someone mind sharing an example of CAN assembly code? I am trying to figure out how to program a master-slave configuration on two C32 boards,which I believe have a CAN 2.0 implementation, and I am running into a wall.


Yet another MSCAN12 issue

Started by hc08jb8 in 68HC1214 years ago 1 reply

Hi Folks While using the MSCAN module on 9S12C32, I am able to receieve the 8 bytes of data, however the ID doesent seem to be...

Hi Folks While using the MSCAN module on 9S12C32, I am able to receieve the 8 bytes of data, however the ID doesent seem to be captured, I have set masks to accept all message and I am only transmitting standard 11 bit messages. Another HC08GZ16 based board hoo


MC9S12DG256: CAN Problems

Started by Daniel Winkler in 68HC1213 years ago 1 reply

Hello, i'm fairly new in HCS12 an CAN programming and have a problem getting the MSCAN Module to work properly. The problem...

Hello, i'm fairly new in HCS12 an CAN programming and have a problem getting the MSCAN Module to work properly. The problem is that i try to write a little CANMonitor for the MC9S12DG256 in C (using ImageCraft ICC12 Version 6). For the first tests i adapted a code ex


Interrupt driven MsCan bus

Started by Paul Johnson in 68HC1216 years ago 8 replies

Hi All, All of the examples I have seen using the CAN bus with the HC12 line uses simple polling. Is anyone aware of an example...

Hi All, All of the examples I have seen using the CAN bus with the HC12 line uses simple polling. Is anyone aware of an example using interrupts? Has anyone out there used interrupts themselves? On a related note, all of the examples use only one of the output registers


CAN connection

Started by Martina Peter in 68HC1213 years ago 2 replies

Heyhi, I want to use the CAN-Module CAN0 of the HC12 to connect a laptop via USB-to-CAN to the microcontroller. But I...

Heyhi, I want to use the CAN-Module CAN0 of the HC12 to connect a laptop via USB-to-CAN to the microcontroller. But I can not enable the MSCAN module (CANE is always "0"). Whether in the normal mode nor during initialization mode.


Re: Using MSCAN with XGATE

Started by Alban in 68HC1211 years ago

--- In 6...@yahoogroups.com, "raul_virutas" wrote: > > Hello everybody???? > > Has someone configured CAN through XGATE???? > > ...

--- In 6...@yahoogroups.com, "raul_virutas" wrote: > > Hello everybody???? > > Has someone configured CAN through XGATE???? > > I'm trying to do this without success :-( > > I'm working in a project with CodeWarrior 4.5 and PE. I've configured > two TimerInt beans, the one in CORE and the other in XGATE. > XGATE accepts one TimerInt bean interrupts, this have been done


CAN Problem with mc9S12dg256 <-> can232

Started by Daniel Winkler in 68HC1213 years ago

After several Hours of testing i finally get the msCAN Module to work. But now other problems occur. To test the CAN Bus i...

After several Hours of testing i finally get the msCAN Module to work. But now other problems occur. To test the CAN Bus i connected two mc9S12dg256 boards (CardS12 from elektronikladen) and two CAN232 Modules with a CAN BitRate of 50 kbit/ s. And now i have funny prob


msCAN Transmit problem

Started by Doug Brainard in 68HC1216 years ago 2 replies

I am having a problem setting the Transmit ID buffers in my CAN setup. I am using the following code section: CAN0TIDR0 =...

I am having a problem setting the Transmit ID buffers in my CAN setup. I am using the following code section: CAN0TIDR0 = tran.id[0]; CAN0TIDR1 = tran.id[1]; CAN0TIDR2 = tran.id[2]; CAN0TIDR3 = tran.id[3]; Seems simple enough. This in turn compiles into thi


MSCAN problem

Started by Johannes Schmid in 68HC129 years ago 13 replies

Hi everybody! I have a problem using the CAN-Bus interface of the HCS12 used in the MicroSquirt(tm) ECU we use on our Formula race...

Hi everybody! I have a problem using the CAN-Bus interface of the HCS12 used in the MicroSquirt(tm) ECU we use on our Formula race car. Following the various data sheets I came up with the following code: void CanInit(void) { /* Set up CAN communications */ /* Enable CAN, set Init mode so can change registers */ CANCTL1 |= 0x80; CANCTL0 |= 0x01; while(!(CANCTL1 & 0x01)) ...


MSCAN Identifier of a received message

Started by foru...@gmx.net in 68HC129 years ago 16 replies

Hello, I have a communication between a HCS12 and a Computer. I receive CAN messages with the HCS12. That works fine so far, sending messages,...

Hello, I have a communication between a HCS12 and a Computer. I receive CAN messages with the HCS12. That works fine so far, sending messages, too. Is it possible to get the identifier of an received CAN message? Is it stored in a register or something like that so that I can read out the identifier of the last received CAN message? Best Regards Folgli --------------------------------...


MSCAN Identifier Acceptance Filtering?

Started by ekta...@tatatechnologies.com in 68HC129 years ago

Hello Everyone, I am working on SK-S12XDP512-A board for freescale MC9S12XDP512. I am facing a problem in setting the Identifier acceptance...

Hello Everyone, I am working on SK-S12XDP512-A board for freescale MC9S12XDP512. I am facing a problem in setting the Identifier acceptance filters to accept a specific Identifier. However I have already gone through a data sheet of MC9S12XDP512. But still some questions are left: What data should be written in Acceptance and Mask registers? Is the data to be written in the Acceptance a...


How to set Identifier Accepance Filter register for MSCAN on MC9S12DP512

Started by Gurumurthy in 68HC1212 years ago 4 replies

Hi all... I have two messages with ID 0x100 and 0x101. What all i need to set in Acceptance filter register and acceptance mask...

Hi all... I have two messages with ID 0x100 and 0x101. What all i need to set in Acceptance filter register and acceptance mask register? Can anyone explain with an example? I am using CAN in standard forat(11 bit identifier) and 4 16 bit filter mode. Thanks in advance Gurumurthy