© 2008, renesas technology america, inc., all rights reserved 1 course introduction purpose this...
DESCRIPTION
© 2008, Renesas Technology America, Inc., All Rights Reserved 3 Serial I/O Function – Synchronous ConnectionTRANSCRIPT
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
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
3© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O Function – Synchronous Connection
4© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O – UARTx Synchronous Operation
5© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O Function – UARTx Asynchronous Data Rates
6© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O – UARTx Asynchronous Operation
7© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O Function – SSU Unit, Clock Synchronous Serial I/O Function
8© 2008, Renesas Technology America, Inc., All Rights Reserved
Serial I/O Function – SSU Unit, I2C Function
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
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
11© 2008, Renesas Technology America, Inc., All Rights Reserved
D/A Converter
12© 2008, Renesas Technology America, Inc., All Rights Reserved
Hardware LIN
13© 2008, Renesas Technology America, Inc., All Rights Reserved
Clock Circuit
BCLK is CPU Clock
14© 2008, Renesas Technology America, Inc., All Rights Reserved
Clock Circuit
On-chip oscillators
Sub-clock
Main clock
15© 2008, Renesas Technology America, Inc., All Rights Reserved
Clock Circuit
16© 2008, Renesas Technology America, Inc., All Rights Reserved
Clock Circuit
WAIT mode
STOP mode
17© 2008, Renesas Technology America, Inc., All Rights Reserved
Clock Circuit – State Transitions
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
19© 2008, Renesas Technology America, Inc., All Rights Reserved
Flash Memory Map
20© 2008, Renesas Technology America, Inc., All Rights Reserved
CPU Rewrite Mode
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.
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