
340
CHAPTER 15 UART
❍
Initialization
The setting values of each control register in synchronous mode are shown below.
[Mode register (SMR0-3)]
-
MD1, MD0: 10
B
-
CS2, CS1, CS0: Specify the clock selector clock input.
-
SCKE: 1 for the dedicated baud-rate generator or internal timer, and 0 for the clock output
and external clock (clock input)
-
SOE: 1 for sending and 0 for receive-only
[Control register (SCR0-3)]
-
PEN: 0
-
P, SBL, and A/D: These bits have no effect.
-
CL: 1 (8-bit data)
-
REC: 0 (To initialize, the error flag is cleared.)
-
RXE, TXE: At least one of these must be 1.
[Status register (SSR0-3)]
-
RIE: 1 for using interrupts and 0 for not using interrupts
-
TIE: 0
❍
Start of communication
Communication starts by writing to the output-data register (SODR0-3). Note that this applies
even to communication for receiving: In this case, dummy data must be written to SODR0-3.
❍
End of communication
When sending or receiving of the data for one frame terminates, the RDRF flag of the status
register (SSR0-3) is set to 1. For receiving, check the overrun error flag bit (SSR0-3: ORE) and
determine whether communication was performed normally.
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......