This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VE-Q1: MCU_TIMER1生成500K方波

Part Number: TDA4VE-Q1


由于外设的需要,且硬件选用的引脚B26,此引脚没有非EHPWM引脚,需要将发出500K方波(50%占空比)

#gpiomux
devmem2 0x4301C0AC w 0x00010004

#. CTRLMMR_MCU_TIMER1_CLKSEL clk source
devmem2 0x40F08104 w 0x0

#iomux
devmem2 0x40F04204 w 0x00000001


#reset
devmem2 0x40410010 w 0x1

#interupt
#set
devmem2 0x4041002c w 0x7



#time mode
#--------------------
devmem2 0x40410038 w 0x1842

#peroid
devmem2 0x40410040 w 0xff0

#compare
devmem2 0x4041004c w 0x555

#couter
devmem2 0x4041003c w 0x0
devmem2 0x4041003c

devmem2 0x40410044 w 0xff0


devmem2 0x40410038 w 0x1843

引脚没有输出,一直是低电平