© 2008, renesas technology america, inc., all rights reserved 1 course introduction purpose this...

22
1 © 2008, Renesas Technology America, Inc., All Rights Reserved Course Introduction Purpose This course provides an introduction to the peripheral functions built into R8C/2x Series microcontrollers (MCUs). Objectives Learn about Serial I/O functions, programmable I/O ports, A/D and D/A converters, LIN Bus Understand basic clock configurations and low-power modes Discover facts about flash memory Content 22 pages (x) questions Learning Time 25 minutes

Upload: lee-mills

Post on 18-Jan-2018

216 views

Category:

Documents


0 download

DESCRIPTION

© 2008, Renesas Technology America, Inc., All Rights Reserved 3 Serial I/O Function – Synchronous Connection

TRANSCRIPT

Page 1: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

1© 2008, Renesas Technology America, Inc., All Rights Reserved

Course Introduction

Purpose This course provides an introduction to the peripheral functions built into R8C/2x

Series microcontrollers (MCUs).

Objectives Learn about Serial I/O functions, programmable I/O ports, A/D and D/A

converters, LIN Bus Understand basic clock configurations and low-power modes Discover facts about flash memory

Content 22 pages (x) questions

Learning Time 25 minutes

Page 2: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

2© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O Function

Multiple channels: UART0 and UART1 and UART2

Feature fully independent operation

UART0-2: Two modes Clock Asynchronous serial I/O mode (UART mode) Clock Synchronous serial I/O mode

SSU Function also available on some R8C devices. Provides either full I2C or SPI functionality

Page 3: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

3© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O Function – Synchronous Connection

Page 4: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

4© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O – UARTx Synchronous Operation

Page 5: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

5© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O Function – UARTx Asynchronous Data Rates

Page 6: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

6© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O – UARTx Asynchronous Operation

Page 7: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

7© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O Function – SSU Unit, Clock Synchronous Serial I/O Function

Page 8: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

8© 2008, Renesas Technology America, Inc., All Rights Reserved

Serial I/O Function – SSU Unit, I2C Function

Page 9: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

9© 2008, Renesas Technology America, Inc., All Rights Reserved

Programmable I/O Ports

71 I/O ports: P0, P1, P3, P5, P6, P7, P8 & P9

Input or Output

Each pin also is a peripheral-function

Drive circuits vary Set by Direction register

Programmable internal pull-up resistors

Eliminates external pull-up resistors

Direct LED drive capability 8 P2 lines sink 40mA (max

‘High Drive’)

Schmitt-trigger circuit on inputs Ensures good rise time into

MCU Not included on lines that are

an analog input function

Page 10: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

10© 2008, Renesas Technology America, Inc., All Rights Reserved

A/D Converter•Successive-approximation type

•12 channels

•8-bit/10-bit selectable

•One-shot mode

•One conversion performed

•Software start

•Interrupt can be generated at conversion end

•Repeat channel mode

•Start/Stop by setting conversion start bit

•No interrupt request generates at conversion complete

•Sweep channel mode

•Multiple channel groups available

•Software start

•Interrupt can be generated at conversion end

•Built-in Sample & Hold

Page 11: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

11© 2008, Renesas Technology America, Inc., All Rights Reserved

D/A Converter

Page 12: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

12© 2008, Renesas Technology America, Inc., All Rights Reserved

Hardware LIN

Page 13: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

13© 2008, Renesas Technology America, Inc., All Rights Reserved

Clock Circuit

BCLK is CPU Clock

Page 14: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

14© 2008, Renesas Technology America, Inc., All Rights Reserved

Clock Circuit

On-chip oscillators

Sub-clock

Main clock

Page 15: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

15© 2008, Renesas Technology America, Inc., All Rights Reserved

Clock Circuit

Page 16: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

16© 2008, Renesas Technology America, Inc., All Rights Reserved

Clock Circuit

WAIT mode

STOP mode

Page 17: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

17© 2008, Renesas Technology America, Inc., All Rights Reserved

Clock Circuit – State Transitions

Page 18: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

18© 2008, Renesas Technology America, Inc., All Rights Reserved

Flash Technology

Single-power-supply program and eraseIn-system programmable-even at low voltageBuilt-in flash sequences Reduces program overhead Controlled by software commands

Two programming modes Standard serial I/O CPU rewrite

Byte programmableBlock ErasureSerial ID code protection and parallel programmer block security implemented

Page 19: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

19© 2008, Renesas Technology America, Inc., All Rights Reserved

Flash Memory Map

Page 20: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

20© 2008, Renesas Technology America, Inc., All Rights Reserved

CPU Rewrite Mode

Page 21: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

21© 2008, Renesas Technology America, Inc., All Rights Reserved

Flash Security

Flash memory ID Code protection Unless the ID code sent by the external serial programmer matches the

one the user has programmed into the R8C MCU’s on-chip flash, erase/write operations cannot occur.

Page 22: © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions

22© 2008, Renesas Technology America, Inc., All Rights Reserved

Course Completion

Serial I/O function

Programmable I/O ports

A/D converter

Clock circuit

On-chip flash memory