Questions tagged [68hc12]

A 16-bit microcontroller family from Freescale Semiconductor

The 68HC12 (6812 or HC12 for short) is a microcontroller family from Freescale (former Motorola) Semiconductor. Originally introduced in the mid 1990s, the architecture is a 16-bit enhancement of the 8-bit Motorola 68HC11. Programs written for the HC11 are usually compatible with the HC12, which has a few extra instructions. The first 68HC12 derivatives had a maximum bus speed of 8MHz and flash memory sizes up to 128 kB.

Around year 2002, the devices known as 68HC12 were gradually replaced by the very similar HCS12, which uses the same CPU core but different hardware peripherals. The name 68HC12 or HC12 (without 'S') nowadays refers to the older, obsolete MCU.

Source: Freescale 68HC12D data sheet/manual

50 questions
0
votes
1 answer

Need guidance on setting up variables and arrays properly in my assembly source code file

I'm told that there is "Absolute Assembly" and "Relocatable Assembler" choices when setting up my assembly code project in CodeWarrior. I'm not using the HCS12 microcontroller at the moment as I am just trying to get my code to assemble and step…
0
votes
2 answers

Looping to display on LEDs HCS12 microcontroller

hello i am trying to do a loop in assembly language to make the LEDs light up on a HCS12 microcontroller (Dragon12p). the value is displayed on the LEDs as its binary equivalent (e.g. $01 would light up first LED, $99 would like up like 1 0 0 1 1 0…
user2917393
  • 85
  • 1
  • 2
  • 13
0
votes
1 answer

In HC12 is it possible to compare 2 registers directly?

If I've loaded a value into register X and one into register Y, and I want to compare them... usually I have to do something like: ldx value_1 ldy value_2 pshy cpx 0,sp ins But that's 3 operations for the compare. Is there not a way to do this…
Ziggy
  • 21,845
  • 28
  • 75
  • 104
-2
votes
2 answers

Interrupt service routine to measure a phase difference

I'm currently working with 9S12 from freescale, I really need some help in order to understand how to write correctly an ISR. In particular, I'm reporting the text of an exercise in which they asked me to measure the difference in phase between two…
218141
  • 35
  • 1
  • 5
-3
votes
2 answers

redeclaration of function errors in C (microcontroller)

I am programming a HC6812 microcontroller and I need to use 2 functions in C to: switch off LEDs at port B Read switch input bits 0-4 on PTH (Port H) display switch value on 7 segment display at Port A. Light all LEDs on Port B for 0-31 seconds…
user_1
  • 45
  • 1
  • 3
  • 8
1 2 3
4