Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | 68HC12 | xdp512 pwm issue

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

xdp512 pwm issue - Robert - Oct 21 10:57:10 2009

Hi,

I can usually muddle through on debugging issues but I can't figure this
one out and would appreciate it if anyone has seen something similar and
can offer some advice. In my test program the PWME bit I have set is
getting cleared unexpectedly when I call a sci routine to read an input
buffer. The PWME register is cleared after executing the first
instruction of the sci routine. I'm stumped. In the following NoICE
screen dumps you can see address 0x300 (PWME) change from 0x04 to 0x00
after the sci call. The only thing I can think of is that the page
switch is causing grief. My compiler is ICCV712.

pwm_err_0.jpg
pwm_err_1.jpg

-rob

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: xdp512 pwm issue - Robert - Oct 21 15:57:23 2009

Hi,

I can usually muddle through on debugging issues but I can't figure this
one out and would appreciate it if anyone has seen something similar and
can offer some advice. In my test program the PWME bit I have set is
getting cleared unexpectedly when I call a sci routine to read an input
buffer. The PWME register is cleared after executing the first
instruction of the sci routine. I'm stumped. In the following NoICE
screen dumps you can see address 0x300 (PWME) change from 0x04 to 0x00
after the sci call. The only thing I can think of is that the page
switch is causing grief. My compiler is ICCV712.

pwm_err_0.jpg
pwm_err_1.jpg

-rob

I solved this and removed the original post - I hoped the email packager
would ignore it since it was only up for 1/2 hour. As most bugs are in
retrospect it was a 'stupid' bug. I forgot that I had an ISR monitoring
the optical encoder for no movement and it disabled the pwm (I was
testing pwm independent of any motor feedback). As luck would have it,
the write to PWME coincided with a page switch.
[Non-text portions of this message have been removed]

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )