Panasonic F77G, MN101C77C user manual Transfer Bit Count and First Transfer Bit at MSB first

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 397
Image 397

Chapter 12 Serial Interface 3

„First Transfer Bit Setup

The first bit to be transferred can be set by the SC3DIR flag of the SC3MD0 register. MSB first or LSB first can be selected.

„Transmit /Receive Data Buffer

Data register for transmission/reception is common. That is the transmit/receive shift register SC3TRB. The transmission data should be set to SC3TRB. The transfer clock outputs data by 1 bit in shift. The received data is stored to SC3TRB by 1 bit in shift.

„Transfer Bit Count and First Transfer Bit

At transmission, when the transfer bit count is 1 to 7 bits, data storage way to the transmit/receive shift register SC3TRB depends on the first transfer bit selection. When MSB is the first bit to be transferred, use the upper bits of SC3TRB for storage. In figure 12-3-1-1, if data "A" to "F" are stored to bp2 to bp7 of SC3TRB as the transfer bit count is 6 bits, data is transferred from "F" to "A". When LSB is the first bit to be transferred, use the lower bits of SC3TRB for storage. In figure 12-3-1-2, if data "A" to "F" are stored to bp0 to bp5 of SC3TRB, as the transfer bit count is 6 bits, data is transferred from "A" to "F".

SC3TRB

7

 

 

6

 

 

5

4

 

 

3

2

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F

 

 

E

 

 

D

 

 

C

 

 

B

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 12-3-1-1 Transfer Bit Count and First Transfer Bit (at MSB first)

SC3TRB

7

6

5

 

 

4

 

 

3

2

 

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F

 

 

E

 

 

D

 

 

C

 

 

B

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 12-3-1-2 Transfer Bit Count and First Transfer Bit (at LSB first)

„Receive Bit Count and First Transfer Bit

At reception, when the transfer bit count is 1 to 7 bits, data storage way to the transmit/receive shift register SC3TRB depends on the first transfer bit selection. When MSB is the first bit to be transferred, the lower bits of SC3TRB are used for storage. In figure 12-3-1-3, as the transfer bit count is 6 bits, data "A" to "F" are stored to bp0 to bp5 of SC3TRB, and they are transferred from "F" to "A". When LSB is the first bit to be transferred, use the upper bits of SC3TRB for storage. In figure 12-3-1-4, data "A" to "F" are stored to bp2 to bp7 of SC3TRB, as the transfer bit count is 6 bits, and they are transferred from "A" to "F".

SC3TRB

7

6

5

 

 

4

 

 

3

2

 

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F

 

 

E

 

 

D

 

 

C

 

 

B

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 12-3-1-3 Receive Bit Count and First Transfer Bit (at MSB first)

7

6

5

4

3

2

1

0

SC3TRB

F

E

D

C

B

A

Figure 12-3-1-4 Receive Bit Count and First Transfer Bit (at LSB first)

Operation XII - 11

Page 397
Image 397
Panasonic F77G Transfer Bit Count and First Transfer Bit at MSB first, „Receive Bit Count and First Transfer Bit