Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this homework we will begin to study the data sheets for our chip (KL25Z) with the MO+ ARM core. Make sure you locate the
In this homework we will begin to study the data sheets for our chip (KL25Z) with the MO+ ARM core. Make sure you locate the PDF's for both the Freescale (now NXP) and ARM files. 1. Start with the KL252" 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: How many SIM_SCGCx registers are there listed? What are their numbers? Now look at the section 12.2.8,9,10 and 11 and answer the following questions: What bit would you have to set in which SIM_SCGC4 register to enable the clock to the 12C module 0? a) b) c) d) e) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the TSI (Touch f) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the PORTB g) How many clock enables are controlled by SIM_SCGC7? Sensing Input) module? module? In this homework we will begin to study the data sheets for our chip (KL25Z) with the MO+ ARM core. Make sure you locate the PDF's for both the Freescale (now NXP) and ARM files. 1. Start with the KL252" 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: How many SIM_SCGCx registers are there listed? What are their numbers? Now look at the section 12.2.8,9,10 and 11 and answer the following questions: What bit would you have to set in which SIM_SCGC4 register to enable the clock to the 12C module 0? a) b) c) d) e) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the TSI (Touch f) What bit would you have to set in which SIM_SCGC5 register to enable the clock to the PORTB g) How many clock enables are controlled by SIM_SCGC7? Sensing Input) module? module
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started