... of ... the ... 0. ... The only thing I can think of is that the interrupt occurs in the middle of the assignement between the two values in the struct, ...
I do agree with Daniel; I would avoid float operations in interrupt handler when the CPU has no HW floating point support and the compiler's SW floating point...
Karoly Molnar
karoly.molnar@...
Sep 1, 2005 8:49 am
11612
... I think by the word "trace" you mean single step. I use the word "trace", for the emulator unit called "trace" which is recording the HCS12 execution...
Doron Fael
doronf@...
Sep 1, 2005 8:58 am
11613
It might not corrupt the value, but you might end up with data that is one AD cycle too old. Depending on application, that may or may not be critical....
Hello and thank you for the comments! But, now I´m really perplexed. That´s why, I write the complete source code. But first the description of the program: ...
Yea man, you update the var.volt_calc in the interrupt handler instead of var.volt??...
Karoly Molnar
karoly.molnar@...
Sep 1, 2005 12:13 pm
11617
Sounds strange indeed... Found a small bug, probably not related to the problem: z should most likely be set to zero from inside the if(z==100) statement. I...
@Karoly Molna ... Sorry, this is a copy & paste problem. I calculate this value in the function calc. The ISR looks like var.volt=ATD0DR0; @Daniel Lundin ... ...
... And won't be until better supported with libs and debugging tools. One downfall I think is it's rudimentary handling of pointers and PPAGE. Seems like a...
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2759.pdf In this app note, there's design example with MC9S12NE64. Ground plane has a split,...
Hello once again. I am almost desperate with this problem. I am at a loss :-( Is it possible, that a bug in the compiler (ICC)is the cause of my problem??? Or:...
What happens if you disable the AD interrupt and set a proper float value just before the comparison? Did you check the assembly code?...
Karoly Molnar
karoly.molnar@...
Sep 2, 2005 12:10 pm
11624
Hi, I am in the process of writing my bootloader in "C" using imageCraft and got some bump on the road. So, I wondering now that "is it actualy possible to...
I wrote a similar bootloader for a 128 chip and I believe I had to protect the bootloader block, f800 -ffff, and then block erase the first block followed by...
Thank you!! I will protect the block and give a shot! ... protect ... block ... protected area ... you have ... performing ... increment ... reliably. ... ...
... If you like, you can send me (off-list) a GCC compiled project preferably with paged functions, with the .elf output and the source files, and I can try to...
Doron Fael
doronf@...
Sep 2, 2005 8:34 pm
11628
I use IAR embedded workbench for motorola hc12 2.43c on MC9S12C64. I edited the linker command file. But when linked, the interrupt vector address is BGND. for...
Hello ! I use ICC12 professionnal version, with NoIce debugger, 9s12dp256 processor. I wrote a program for a graphic LCD display, using font characters (9 ...
Hi Compilers do sometimes make poor code. I was once watching a Visteon engineer (Ford) show me how he was debugging his HC12B32 dashboard project. He ws...
Robert Boys
RBoys@...
Sep 5, 2005 8:07 pm
11631
Michael, I agree with you completely. C1 and C2 need to be on the same ground instead of C1's current being forced to flow through the common point on/near J3,...
Dennis Tomlinson
det_werks@...
Sep 6, 2005 4:01 pm
11632
I'm using Cosmic complier CX6812 4.6c and Zap debugger V4.05A. I definitely choose +debug option for C complier. The MCU is 68HC912D60A. I can't set breakpoint...
I am confused. The Port Integration Module document says the PORT AD can be used as general purpose I/O and documents a data direction register, and allows ...
Never mind - I missed the fact that there are two registers for the port - one in each module. I was tweaking PORTAD - I should have been tweaking PTAD! Dave...
Hi, is it normal, that the pins of the CPU PORTK (bit 0 to bit 7) are set to 5V at the reset of the CPU while a very small lap of time. Can it be possible to...
Actually I double click on the line number as the manual said. Jean-Pierre Lavandier <jpL@...> wrote:Try double clicking on the line number (left column)...
Alex, In the "Modular Documentation" on the Freescale web site, in Block Guide — S12MEBI V3, page 24 the default reset state of PUPK in the PUCR is 1, which ...
Hello: I'm looking for information regarding the flash module in the new part 9S12HZ256. I think it has 2 flash arrays (64K * 16 bits). The older 9S12H256 has...
I'm having trouble getting output compare interrupt service routines to work on my s12compact board. My goal is to use the ISR to sample an analog input...