CodeWarrior warning :A12004 Value is truncated ...

Started by andr...@yahoo.co.uk in 68HC129 years ago 1 reply

I'm wondering why I'm getting lots of these warnings - (A12004) Value is truncated to two bytes. ?? They are all indicated with a JSR...

I'm wondering why I'm getting lots of these warnings - (A12004) Value is truncated to two bytes. ?? They are all indicated with a JSR instruction. The code compiles and runs - but since I moved some of the routines into paged memory, rather then the non paged area - I get these warnings. Do I need to change a setting in CodeWarrior ? I know you have to be careful with JSR and paged memory...


Modulus down counter not working

Started by jeff...@bendnet.com in 68HC129 years ago 7 replies

Hello, I am using a Wytec microdragon with serial monitor & trying to get a 25ms interrupt. I had it working in a previous similar project, so I...

Hello, I am using a Wytec microdragon with serial monitor & trying to get a 25ms interrupt. I had it working in a previous similar project, so I believe the code should work. The keypad & lcd work fine. My question is: is there some input pin that could be affecting the modulus counter? As soon as the interrupts turn on all control is lost. Any code after (interrupts_on) is not executed - Je...


prm file for mc9s12c64

Started by embitel in 68HC129 years ago

Hello everyone, I have problem in understanding the memory of MC9S12C64. i am using codewarrior 5.1,PE BDM MULTILINK, BANKED MEMORY...

Hello everyone, I have problem in understanding the memory of MC9S12C64. i am using codewarrior 5.1,PE BDM MULTILINK, BANKED MEMORY MODEL. I have gcc prm file as follows SEGMENTS page0 (rwx) : ORIGIN = 0x0, LENGTH = 0x3000 data (rw) : ORIGIN = 0x3000, LENGTH = 0x1000 eeprom (rx) : ORIGIN = 0x4000, LENGTH = 0x1a00 text3 (rx) : ORIGIN = 0x5a...


9s12d64 -Trouble with PLL and filter

Started by imtiyazfmn in 68HC129 years ago 5 replies

Hello, I am using 5 mhz CLK in source and i need 1.25 mhz Bus clk so i used internal PLL for that ,i have done following thing for that...

Hello, I am using 5 mhz CLK in source and i need 1.25 mhz Bus clk so i used internal PLL for that ,i have done following thing for that is 1)SYNR=00; 2)REFDIV=03; EX CODE IS: /*PLLCTL=0xB1; /*PLL off */ /*goto PLL_BYPASS; */ CLKSEL=0x00; REFDV=03; /* BUSCLK=5MHZ*(0+1)/(3+1) */ SYNR=00; Lock_loop: for (i=0; i < 30000;i++){} /* Delay some time ... */ bit=CRGFLG & LOCK; if(bit ==0x00)


trouble in BDM debugger when PLL gets ON- HC12

Started by imtiyazfmn in 68HC129 years ago 1 reply

Hello, I am using BDM debugger for my 9S12d64 device normally it works fine but when i am going to switch internal clock to PLL clock it gets...

Hello, I am using BDM debugger for my 9S12d64 device normally it works fine but when i am going to switch internal clock to PLL clock it gets halt and gets disconnected so please give your suggestions for this. Thanks, Imtiyaz ------------------------------------


help with Interrupts Please!!

Started by prel...@gmail.com in 68HC129 years ago 1 reply

Hi everyone I am using the the Dragon 12 Plus and the GNU compiler. I am having a major problem using interrupts to completing my project. For my...

Hi everyone I am using the the Dragon 12 Plus and the GNU compiler. I am having a major problem using interrupts to completing my project. For my project I am using a sensor to measure a distance and when the distance is under 30 ins it should activate a timer that would count to 10 (displayed on the seven segment) and stop but if the sensor measures under 30 ins again it should restart the count...


Trigger A occurred on HCS12 & CW6.1

Started by AndreaT in 68HC129 years ago

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the...

I'm very new to embedded systems programming and learning about scheduling. I am getting a Trigger A occurred in the command window of the debugger when I hit RUN. When I step through the code it seems to reset? at asm cli at the end of the code. Please let me know if you all have any ideas. /* Started with Valvano Fixed Priority Scheduler. System should light two LEDs alternately every 500...


9s12d64 -External memory access

Started by imtiyazfmn in 68HC129 years ago 14 replies

Hello, I am going t use 9s12d64 for my older design with replacing this.In older design MC68HC11 was used.on that design an FPGA used on 0x8000...

Hello, I am going t use 9s12d64 for my older design with replacing this.In older design MC68HC11 was used.on that design an FPGA used on 0x8000 to 0x803f adress.So now i wanted to use same adress for an FPGA so is it possible in 9s12d64 controller? Since i have read that 0x8000 to 0xBFFF is used for program memory using page window.And insight of micro internal flash is available in this locatio...


trouble with PLL on the HC12

Started by Chris in 68HC129 years ago 13 replies

Hello; I am using an ICC12 compiler and NOICE debugger with a USB pod with an HC12 128kB chip running with a 16MHz crystal. My problem is that...

Hello; I am using an ICC12 compiler and NOICE debugger with a USB pod with an HC12 128kB chip running with a 16MHz crystal. My problem is that when I try to set the PLL up for about 40MHz, the code does not seem to work in the way it should and I can't get a LOCK - or even a TRACK signal. I have to turn off the PLLSEL bit before trying to set up the mult and divide registers and turning the...


Interrupts on Port H

Started by dedison07 in 68HC129 years ago 4 replies

I'm having a problem having two interrupts on Port H, I want to use two dip switches to show two different messages on my LED but I don't know how...

I'm having a problem having two interrupts on Port H, I want to use two dip switches to show two different messages on my LED but I don't know how to configure it two where both messages show I only can get one message on both switches. Please help ------------------------------------


Ask a Question to the EmbeddedRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright