Re: Please help with SCI0 interrupt on DEMO9S12NE64

Started by grec...@lafayette.edu in 68HC124 years ago

Under DBug-12 SCI0 interrupts are not available. The document Reference Guide For D?Bug12 Version 4.x.x A Debug Monitor For The MC9S12Dx256,...

Under DBug-12 SCI0 interrupts are not available. The document Reference Guide For D?Bug12 Version 4.x.x A Debug Monitor For The MC9S12Dx256, MC9S12A256, MC9S12Dx128, MC9S12H256 & MC9S12A128 Microcontrollers Written By Gordon Doughman Field Applications Engineer Software Specialist states on page 11: Note that even though there is an entry in the table for SCI0, replacing the default v


Turn the dragon board in to a remote control for a TV

Started by zigma51 in 68HC124 years ago 1 reply

I am working on turning my dragon board 12 USB in to a remote control. I got the keypad programmed, and I can send a basic IR signal. The next...

I am working on turning my dragon board 12 USB in to a remote control. I got the keypad programmed, and I can send a basic IR signal. The next step I feel is to send a specific binary signal over the IR transmitter. This is where I am stumped and now sure how to program this. I will be thankful for any advice. Here my code so far [code] //PT5 of PORTT is connected to buzzer/speaker...


CodeWarrior warning :A12004 Value is truncated ...

Started by andr...@yahoo.co.uk in 68HC125 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 68HC125 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...


Flash Program Routine - Appears To Do Nothing

Started by andr...@yahoo.co.uk in 68HC126 years ago 9 replies

Hi - I need some help please .... I'm trying to write some code to write to the Flash area on an MC9S12DP512. But although it runs, and...

Hi - I need some help please .... I'm trying to write some code to write to the Flash area on an MC9S12DP512. But although it runs, and doesn't appear to throw any Acc or PViol errors, it also doesn't appear to actually write to the Flash - it remains @ FF FF .. What am I doing wrong ? I've looked the the FSL app notes, (AN2400 for example) and done some digging around on here - and as...


prm file for mc9s12c64

Started by embitel in 68HC126 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 68HC126 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 68HC126 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 68HC126 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 68HC126 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...


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