Hello, I have a problem with using the Timer on a MC9S12DP512. I want to create 1µ second cycles. Every µs I want to increment a variable, but I do not know...
Did you initialize the counter? I have just implemented a 1 millisecond timer for this processor, but its in assembly since I use assembly more... I don't see...
justin lucas
jlucas134@...
May 1, 2009 4:01 pm
16421
... After extensive search of Freescale files, I found the AN974/D document. It is type .pdf, 745 KB. You can download it from: ...
... I've found the URL for this last paper; it is the most important for understanding how to implement the Cordic algorithm for the Arctan function: ...
Another very good resource is the "CORDIC Algorithm Simulation Code" from Dr. Dobbs Journal issue #ddj9010 which is copied in many places on the net. It is an...
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...
Johannes Schmid
johannes.schmid@...
May 6, 2009 6:34 pm
16426
I didn't look over your code but your comments about the message continuing to send caught my attention. This might be an obvious question, but do you have at...
Hi! ... Yes, we have two terminations and tried with various nodes. As already said, we also checked the ACK on the Bus using a scope. The other nodes are...
Johannes Schmid
johannes.schmid@...
May 6, 2009 9:12 pm
16428
ok, I thought it was important to cover the basics first as you just never know where a person is starting from. Here is some very old and outdated code but...
Hi! Thanks, I think I found this in the mailing list archive before because this was the code I started from. I had to change some names because register...
Johannes Schmid
johannes.schmid@...
May 6, 2009 9:33 pm
16430
yes, it did work on hardware. Is it possible you have a hardware rec pin issue? That would explain the correct Ack on the bus and the continuous sending. Is ...
Bus could be flooded due to bitrate mismatch. If only one device is sending at a time, then the width of the shortest pulse on the bus equals to the bit time...
Hi! ... Well, the schemas are available here: http://www.microsquirt.info/us_hardware.htm We bought the pre-build device so I hope there are no routing errors....
Johannes Schmid
johannes.schmid@...
May 7, 2009 8:51 am
16433
Hi! ... OK, I will check this. Unforntunately the bus timing documentation of the hcs12 is a bit strage but I will have a second look at it. Thanks, Johannes ...
Johannes Schmid
johannes.schmid@...
May 7, 2009 8:52 am
16434
Hi! ... OK, I checked the clock speed things again and it's absolutely correct. Here is the code: /* Set Can enable, use IPBusclk (24 MHz),clear rest */ ...
Johannes Schmid
johannes.schmid@...
May 7, 2009 9:56 am
16435
Hello all, I am looking for a good tutorial type book on my microcontroller. I have a MC9S12DP512 on a CMD-12DP512 development board. Devry provided me with a...
Hello all, I am looking for a good tutorial type book on my microcontroller. I have a MC9S12DP512 on a CMD-12DP512 development board. For my old HC11, I...
*Software and Hardware Engineering: Motorola M68HC12 *by Prof. Fred Cady and Jim Sibigtroth Available from Oxford University press, Amazon, or Barnes & Noble...
... I recommend "Programming the Motorola M68HC12 Family" by Gordon Doughman. I'm also using the MC9S12DP512 on a Adapt9S12DP512 board and programming in...
Hi Jerry, There are some newer books that specifically cover the MC9S12 (as opposed to the older 68HC12 technology). I've compiled a list of all the books...
Thanks a lot Carl! I would also like to thank all of you for your replies! With all of the engineering tasks my job puts in front of me, this will make things...
Hi! ... Yes, I did: http://www.msefi.com/viewtopic.php?f=69&t=35338 Actually I really would like to use the msextra code because it has a much better structure...
Johannes Schmid
johannes.schmid@...
May 12, 2009 8:07 pm
16443
Once I understood the Megasquirt usage of CAN, it has been working ok. I also have CAN running on the 9S12XEP100 processor communicating with the Megasquirt...
FLTSIN subroutine did not work correctly for an input of 215 degrees. The bug is fixed by replacing: LDX three60 by: LDX #three60 in the ANGRED routine several...
Hello, ... interrupt each micro-second. ... processor. I need to increment a variable every micro-sencond. I am implementing an CANopen stack at the...
Hi, As I told you in my precedent mail, I think you can't increment a character each micro-second. The reason is this delay is too short for that processor. As...