EmbeddedRelated.com
The 2024 Embedded Online Conference

MC9S12XS: Difference between Flash and ROM versions of Controller

Started by yadunandan kasu in 68HC1216 years ago 2 replies

hello every one, I am working with the MC912XS64 MCU right now, while reading the refference manual, I found there are two types of Main...

hello every one, I am working with the MC912XS64 MCU right now, while reading the refference manual, I found there are two types of Main Memory versions are available in the MC9S12XS family. 1. Flash Memory (256K 128K or 64K) 2. ROM Memory (256K 128K or 64K) According to the Manual, for the Controller which has ROM as the Main memory version, doesn't contain the DataFl...


Compilation Error with NE64 on icc12

Started by deniz_kerimoglu in 68HC1216 years ago 4 replies

Hi everyone!I face an error when I use the header file mc9s12ne_regs.h when compiling my project with icc12: The instruction at 0x0040d740...

Hi everyone!I face an error when I use the header file mc9s12ne_regs.h when compiling my project with icc12: The instruction at 0x0040d740 referenced memory at 0x00000000.The memory could not be read.icc12w: can't execute C:\icc\bin\ias6812w.exe But when I use the header file mc9s12ne64.h everything works fine. Has anyone faced such a problem? Regards. -----------------------------...


CodeWarrior Conditional Assembly Problem

Started by sbuckser in 68HC1216 years ago 2 replies

I am converting an 68HC11F1 program written in assembler to MC9S12XEP100 using the free Code Warrior version 5.7.0. I want to use conditional...

I am converting an 68HC11F1 program written in assembler to MC9S12XEP100 using the free Code Warrior version 5.7.0. I want to use conditional assembly to maintain HC11 and 9S12 code in same file. I get many errors. I then created a new assembler project and modified the default assembler file main.asm as attached. I defined line 30: VERSION_A: EQU 0 and lines 48-50: IFEQ VERSION_A ...


A few questions for a project, thanks!

Started by Vuln...@gmail.com in 68HC1216 years ago 5 replies

Hi all, I have a project I am working on for my senior design and I am hoping to get some advice on a few things, thanks for your time! For my...

Hi all, I have a project I am working on for my senior design and I am hoping to get some advice on a few things, thanks for your time! For my embedded systems class we made a project based around a door security system. One HCS12 had an IR sensor and a wireless transmitter connected, and use PB's to set/enter a password. It then transmitted status bits to a second HCS12 connected to a compu...


Decimal

Started by "mr.mattyg" in 68HC1216 years ago 7 replies

Hi Guys, I'm trying to think of the best way to input floating point numbers into my microcontroller and then operate on these numbers...

Hi Guys, I'm trying to think of the best way to input floating point numbers into my microcontroller and then operate on these numbers with multiplications and divisions. My input values will most likely be restricted to a fixed number of decimal places, say 1 or 2. Would it be worth going through the hassle of putting these into BCD Floating Point representation, or just shifting (multi...


Booting from Flash m9s12dg256

Started by sburgin13 in 68HC1216 years ago 13 replies

I'm having major dificulties understanding how to get my c program to run upon boot up. I know the address of where the program starts needs...

I'm having major dificulties understanding how to get my c program to run upon boot up. I know the address of where the program starts needs to be at the reset vector interrupt, but how do I program this? What are the steps I would need to take to change my program and load it into flash? ------------------------------------


HC12 and SD card

Started by adeshere in 68HC1216 years ago 4 replies

Hi, I am trying to talk to an SD card via SPI. I can set up the card and read the CSD CSI registers. BUT When i read data from sector...

Hi, I am trying to talk to an SD card via SPI. I can set up the card and read the CSD CSI registers. BUT When i read data from sector 0, i get the FF 00 to indicate that the command was received correctly and then i eventually get the FE to indicate the data is next. The data i get back is just 00 00 00 00 00 .... I've tried many cards Any ideas ? regards Adrian ---...


timer overflow polling method-- help !!!

Started by njxi...@yahoo.com in 68HC1216 years ago 4 replies

I want to use input capture fucntion to measure a signal period between two rising edges. Since the period under test could be very long, the...

I want to use input capture fucntion to measure a signal period between two rising edges. Since the period under test could be very long, the timer overflow may happen. Thus a counter is needed to record the # of overflow. I don't want to use overflow interrupt, instead only want to use polling method to track 'TOF' flag. My program works correctly if period is not long (no overflow). However ...


need help with a small number sorting program please!!

Started by knad...@gmail.com in 68HC1216 years ago 6 replies

Hi, We have some practice exercies in our course, I was able to do several of them using ASMIDE (the 68hc12 assembler) however there's this one...

Hi, We have some practice exercies in our course, I was able to do several of them using ASMIDE (the 68hc12 assembler) however there's this one exercise which has me completely stumped. Basically here it is: There are 10 unsigned 8 bit numbers stored from $0900 onwards. Write a program which finds the largest and smallest numbers and store them at $090A and $090B respectively. ...


XGate thread using SCI running under simulator, not on the target

Started by jpdi in 68HC1216 years ago 4 replies

Hello, I'm trying to do some thread for XGate. The first thread I wrote, using RTI, is now OK, so I can see it running under simulator AND...

Hello, I'm trying to do some thread for XGate. The first thread I wrote, using RTI, is now OK, so I can see it running under simulator AND on my target processor. The second, using SCI1, - runs under simulator : I can see interrupt, immediately when I put a character in SCI1DRL then generate xmit interrupt, and XGate thread executed - but not on the target : thread never executed ...


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


The 2024 Embedded Online Conference