Question: In this homework we will begin to study the data sheets for our chip (KL25Z) with the M0+ ARM core. Make sure you locate

In this homework we will begin to study the data sheets for our chip (KL25Z) with the M0+ ARM core. Make sure you locate the PDF's for both the Freescale (now NXP) and ARM files. 1. Start with the "KL25Z" manual in chapter 12 on the system integration module (SIM). The first step to take when configuring a output pin for GPIO is to turn on the clock to the module which by default is off when the chip is reset or first powered on. Look at the table in section 12.2 called "SIM memory map". This table gives the registers used by the SIM. Read through the various registers listed but then focus on the "system clock gating control registers" (SIM_SCGCx). Answer the following questions about these registers: a) How many SIM_SCGCX registers are there listed? b) What are their numbers? c) Now look at the section 12.2.8,9,10 and 11 and answer the following questions: d) What bit would you have to set in which SIM_SCGC4 register to enable the clock to the 12C module 0? e) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the TSI (Touch Sensing Input) module? f) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the PORTB module? g) How many clock enables are controlled by SIM_SCGC7?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
