PDA

View Full Version : Should SIM_SCGC7_DMA be changed to 0x00000002?



danieljohansson
12-07-2013, 11:02 PM
I have a question about SIM_SCGC7_DMA defined in mk20dx128.h

Section 12.2.11 of the manual says the DMA Clock Gate Control is set in bit number two of the SIM_SCGC7 register. Currently SIM_SCGC7_DMA is defined as 0x00000020. I wonder if that is a mistake and if it shouldn't be changed to 0x00000002?

duff
12-14-2013, 03:31 PM
I have a question about SIM_SCGC7_DMA defined in mk20dx128.h

Section 12.2.11 of the manual says the DMA Clock Gate Control is set in bit number two of the SIM_SCGC7 register. Currently SIM_SCGC7_DMA is defined as 0x00000020. I wonder if that is a mistake and if it shouldn't be changed to 0x00000002?

I think your right, the address should be 0x00000002, though DMA seems to work even if I don't start the DMA clock, weird!

danieljohansson
12-14-2013, 07:06 PM
DMA seems to work even if I don't start the DMA clock, weird!

Yeah, it's enabled by default. Have a look at the reset line for field 1 in section 12.2.11 of the manual. At reset that field is set to 1 ("Clock enabled").

PaulStoffregen
12-23-2013, 02:59 PM
I updated SIM_SCGC7_DMA in 1.18-rc1.

duff
12-23-2013, 10:43 PM
I updated SIM_SCGC7_DMA in 1.18-rc1.

cool thanks! :D