Sampling a voice signal?

Started by Mohammed El Korek in 68HC1211 years ago 2 replies

Hey Guyz, One of my friends at college wants to build a human voice encoder/decoder using two minidragon+ 9S12DP256B boards........ I am...

Hey Guyz, One of my friends at college wants to build a human voice encoder/decoder using two minidragon+ 9S12DP256B boards........ I am just thinking out load over here.... does 68HC12 support the encoding and decoding of an analog signal at the rate of 44 kHz (according to Nyquist's theorem)...???? I was thinking of an RTI-driven application that interrupts an incoming ATD singal at c...


PortAD interrupts

Started by the_oog6789 in 68HC1213 years ago 3 replies

Hi All!! Having some trouble getting an rising edge interrupt to trigger from port AD. I've copied the setup code and a bit...

Hi All!! Having some trouble getting an rising edge interrupt to trigger from port AD. I've copied the setup code and a bit of the interrupt function below. This function is called when interrupt vector 39 ((40th)counting from the top down to port AD) is triggered. A


conflicting interrupts

Started by Bob White in 68HC1215 years ago 3 replies

I am reading a rotating gear with a reluctance sensor, zero-crossing detecting and triggering the Timer 0 input capture interrupt...

I am reading a rotating gear with a reluctance sensor, zero-crossing detecting and triggering the Timer 0 input capture interrupt (TC0) with the edge detector's falling edge. Works fine and I count the pulses and use a switch statement to perform processes at various gear positions.


barcode decoding

Started by in 68HC1213 years ago

can anybody help me about barcode decoding( EAN-13 )? This is a term project and the deadline is soon. i have a dragon12 board with 68hc12, and...

can anybody help me about barcode decoding( EAN-13 )? This is a term project and the deadline is soon. i have a dragon12 board with 68hc12, and an epson pen barcode reader. The barcode reader is so old that i can not find any information about it, i dont know its data format. i got stucked with this work. i also dont know about interrupts. the amount of bits it reads changes with the speed yo


NEWBIE Questions Interrupts and STRANGE responses

Started by oulaxer11 in 68HC1214 years ago 3 replies

Okay - I hope this works... hello all newbie here trying to write some code to generate an output via Port M (right now LEDs) that...

Okay - I hope this works... hello all newbie here trying to write some code to generate an output via Port M (right now LEDs) that will stop once a key is pressed on Port H... problems - The zero Pin of Port M ( Pin 0) glows kinda dim unless the Pin 1 pulls it up or down??


interrupt enable and disable

Started by Anonymous in 68HC1214 years ago 1 reply

hi all, i want to write some value to a control register. should i disable and then write and then enable the maskable...

hi all, i want to write some value to a control register. should i disable and then write and then enable the maskable interrupts? i am writing to SCICR2 register and i guess i have to do like this. set I bit in CCR ; write to SCICR2; clear I b


Modulus down counter not working

Started by jeff...@bendnet.com in 68HC126 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...


interrupt overhead in EVB mode (9S12DP256)

Started by ctrobot28 in 68HC1215 years ago 3 replies

My little program runs from ram, the board is in EVB mode (dbug12 in flash). It uses RTI interrupts, approx. as follows: ...

My little program runs from ram, the board is in EVB mode (dbug12 in flash). It uses RTI interrupts, approx. as follows: volatile int foo = 0; rti_interrupt_handler() { foo = 100; } test_func() { enable_rti_interrupts(); while (foo == 0); // spin


Generating Clock using HCS12 timers

Started by Scott in 68HC1213 years ago 2 replies

Hi, I would like to generate a clock using the timer interrupts on the HCS12E128. My clock output is on portb. My...

Hi, I would like to generate a clock using the timer interrupts on the HCS12E128. My clock output is on portb. My configuration is below. I would like to use the timer overflow interrupt to toggle the output on portb for my clock. Whenever I enable the timer (TSCR1 =


why no d60 timer interrupts?

Started by Wade A Smith in 68HC1214 years ago 8 replies

I am working with a 912D60 board from AxMan.com RAM starts at $0000 I/O Regis start at $0800 EEPROM starts at $0C00 I...

I am working with a 912D60 board from AxMan.com RAM starts at $0000 I/O Regis start at $0800 EEPROM starts at $0C00 I load a small "hello world" type of assembly program starting at $1000. The timers work OK. They are connected to PortT toggling LEDs.


trouble with S12XS SCI controller

Started by ben_smida_hamdi in 68HC129 years ago 3 replies

i'm developing an uart driver based on interrupts. i've realized that when executing the ISr software failed to reset TDRE Flag.i made sure...

i'm developing an uart driver based on interrupts. i've realized that when executing the ISr software failed to reset TDRE Flag.i made sure tha i've followed all steps listed in the datasheet to do so which are: 1-reading the SCI Status Register. 2-Writing to the SCI Data Low register. but the ISR Continue to go in Loop. i wish tha anyone could help me figure this out. --------------...


Interrupt Timers Vs. Software Timers Vs. External Clocks

Started by kuinton in 68HC1214 years ago 1 reply

Hi everyone, I'm trying to limit the sampling time for my project. I'm going to gather data for only 30 seconds. I was told...

Hi everyone, I'm trying to limit the sampling time for my project. I'm going to gather data for only 30 seconds. I was told that the software timers using C would not work. Does anyone here have any knowledge on the topic of Interrupts, Interrupt timers, or External clocks?


Output compare Output action

Started by erniebarreyro in 68HC1214 years ago

I am trying to control a wired or output with PTO that is set when timer interrupts and I am having problem. The following...

I am trying to control a wired or output with PTO that is set when timer interrupts and I am having problem. The following works. PT0 is forced low and when TC4 = TCNT, then PTO goes high. T0IOS |= CF4; //enable output compare T0FLG1 = CF4; //clear flag


multiple interrupts

Started by Stewart Prince in 68HC1214 years ago 23 replies

We're using multiple input captures and output compares on the 6812. As long as there are no output compares, the input capture...

We're using multiple input captures and output compares on the 6812. As long as there are no output compares, the input capture works perfectly, but when a capture and compare interrupt occur at the same time, or when an interrupt is being serviced and another interrupt occurs, the inpu


Forget interrupt?

Started by Pascal DEREX in 68HC1211 years ago 6 replies

Hello, I have an interrupt compare function on PT5 on 9s12a64. Here is the code : void interrupt 13 it_OC5(void) { TFLG1=0x20; ...

Hello, I have an interrupt compare function on PT5 on 9s12a64. Here is the code : void interrupt 13 it_OC5(void) { TFLG1=0x20; TC5=TC5+time; do something... } if time=30 then all the interrupts occur. But if time =15 sometimes there is no interrupt between 1 second!! I specify that 60=1ms How it could be possible? Could the micro forget interrupt? Thank you for help R...


'S12DP256 - errata for all 0K79X and 1K79X masks

Started by bruce_at_pocket_neurobics in 68HC1216 years ago 1 reply

(I believe mask 1K79X is the latest version.) This bug's worth some advertising I think... Quote from errata sheet: SCI...

(I believe mask 1K79X is the latest version.) This bug's worth some advertising I think... Quote from errata sheet: SCI INTERRUPT ASSERTS ONLY IF AN ODD NUMBER OF INTERRUPTS ACTIVE MUCTS00510 The interrupt of the SCI is only asserted if an odd number of inte


Reg problem with Input capture interrupts

Started by saravanan in 68HC1210 years ago 5 replies

Dear all, I am using HCS12X evaluation board.I wrote a simple code to compute the wheel speed using the input capture...

Dear all, I am using HCS12X evaluation board.I wrote a simple code to compute the wheel speed using the input capture timer. I have connected the wheel speed outputs to the channels IOC0 - IOC3. Now the wheels are moving at a constant pace. The problem what I am facing is, as TIE(C0I) has higher priority than the remaining three(C1I,C2I,C3I), channel ...


PEmicro USB HCS08 / HCS12 Multilink - help needed

Started by Benny in 68HC1210 years ago 11 replies

Hi all I am using the PEmicro USB HCS08 / HCS12 Multilink unit for programming / debugging. The unit is working good with simple projects,...

Hi all I am using the PEmicro USB HCS08 / HCS12 Multilink unit for programming / debugging. The unit is working good with simple projects, but when I am trying to run the CW debugger using this unit connected to the target board, and the project includes several active interrupts like: SCI + 2x PWM , the device lose synchronization and I can't debug Did anyone knows how to handle it...


counting PWM clock cycles.

Started by dishathomeserver in 68HC1214 years ago 1 reply

Hello group I am attempting to count clock cycles sent from DP256B PWM to slave device. slave device talks to DP256B via SCI at a...

Hello group I am attempting to count clock cycles sent from DP256B PWM to slave device. slave device talks to DP256B via SCI at a rate of CLK/32 = baud so Im wondering how this can be done so I can still handle SCI RX interrupts. Justin


Generating square wave using output compare

Started by ErnieBarreyro in 68HC1214 years ago 1 reply

I am trying to generate a 10 KHZ square wave using the timers' output compare on 9s12e128. Is there a way such that you only load...

I am trying to generate a 10 KHZ square wave using the timers' output compare on 9s12e128. Is there a way such that you only load the TCn registers once and then let it run? Or do you have to use interrupts or polling to find out if output compare ocurred then re-load the TCn register.