Re: problem regarding Succesful Transmission of CAN message

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

Thanks,Edward! Is there any situation that MSCAN aborts current transmitting without application abort request? If MSCAN keep retrying...

Thanks,Edward! Is there any situation that MSCAN aborts current transmitting without application abort request? If MSCAN keep retrying transmitting, but there is no any ack, what will happen later? error interrupt to inform application? wrote: > > > how application knows when arbitration lost? will msCAN retry later? > > thanks! > > Yes MSCAN will retry later. It will keep retr


MSCAN Overload Frame

Started by peter_lingier in 68HC1213 years ago

Hello all, I have been reading the MSCAN block user guide to find out if the MSCAN sends overload frames automatically, if the...

Hello all, I have been reading the MSCAN block user guide to find out if the MSCAN sends overload frames automatically, if the Rx FIFO buffer is full and if an overrun is happening. In paragraph 4.2.3 Receive Structures last alinea, is described what happens if


MsCAN Tx Interrupt question

Started by apedroso11 in 68HC1211 years ago 2 replies

Hi all, I've been working on a MsCAN driver for DP256. I am going over it and I have some questions: The MSCAN Block Guide V02.15 says...

Hi all, I've been working on a MsCAN driver for DP256. I am going over it and I have some questions: The MSCAN Block Guide V02.15 says that TX interrupt must be acknowledged by clearing the corresponding flag CANTFLG. 1. Should I ack the tx interrupt doing CANTFLG |= CANTFLG; ? this way I set the empty buffers ready for tx. 2. I only must clear the bit causing the interrupt, but h...


Problems with initialising msCAN

Started by Sebastian Schuster in 68HC1213 years ago 4 replies

Problems with initialising msCAN hcs12 I got still some problems with the mscan. Yesterday I was told to set the...

Problems with initialising msCAN hcs12 I got still some problems with the mscan. Yesterday I was told to set the CAN1IDAR-registers too (my mcu has no identifer-number at this time, how could it be possible that my test-message can pass the identifer-filter?). When I run th


Re: problem regarding Succesful Transmission of CAN message

Started by Edward Karpicz in 68HC128 years ago

> Thanks,Edward! > Is there any situation that MSCAN aborts current transmitting without > application abort request? No. MSCAN won't...

> Thanks,Edward! > Is there any situation that MSCAN aborts current transmitting without > application abort request? No. MSCAN won't about anything without request. > If MSCAN keep retrying transmitting, but there is no any ack, what will > happen later? error interrupt to inform application? Error counters may increment, bus-off may happen. But it all should self-fix and mark


Initialization mode of the MSCAN module for MC9SDJ128B

Started by ecm_joe in 68HC1213 years ago 1 reply

I've run into an interesting problem with trying to get the MSCAN module out of initialization mode from startup. In my debugger ...

I've run into an interesting problem with trying to get the MSCAN module out of initialization mode from startup. In my debugger environment (Cosmic tools and debugger with BDM-Multilink) I can bring the MSCAN module out of initialization mode after reset just fine, but if I try


MSCAN Passive Error Handling by aborting the transmission

Started by venkateshwarlu kacham in 68HC128 years ago 1 reply

Hi All, We are using the MSCAN in MPC5200B for my project CAN communication. I am aborting the CAN message whenever there is a TX PASSIVE...

Hi All, We are using the MSCAN in MPC5200B for my project CAN communication. I am aborting the CAN message whenever there is a TX PASSIVE Error occurs. I am creating the PASSIVE error by keeping CAN connection open. My Question is: The TX error counter values are never reset to ZERO though I did the CAN initialization. Does MSCAN Error counter register values become ZERO after every r...


Test Case for Data Over Codition in msCAN node

Started by kasu nandu in 68HC1210 years ago

Helo every one, You might have heard about the Data Over Run condition in msCAN module used Nodes. I want to know how...

Helo every one, You might have heard about the Data Over Run condition in msCAN module used Nodes. I want to know how can we create the Test Condition for Data Over Run situation to occur. i.e. how can we make our Receive Buffer full and create the Data over run condition for the msCAN. my MCU is ms9s12D64 in which i am using S12MSCANV2 ...


MSCAN

Started by rlewis51 in 68HC1213 years ago 2 replies

Hi Folks: Does anyone have any sample source code, or know where there is a good, simple introduction to MSCAN for the S912...

Hi Folks: Does anyone have any sample source code, or know where there is a good, simple introduction to MSCAN for the S912 ? Thanks, -Roger


HCS12 and CAN-module

Started by mlammila in 68HC1214 years ago 6 replies

I used before HC12 (60 and 128) and it's msCAN-module which worked fine. Now I have tried to use MC9S12D64 microcontroller's...

I used before HC12 (60 and 128) and it's msCAN-module which worked fine. Now I have tried to use MC9S12D64 microcontroller's msCAN-module and I have got it to send messages (checked with oscilloscope) but there is something wrong in the sending because my monitor program (national


Problem with initialising msCAN 6812dp256b

Started by Sebastian Schuster in 68HC1213 years ago 4 replies

This time I need some help with the msCAN. The program runs in loop- mode, so the data from the transmiter buffer should turn up in...

This time I need some help with the msCAN. The program runs in loop- mode, so the data from the transmiter buffer should turn up in the reveiver buffer. But this is not the case. Regards Sebastian #include /* common defines and macr


MSCAN for MC9S12 Series Embedded

Started by augustaengineer in 68HC1213 years ago 1 reply

Does anyone have sample MSCAN code for the MC9S12 embedded? I have some assembler code from the Technological Arts, but my assembler skills are...

Does anyone have sample MSCAN code for the MC9S12 embedded? I have some assembler code from the Technological Arts, but my assembler skills are a little rusty and I'm having trouble following some of the operation sequences. I'm most proficient in 'C' and am using the Imagecraft ICC12 compiler. Thanks


MSCAN bean transmision problem

Started by sabinaca1997 in 68HC1213 years ago 27 replies

Hi everyone on this list! I am experiencing a problem with the programming of the MSCAN on a MC9S12DP256BCPV. I have created...

Hi everyone on this list! I am experiencing a problem with the programming of the MSCAN on a MC9S12DP256BCPV. I have created and tested a "quasi" CANOpen protocol using the Processor Expert beans created from Codewarrior. I just had to set the right baudrate,


Re: problem regarding Succesful Transmission of CAN message

Started by Edward Karpicz in 68HC128 years ago

wrote: > how application knows when arbitration lost? will msCAN retry later? > thanks! Yes MSCAN will retry later. It will keep...

wrote: > how application knows when arbitration lost? will msCAN retry later? > thanks! Yes MSCAN will retry later. It will keep retrying until message is send and acked by other nodes. > > 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 M


sample msCAN code for HCS12

Started by Steve Letkeman in 68HC1214 years ago

A number of people have asked me for some sample code for the newest version of msCAN, here it is... // This file may be...

A number of people have asked me for some sample code for the newest version of msCAN, here it is... // This file may be freely distributed as long as this header remains // intact in order to encourage you to visit our web site // at www.zanthic.com home of the CAN-4-U


9S12DJ64 MSCAN issue with 16 bit mask mode

Started by x19er1 in 68HC1213 years ago 1 reply

I am unable to get the MSCAN module to work in 16 bit mask mode (CAN0IDAC = 0x10). No matter what I write to this register it...

I am unable to get the MSCAN module to work in 16 bit mask mode (CAN0IDAC = 0x10). No matter what I write to this register it shows 0 and uses 32 bit masks. Anyone else run into this problem? John


Problems in Using MSCAN

Started by forum_user77 in 68HC129 years ago 5 replies

Hello, I am trying to work with the MSCAN-Module of the HCS12. I have CAN-Dongle for a PC and try to send a CAN Message from the PC to the...

Hello, I am trying to work with the MSCAN-Module of the HCS12. I have CAN-Dongle for a PC and try to send a CAN Message from the PC to the HCS12. I receive the message with the HCS12 and show the data at some LED's. But at the Computer I always get the Error-Message BUSHEAVY. Could you have a look at my code for the HCS12 and tell me what's wrong. Perhaps the baud rate is wrong. ...


msCAN: receive-buffer

Started by Sebastian Schuster in 68HC1213 years ago 1 reply

I got a problem in understanding the system of buffers and filters in the msCAN-modul. First thing is, when sending a message...

I got a problem in understanding the system of buffers and filters in the msCAN-modul. First thing is, when sending a message from the tx-buffer to the canbus, the same message is written to the receivebuffer. Is the can- modul sensing the bus and therefore receive its own message


MSCAN TX interrupt ILLEGAL BP BGND

Started by "ondrej.machek" in 68HC129 years ago 2 replies

Hello, I would like ask you. I am using interrupt for my transmit MSCAN can0 but at the end, M68evb912DP256 jump to command ILLEGAL BP and asm...

Hello, I would like ask you. I am using interrupt for my transmit MSCAN can0 but at the end, M68evb912DP256 jump to command ILLEGAL BP and asm BGND. Do anybody know please where could be error? Thank you very much to all. void interrupt 39 Tx_CAN0(void){ unsigned volatile char i, buf_num, can_tx_msg[16]; buf_num = CAN0TFLG; CAN0TBSEL = buf_num; buf_num = CAN0TBSEL; can_tx_msg[...


MSCAN On 9S12D64 80 Pin Package Problem

Started by tophongli in 68HC1210 years ago 2 replies

Hello All, I have an MSCAN program that works with 9S12D64 112 Pin package well. When I use the same program on a 9S12D64 80 Pin package, I...

Hello All, I have an MSCAN program that works with 9S12D64 112 Pin package well. When I use the same program on a 9S12D64 80 Pin package, I could not make it work as before. The CAN0 used PM0/PM1 on 112 Pin chip. It will use PJ6/PJ7 on 80 Pin chip. I have set: MODRR = 0x03; /* Route CAN0 to PJ6, PJ7 */ Seems not working. Tried to set other ports: DD...