How to configure ECT in capture mode?

Started by Sim IPS in 68HC129 years ago

Hi, How to configure ECT for MC9S12DJ256B in capture mode? I am using external uart (XR16C854)for communication with this...

Hi, How to configure ECT for MC9S12DJ256B in capture mode? I am using external uart (XR16C854)for communication with this microcontroller.XR16C854 have a special feature to know the baudrate of channels by using ECT.If anyone know its details,please share with me. (I have ECT datasheets (S12ECT16B8CV1.pdf) but there is no explanation abt programming.) thanks in advance Simi _ _ _ ...


HCS12 + ECT

Started by M.B. in 68HC1214 years ago 2 replies

Where I can find any sample code for simple use ECT ? I have to count short time, but I don't know how use this timer (in ...

Where I can find any sample code for simple use ECT ? I have to count short time, but I don't know how use this timer (in interrupt). regards Mariusz


Clocks of the ECT module

Started by panikjahn in 68HC1212 years ago 4 replies

Hello Everybody! I have a MC9S12DG256 controller and I'm trying to setup the ECT module. I studied the manual and now, I'm a little bit...

Hello Everybody! I have a MC9S12DG256 controller and I'm trying to setup the ECT module. I studied the manual and now, I'm a little bit confused: I've read the S12ECT16B8CV1.pdf manual. I see the block diagram of the timer module on page 47. The free running timer block gets the TIMCLK. The Prescaler gets the busclock and generates PCLK. Where


Input Capture register access in ECT

Started by teleko7 in 68HC1214 years ago

Hi. I?m working with a 9s12dp256 and trying to build in a polaroid?s ultrasonic transducer, working with the ECT module. But...

Hi. I?m working with a 9s12dp256 and trying to build in a polaroid?s ultrasonic transducer, working with the ECT module. But when I try to copy Input Capture data from a IC register to an "int" variable, always get 0x00. I know it must be as easy as it seems to be


How to use HC12's ECT as a general purpose Timer?

Started by Uwe Arends in 68HC1212 years ago 25 replies

Amr, > I am a new member in this group. I hope to gain new knowledge and > share my konwledge with you. > > I need to implement...

Amr, > I am a new member in this group. I hope to gain new knowledge and > share my konwledge with you. > > I need to implement a general purpose timer on HC12 microcontroller > and as U know it is not provided in HC12. ECT, Enhanced Capture > Timer, is the only thing that can be used for this purpose. not true


ECT - Pulse accu / Holding register 'double buffer mechanisms'

Started by christian_theiss_2003 in 68HC1212 years ago 5 replies

Hey you guys, ...does anybody have an idea how the 'holding register'(H.R.) mechanism is working in the right way for...

Hey you guys, ...does anybody have an idea how the 'holding register'(H.R.) mechanism is working in the right way for configuring the ECT timer subsystem being used as pulse accumulator("incremental encoder accumulator")? There are 2 general op


Measuring PWM /w input capture ECT

Started by jeffguilfoil in 68HC1214 years ago 20 replies

Hi, I am trying to do some basic PWM input using input capture with the ECT. I do not understand why it is not working. I've got...

Hi, I am trying to do some basic PWM input using input capture with the ECT. I do not understand why it is not working. I've got a HCS12 (9S12DP256). Here's some code: PWME EQU $A0 PWMPOL EQU $A1 PWMCLK EQU $A2 PWMPRCLK EQU $A3 PWMCAE EQU $A4 PW


Re: Digest Number 492

Started by Lewis, Bob in 68HC1214 years ago

Julian, I am not sure that we have the same problem but here is what I experienced that seems similar to what you are doing. ...

Julian, I am not sure that we have the same problem but here is what I experienced that seems similar to what you are doing. I was using the ECT for double edge detection and interrupt. That is: -I used IC0(input capture 0) to detect a rising edge and latch the the ti


S12DP256 and the ECT

