Hey everyone. I write code for an introductory programming course using microcontrollers. I wrote some code for an address book of sorts. In the code, I ...
... Hi, ... I think it's an initialization problem; depending on what you intend to do, you can write: char names[10][8]={0x0}; // and write an initialization...
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...
yes you CAN! The incoming CAN ID is stored in the first 4 bytes of the receive buffer but you'll have to rearrange the bits a little to get it into a nice 11...
Hello, I tried to read out the Identifier but it does not really work. Perhaps someone could tell me what is wrong. Best regards Here is my ISR: @interrupt...
I'm not sure what exactly you're trying to do in your code or what your defines look like, but just as an example, if you had #define CAN0ID(b) *(volatile...
Hello, I try to read out the ID and show it on a LCD. At the moment I am using 11 bit ID. The incoming CAN ID is stored in the first 4 bytes of the receive...
ultimately you are going to have to dig into the mscan manual and become familiar with all of the registers. Take a look in the manual for the figure labeled...
Hello, thank you very much. I think that I understand now. I tried to write some programms to test the settings and so on. It works fine now with 11bit ID. I...
Hello, I tried to read out a 29 bit identifier. But it seems that I have problems to initialize the can module becausse I can not receive any CAN message. I...
I'm working on a Dragon12-P board from evbplus.com containing the mc9s12dp256 and using CW 5.9.0 for a compiler. I'm a beginner, too. :) I've got a C program...
Here is a simple example of setting the CAN controller up. It is getting a little old but still might help you out. Steve // This file may be freely...
Here is something in C for you: // accepts ASCII characters from serial port and // adds them until <CR> or max length // echos input // accomodates back space...
It could be something like old DP256 maskset errata MUCts00510: The SCI interrupt is only asserted if an odd number of interrupts are enabled and set. For...
Hey man, Actually, I don't think reading them resets the flag... I dont' have time to look at it right now, but I know that the RTI at least has a flag that...
Hello All, I have searched in vain to try and find the output current driving capability of the MC9S12DG256 output pins. I can only find an "Absolute Maximum"...
It does sound like a flag not being cleared. I'll do some debugging. It should clear with the following: //clearing c = SCI1SR1; c = SCI1DRL; I'm still...
I checked the PARTID and it came out $33 which means I have the 0L01Y mask set. It shouldn't have any errata. ... I'm still having problems, so any advice or...
I'm watching SC1SR1 on my LEDs. The RDRF flag is clearing just fine. After it does the job in the ISR, the IDLE flag goes on in SC1SR1. When the IDLE flag goes...
Hi Edward, to tell you the truth, I have always found some of the methods for clearing flags both confusing and inconsistent so I appreciate the correction. ...
I got IDLE to clear, but it still just refuses to enter my ISR after the first time. The SC1SR1 only has the TDRE and TC flags on before and after the...
Hi Steve CANRFLG flags, timer flags, key wake up flags etc, they all are clearable writing '1' to them. CANRFLG = 1; // this is simple and OK. You write flags...