Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | Usage of COMPARE_AND_LOAG_REGISTER in 827 Quadtimer for PWM configuration

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Usage of COMPARE_AND_LOAG_REGISTER in 827 Quadtimer for PWM configuration - Nitin Madhukar Yewale - Mar 25 13:12:00 2003



Hi,

I have configured one quad timer in variable frequency PWM mode
and would like to swap it's on/off time after some time.

Please find attached application 56F827 in which I am using two quad
timers to simulate required functionality. i.e Change the on/off time by
using COMPARE_AND_LOAD_REGISTER of quad timer.

BSP_DEVICE_NAME_QUAD_TIMER_A_1 timer is a free running timer.
BSP_DEVICE_NAME_QUAD_TIMER_A_2 timer is configured such that after
specified interval it will swap on and off time of
BSP_DEVICE_NAME_QUAD_TIMER_A_1

I have observed that in Callback of BSP_DEVICE_NAME_QUAD_TIMER_A_2
[CallbackOnCompare2] it will swap the on off time but when it loads Off
time into QT_LOAD_COMPARATOR_LOAD_REG2 register and on time
QT_LOAD_COMPARATOR_LOAD_REG1 the on/off time which I am getting on the
CRO are not the reversed. [Else part in the callback]

Could any one please tell me how to use COMPARE_AND_LOAD_REGISTER usage?
At that time shall I stop the timer?

According to the documentation in User manaul of 826/7 CMPLD1 and CMPLD2
are special registers provided in 827 so that we can load on/off time
for next cycle using them and after completeing the current cycle 827
will load CMP1 and CMP2 values from CMPLD1 and CMPLD2. [Page No 356 Last
sentence of 13.6.12]

Thanks and Regards,
Nitin


Attachment (not stored)
TestQuad_OnOff.zip
Type: application/x-zip-compressed



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