EmbeddedRelated.com

HCS12 to HCS12 Port interfacing

Started by Jerry Fields in 68HC1214 years ago 5 replies

Hello, I have two MC9S12DP512 microcontrollers, and I need to interface them. The first mc9s12, has port P set to output, the second mc9s12...

Hello, I have two MC9S12DP512 microcontrollers, and I need to interface them. The first mc9s12, has port P set to output, the second mc9s12 has port T set to input, and I want to connect one line on those ports. There are no large amounts of data being sent, as I am just holding the line high or low. My question is, do I need a current limiting resistor in between the two? I have not yet fo...


Controlling a Servo with the HC12?

Started by defe...@gmail.com in 68HC1214 years ago 18 replies

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse...

Hello, I am trying to control a Parallax Continuous Rotation Servo (#900-00008) using my MC9S12C128CFUE. I need to to use PWM to give a pulse 1.5ms(rest), 1.3ms (clockwise), and 1.7ms (counter-clockwise) every 20ms/50Hz. I can spin the motor, but it only ever spins in 1 direction and I can not make it stop spinning even if I try to calibrate it. Any help is appreciated. Here is my current co...


timer ports, ping ultrasonic sensors + dragon bored 12

Started by Heart Online in 68HC1214 years ago 6 replies

hello =A0am new to the 68hc12 enviorment, but recently i have purchsed adragon bo= red plus=20 from evbplus.com .. and some ultrasonic ping...

hello =A0am new to the 68hc12 enviorment, but recently i have purchsed adragon bo= red plus=20 from evbplus.com .. and some ultrasonic ping sensors from parllex=20 i waas wondering if anyone knows how to get the timer ports to work so i ca= n use asingle io pin on the dragon bored to get it to work .. or if anyone has any sample codes that they wouldnt mi= nd shareing.=20 thank you...


HCS12 SCI Flash Programming Help

Started by jssimbe in 68HC1214 years ago 1 reply

I'm using and HCS12 with icc12 compiler. I'm using SCI1 to communicate to a touch screen LCD. This program loads the LCD GUI. When I try...

I'm using and HCS12 with icc12 compiler. I'm using SCI1 to communicate to a touch screen LCD. This program loads the LCD GUI. When I try loading the program into flash, it doesn't work. When I'm not using flash, the program works fine and GUI is loaded on the screen. When I flash the board, I include the vectors_dp256 file and set the abs_address to 0xef80. Any help would be greatly apprecia...


Dragon Board 12 Serial Communication C code Help

Started by zach...@gmail.com in 68HC1214 years ago 11 replies

Hello all, I am hoping someone has some incite as to what I am doing wrong here, I figure it is a small problem but I am out of ideas. This is...

Hello all, I am hoping someone has some incite as to what I am doing wrong here, I figure it is a small problem but I am out of ideas. This is just a test to figure out how to pass char * through methods. The code should print Hello World to the serial port which it does, then print tes repeatedly, which it does not, rather the output is as follows: Hello World"""""&qu


Machine code relative offsets

Started by AlD in 68HC1214 years ago 4 replies

I am trying to understand how assembly is translated into machine code. I understand how to get the machine coding formats but I'm not sure how to...

I am trying to understand how assembly is translated into machine code. I understand how to get the machine coding formats but I'm not sure how to calculate 'rr' in all cases. For the example below 'bra' is 20 rr or 20 03, I know that the relative offset is 03 (to get past the two bytes required by the 'inc' instruction)to get to the 'iny' instruction. But I'm not sure why the rr = F3 for the ...


update on free HCS12(X) tools

Started by mculater12 in 68HC1214 years ago

Greetings from Technological Arts! I'd like to let everyone in the HCS12(X) community know about several free development tools that have been...

Greetings from Technological Arts! I'd like to let everyone in the HCS12(X) community know about several free development tools that have been released recently. This announcement will be especially interesting to those who are not using C or assembler. Several months ago, programmer David Armstrong released a FIG-Forth compiler and IDE for the 9S12XDP (http://mamoru.tbreesama.googlepages.com...


legacy: MiniIDE and HC9S12D64

Started by warm38spl in 68HC1214 years ago 5 replies

I am working with a legacy program written in HC11 assembler and ported to HC9S12D64 assembler using MiniIDE and using TwinPeeks2.0 as the monitor...

I am working with a legacy program written in HC11 assembler and ported to HC9S12D64 assembler using MiniIDE and using TwinPeeks2.0 as the monitor residing at $F000-$FFFF. The program is growing and I need extra space in Flash. How do I program for and access PPAGE=$3D? Can this be done using MiniIDE and TwinPeeks? When MiniIDE detects ORG statement beyond FFFF it starts generating S2 reco...


How to use Port P as an output pin?

Started by deniz_kerimoglu in 68HC1215 years ago 4 replies

Hi everyone, I got a simple question. I need to use port p as general purpose output, I need to take 0V or 5V output from any of pp0-pp5 pins?...

Hi everyone, I got a simple question. I need to use port p as general purpose output, I need to take 0V or 5V output from any of pp0-pp5 pins? How can I achieve it in C? Regards. ------------------------------------


CodeWarrior para HCS12 v3.1

Started by gonzalo Merida in 68HC1215 years ago 2 replies

Estimados:Apelo a su atenci=F3n para que=A0me ayuden a =A0conseguir el comp= ilador "CodeWarrior para HCS12 v3.1" sin limitaciones de tama=F1o de...

Estimados:Apelo a su atenci=F3n para que=A0me ayuden a =A0conseguir el comp= ilador "CodeWarrior para HCS12 v3.1" sin limitaciones de tama=F1o de c=F3di= go ni cantidad de archivos=A0(con archivo *.lic full) para fines did=E1ctic= os=A0, dado que necesito probar un micro de la linea HCS12 , entiendo que e= st=E1n disponibles las versiones superiores (v4.6 y v5.0) en freescale y ad= em=E1s se ...


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