Introduction; Early Project Planning; 9S12NE64

Started by jwalther1919 in 68HC127 years ago 4 replies

Hello, I just joined the group, because I am considering a hobbyist project which I might take open source. I am still in the...

Hello, I just joined the group, because I am considering a hobbyist project which I might take open source. I am still in the planning/feasibility/costing stage and could use some advice. I'll describe the project in more detail at the bottom, but I'm going to go straight to the question. so you don't have to wade through what may be needless detail. 1) Are many folks using the 9S12NE64...


Unable to read SPI1DR

Started by marc...@gmail.com in 68HC127 years ago 2 replies

Hi, I have a function that returns that value of the SPI data register (SPI1DR). I expect this function to return 0xFF if there is no other...

Hi, I have a function that returns that value of the SPI data register (SPI1DR). I expect this function to return 0xFF if there is no other data coming in from the slave device. However, I only ever see 0x00 in this register even though I see the correct bit pattern on the MOSI pin. Does anyone have any thoughts? The receive function and my initialization are below. Also, I am using an MC9S12DG...


newbie Dragon12 board softwar-hardware question

Started by catsalsa in 68HC127 years ago 11 replies

Hi, I'm taking an embedded course and my prof dug out an old Dragon12 board without the software CD. I did not get a BDM either. I am trying...

Hi, I'm taking an embedded course and my prof dug out an old Dragon12 board without the software CD. I did not get a BDM either. I am trying to understand if there is any option to program the board in C without supplementary hardware. I need to program it using C with which I'm familiar and by reading the various documentation and downloading different software it seems a clear question is n...


SPI problem Specifically about SPIDR

Started by amit shrigondekar in 68HC127 years ago 3 replies

Hi everyone .. I have a problem with SPI bus and I have pasted below=A0init functions for master and slave. if any body had the same problem,...

Hi everyone .. I have a problem with SPI bus and I have pasted below=A0init functions for master and slave. if any body had the same problem, kindly let me know how to get around that= . Problem: 1) =A0when I read SPIDR register it gives me random values and once in a while correct value 2) Also it does not copy any value =A0in the arr[] it just copies first location in arr void ...


Difference between S12 and S12X

Started by drew...@gmail.com in 68HC127 years ago 2 replies

I have code written for a HCS12 Micro and was thinking about porting it over to a HCS12(X). It has interrupts, and it seems that the interrupts...

I have code written for a HCS12 Micro and was thinking about porting it over to a HCS12(X). It has interrupts, and it seems that the interrupts are handled differently. Is this true, or if the modules are the same between the 2 chips, will the code just port over and work the same. ------------------------------------


USB to Virtual COM port

Started by ghoshraju_m in 68HC127 years ago 4 replies

Hi all, My application currently communicates with Instrument through COM port(serial communication). Now the instrument manufacturer is going...

Hi all, My application currently communicates with Instrument through COM port(serial communication). Now the instrument manufacturer is going to support USB in place of COM port and the PC application will communicate to instrument through USB using virtual com port (VCP). 1. Should i have to write a driver to convert USB to VCP? Please help me and put your suggestion. Thanks in advan...


SRF08 interface with I2C

Started by "nielsen.daniel" in 68HC127 years ago 1 reply

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried...

Hello, I am trying to interface an SRF08 Ultrasonic Sensor to my Dragon-12 board (I2C) via CodeWarrior and C language. I have tried and tried again but no succes...I am pretty sure I am writing to the SRF08 but I dont think I am reading correctly. Any help or suggestions or working code would be greatly appreciated. Thanks. This is my code. #include /* common defines and ma


MG9S12DG256 Resistor Question

Started by "Fry, Gordon" in 68HC127 years ago 7 replies

Hey all, As I'm working through my Introductory tutorial with this board, I'm having some trouble reaching a conclusion again. The...

Hey all, As I'm working through my Introductory tutorial with this board, I'm having some trouble reaching a conclusion again. The question that is stumping me on the tutorial is "What standard 5% value of resistor would you use to limit current?" First of all, what is meant by "5% value of resistor?" I guess the obvious answer would be: 1.) Find the value of the resistor 2.) Divide ...


MC9S12KG256 FLASH bank 1 erased, but not programming

Started by serg...@mail.ru in 68HC127 years ago 2 replies

Hi, I am working the MC9S12KG256 and writing flash driver to program CPU. Code executed from RAM. FLASH memory is fully unsecured, FPROT for...

Hi, I am working the MC9S12KG256 and writing flash driver to program CPU. Code executed from RAM. FLASH memory is fully unsecured, FPROT for bank 0 is $84, for bank 1 is $FF. Call to EraseFL (B=$00,A=$00) succesfully erases all FLASH sectors except protected. Call to WriteFL succesfully program only bank 0. For bank 1 it doesn't return any error on programming stage, but there is no da...


GPS, Stepper Motor : Urgent Help Required

Started by aruz...@live.com in 68HC127 years ago 6 replies

Hello all, I m very new to micro controllers. I have following micro controller 68HC12 :: MC9S12DG256B I have a GPS module and a Stepper...

Hello all, I m very new to micro controllers. I have following micro controller 68HC12 :: MC9S12DG256B I have a GPS module and a Stepper motor. Now i m confused where to connect my GPS Module and on which pins i need to connect my stepper motor. I want to connect my GPS Module on SPI ports but i m confused how to connect GPS. My GPS has four pins, Gnd, +5V, SO and Raw. Its of Parallax. Please ...


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