System Control & Clock UNIT 08 로봇 SW 교육원 조용수. 학습 목표 System Control Register System Clock CMSIS CMSIS Project 2.

Slides:



Advertisements
Similar presentations
UNIT 13 Interrupt 로봇 SW 교육원 조용수.
Advertisements

UNIT 10 GPIO Test 로봇 SW 교육원 조용수.
Interrupt Test UNIT 14 로봇 SW 교육원 조용수. 학습 목표 Button Interrupt Uart Interrupt 2.
UNIT 04 Nuvoton MCU 로봇 SW 교육원 조용수.
AD Converter UNIT 19 로봇 SW 교육원 조용수. 학습 목표 AD Converter AD Converter Register 2.
UNIT 20 AD Converter Test 로봇 SW 교육원 조용수.
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
ATtiny2313 Fuse Programming CS-423 Dick Steflik. Whats a Fuse Fuses are used to hold important configuration information for the MPU Not really a fuse,
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Phase Locked Loop Design Matt Knoll Engineering 315.
Lecture 21: LM3S9B96 Microcontroller – System Control.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The 8051 Microcontroller architecture
Lecture – 6 PIC18 Family Hardware Specifications 1.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
System Clock, Crossbar and GPIO
松翰科技股份有限公司 Page 1 SONiX TECHNOLOGY CO,. LTD 松翰科技股份有限公司 Page 1 SONiX TECHNOLOGY CO., LTD. SONIX 8-bit Micro Controller September 2004.
UART Test UNIT 14 로봇 SW 교육원 조용수. 학습 목표 UART Init UART Send UART Receive UART -> Debugging Console Up/Down Game 제작 2.
Lecture 9. - Synchronous Devices require a timing signal. Clock generated Interval Timer Microprocessor Interval Timer Clk PCLK = MHz PCLK (for.
ADAM46P20 Simulator V User’s Manual ETA Chips, Co., Kr., 2011 By W.S.YOU.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
System Clocks.
LPC2148 Programming Using BLUEBOARD
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
PWM UNIT 17 로봇 SW 교육원 조용수. 학습 목표 PWM PWM Register 2.
1 LHO 13 The 8051CF020 and the University Daughter Card.
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
UNIT 29 MCU Project 로봇 SW 교육원 조용수.
CHAPTER HARDWARE CONNECTION. Pin Description 8051 family members ◦ e.g., 8751, 89C51, 89C52, DS89C4x0) ◦ Have 40 pins dedicated for various functions.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
MCS51 - part 2. Lecture 2 2/17 MCS51 functioning Clock generator Machine & instruction cycles Paralell ports Reset.
㈜인셈 in semiconductor Inc. PM16 Module User’s Guide 1. PM16 MODULE 의 특징 - dsPIC33F, PIC24H, PIC24F 디바이스 - DC 5V 전원 사용 (MCP V LDO 내장 ) - ICSP 지원 (ICD2,
UNIT 11 UART 로봇 SW 교육원 조용수.
SPI Test UNIT 26 로봇 SW 교육원 조용수. 학습 목표 SPI Sample SPI Read/Write Function SPI loop back Test MPL115A1 Pressure and Temperature Sensor 2.
Saxion University of Applied Sciences Advanced Microcontrollers A practical approach.
Real Time Interrupts Section Real-Time Interrupt (RTI) Most operating systems (OS) require an interrupt every T seconds by the RTI RTI interrupts.
Jump, Loop, and Call Instructions
The Silicon Laboratories C8051F020
PWM Test 2 UNIT 20 로봇 SW 교육원 조용수. 학습 목표 PWM Servo 제어 2.
Timer & Watch Dog Test UNIT 16 로봇 SW 교육원 조용수. 학습 목표 Timer Init Timer Delay Test Timer Interrupt Test –One Shot Mode –Periodic Mode Watch Dog Test 시계 만들어.
Components of a typical full-featured microcontroller.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
One more PIC18F252 example and revision for exam B222L Branislav Vuksanovic, UoP, ECE.
Microprocessors A practical approach..
STM32 및 개발보드 소개 Jang Hyunsung Embedded Systems Lab. Dept. of CSE, PNU
16F877A.
Outline Introduction to NuMaker TRIO Programming environment setup
Introduction In this lab, we will learn
CC2430 module Jinho Son Real-Time System Lab.
HCS12 Exceptions Maskable Interrupts
Cortex-M0 MCU Clocks & Pins
Refer to Chapter 5 in the reference book
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Low Jitter PLL clock frequency multiplier
The Arduino Microcontroller: Atmel AVR Atmega 328
INTEL
전자의료시스템 및 실습 System Configuration/Interrupt
UNIT 24 I2C Test 로봇 SW 교육원 조용수.
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
Wireless Embedded Systems
CHAPTER HARDWARE CONNECTION.
Prof Afonso Ferreira Miguel
Presentation transcript:

System Control & Clock UNIT 08 로봇 SW 교육원 조용수

학습 목표 System Control Register System Clock CMSIS CMSIS Project 2

System Control Register Reset, System Timer, Interrupt 등을 관리 전반적인 MCU 동작에 영향을 미치는 작업으로, 초 기 Power Up 시점에서 관련 Register 설정이 필요 3

System Control Register 4 PDID : MCU ID

System Control Register 5 RSTSRC : System Reset Source Register

System Control Register 6 IPRSTC1 : Peripheral Reset Control Register 1

System Control Register 7 IPRSTC2 : Peripheral Reset Control Register 2

System Control Register 8 Brown-Out Detector – 전원 전압이 일정값 이하로 저하되는 것을 감지 BODCR : Brown-Out Detector Control Register

System Control Register 9 MCU 의 경우 제한된 Pin 으로 인하여 여러가지 기 능이 하나의 핀 Out 에 공유된다. Px_MFP : Multi Function and Input Type Control

System Control Register 10 P0_MFP : Multi Function and Input Type Control

System Control Register Lock & Unlock – 외부 Noise 및 시스템 오 동작 으로 인한 전체 시스템의 영향을 막기 위한 작업 –MCU 의 중요한 Register 를 일정 형식의 Unlock 루틴을 거쳐야 Write 가능 11

System Control Register Lock & Unlock 12

System Control Register Lock & Unlock 13

System Control Register Lock & Unlock 14

System Control Register C 15

Clock MCU 동작을 위한 기본 단위 모든 내부 동작은 Clock 과 동기화 하여 진행된다. 16

Clock X-tal – 주변에 발진에 필요한 회로 구성필요 – 가격 저렴 Osc – 발진 회로 내장 – 정확한 주파수 출력 17

Clock 4 가지의 Clock Source 제공 4~24 MHz external high speed crystal oscillator (HXT) Programmable PLL output clock frequency (PLL source can be selected from external 4~24 MHz external high speed crystal (HXT) or MHz internal high speed oscillator (HIRC)) (PLL FOUT) MHz internal high speed RC oscillator (HIRC) 10 kHz internal low speed RC oscillator (LIRC) 18

Clock 선택된 Clock 은 각 I/O 디바이스의 Clock 으로 공급 19

Clock Control Register 20

Clock Control Register 21 PWRCON

Clock Control Register 22 AHBCLK

Clock Control Register 23 APBCLK

Clock Control Register 24 CLKSTATUS

Clock Control Register 25 CLKSEL0

Clock Control Register 26 CLKSEL1

Clock Control Register 27 CLKSEL2

Clock Control Register 28 CLKDIV

Clock Control Register 29 PLLCON

Clock Control Register 30 PLLCON

System Init 31 #define GCR_BA 0x #define CLK_BA 0x #define GPIO_BA 0x void UnlockReg() { *((volatile unsigned int *)(GCR_BA + 0x100))=0x59; *((volatile unsigned int *)(GCR_BA + 0x100))=0x16; *((volatile unsigned int *)(GCR_BA + 0x100))=0x88; } void LockReg() { *((volatile unsigned int *)(GCR_BA + 0x100))=0x01; } void SystemInit() { int count = ; UnlockReg() ; *((volatile unsigned int *)(CLK_BA + 0x00)) |=0x04; while(count--); LockReg() ; }