Started by jb_tempe_jb in 68HC1213 years ago 3 replies

Hi, I'm attempting to write some code to use the modulus down counter for the DP256. No interrupts, simple gadfly loops looking...

Hi, I'm attempting to write some code to use the modulus down counter for the DP256. No interrupts, simple gadfly loops looking for the underflow flag. Oh, yeah, I'm using code warrior 3 and writing the program in C. My problem is that I can't write anythin


ECT Input for hcs12dp256

Started by punning_clan in 68HC1214 years ago 1 reply

Hi everyone. I am trying to write some simple polling code to read a PWM signal on any of the PT0 to PT7 Input capture lines on...

Hi everyone. I am trying to write some simple polling code to read a PWM signal on any of the PT0 to PT7 Input capture lines on my hcs12dp256. I have searched this archive and have tried a few suggestions but to no avail. Does anyone have some C or asm code (preferably


Re: ECT - Pulse accu / Holding register - accessing ICSYS once in a session!

Started by Daniel White in 68HC1212 years ago

...where was this list I saw on this hcs12 mailing list for registers only to be written one time with 1 compound init value, not...

...where was this list I saw on this hcs12 mailing list for registers only to be written one time with 1 compound init value, not multiple accessing them by bit ORing them...? Christian, This was the list that Oliver Betz sent a while back. I don't think anyone ad


XGATE??

Started by Adrian Vos in 68HC1211 years ago 21 replies

Hi All, I am in need of more output compare style ECT outputs than the standard S12 supports. I was thinking that I could achieve this by...

Hi All, I am in need of more output compare style ECT outputs than the standard S12 supports. I was thinking that I could achieve this by dedicating one standard OC channel to do all the timer work and generate interrupts, and then using a clever software approach with linked lists of pending timer events with a pointer to a general purpose output that it would perform the timer event


Need help with modulus down counter

Started by Daniel White in 68HC1213 years ago 1 reply

Anyone out there that has experience with the modulus down counter on the S12? Section 3.3.29 of the S12 ECT block user guide...

Anyone out there that has experience with the modulus down counter on the S12? Section 3.3.29 of the S12 ECT block user guide (S12ECT16B8V1.pdf) describes the MCCNT register as having a load register. This description says that, if the counter is enabled (MODMC=1), writing to


Keypad is fine LCD still trouble. I have more details.

Started by cubddh2003 in 68HC1213 years ago 3 replies

For my LCD, I tie the contrast brightness pin 3 to ground. Im pretty sure this is fine. I know all my signals are connected...

For my LCD, I tie the contrast brightness pin 3 to ground. Im pretty sure this is fine. I know all my signals are connected properly. When i write a character to the screen, I get a dark block. IF i write 2 characters i get 2 dark blocks. ect. It is 2x16 and i always have 1 line


How to configure Enhanced Capture Timer in capture mode?

Started by Sim IPS in 68HC129 years ago 4 replies

Hi, I am using external uart (XR16C854)for communication with MC9S12DJ256B . XR16C854 have a special feature to know the baudrate of...

Hi, I am using external uart (XR16C854)for communication with MC9S12DJ256B . XR16C854 have a special feature to know the baudrate of channels by using ECT in capture mode.How to configure Enhanced Capture Timer for MC9S12DJ256B in capture mode?If anyone know its details,please share with me. thanks in advance Simi _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...


32 bit Interrupt timer on PT0, 9s12dg128

Started by blewis999 in 68HC1211 years ago 4 replies

I have a working 16 bit timer but now find that at low freq's we are getting overflow so I need to go to a 32 bit timer interrupt driven. Of...

I have a working 16 bit timer but now find that at low freq's we are getting overflow so I need to go to a 32 bit timer interrupt driven. Of course the ECT is 16 bit, so is this as simple as implementing an interrupt on the timer overflow and adding 10000 to a time count each time and then finally adding the capture timer to the 32 bit count on the final edge? I have to also drive a p