Panasonic F77G User Manual page 411

Microcomputer mn101c series
Table of Contents

Advertisement

Setup Procedure
(6) Select the transfer bit count.
SC3MD0 (x'3FA8')
bp2-0 : SC3LNG2-0 = 111
(7) Select the start condition.
SC3MD0 (x'3FA8')
bp3 : SC3STE = 1
(8) Select the first transfer bit.
SC3MD0 (x'3FA8')
bp4 : SC3DIR = 0
(9) Select the transfer edge.
SC3MD0 (x'3FA8')
bp6 : SC3CE1 = 1
(10) Select the transfer clock.
SC3MD1 (x'3FA9')
bp2 : SC3MST = 1
(11) Control the pin function.
SC3MD1 (x'3FA9')
bp4 : SC3SBOS = 1
bp5 : SC3SBIS = 1
bp6 : SC3SBTS = 1
bp7 : SC3IOM = 0
(12) Set the other mode register.
SC3CTR (x'3FAA')
bp7-6, 3, 1-0
(13) Set the interrupt level.
SC3ICR (x'3FF9')
bp7-6 : SC3LV1-0 = 10
(14) Enable the interrupt.
SC3ICR (x'3FF9')
bp1 : SC3IE = 1
Description
(6)
Set the SC3LNG2-0 flag of the serial 3 mode
register (SC3MD0) to "111" to set the transfer
bit count to 8 bits.
(7)
Set the SC3STE flag of the SC3MD0 register to
"1" to enable start condition.
(8)
Set the SC3DIR flag of the SC3MD0 register to "0"
to set MSB as the first bit to be transferred.
(9)
Set the SC3CE1 flag of the SC3MD0 register to
"1" to set the transmission data output edge to
"rising", and the received data input edge to
"falling".
(10) Set the SC3MST flag of the SC3MD1 register to
"1" to select clock master (internal clock).
(11) Set the SC3SBOS, SC3SBIS, SC3SBTS flags of
the SC3MD1 register to "1" to set the SBO3 pin to
serial data output, the SBI3 pin to serial data
input, and the SBT3 pin to serial clock I/O. Set the
SC3IOM flag to "0" to set "serial data input from
the SBI3 pin".
(12) At IIC communication, that flag should be set. At
synchronous serial communication, no need to be
set.
(13) Set the interrupt level by the SCLV1-0 flag of the
serial 3 interrupt control register (SC3ICR).
(14) Enable the interrupt to the SC3IE flag of the
SC3ICR register. If the interrupt request flag
(SC3IR of the SC3ICR register) is already set,
clear SC3IR before the interrupt is enabled.
[
Chapter 3 3-1-4. Interrupt Flag Setup ]
Chapter 12
Serial Interface 3
XII - 25
Operation

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents