Panasonic MN101C77C, F77G user manual XI 26 Operation

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 352
Image 352

Chapter 11 Serial Interface 0, 1

„Received Buffer Empty Flag

When the reception is completed (the last data reception edge of the clock is input), data is stored to RXBUFn from the internal shift register, automatically. If data is stored to the shift register RXBUFn, the received buffer empty flag SCnREMP of the SCnMD3 register is set to "1". That indicates that the received data is going to be read. SCnREMP is cleared to "0" by reading out the data of RXBUFn.

„Transmission Buffer Empty Flag

If any data is set to TXBUFn again, during communication (after setting data to TXBUFn before generat- ing the communication complete interrupt SCnIRQ), the transmission buffer empty flag SCnTEMP of the SCnMD3 register is set to "1". That indicates that the next transmission data is going to load. Data is loaded to the inside shift register from TXBUFn by generation of SCnTIRQ, and the next transfer is started as SCnTEMP is cleared to "0".

„Overrun Error and Error Monitor Flag

If, after reception complete, the next data has been already received before reading out the data of the received data buffer RXBUFn, overrun error is generated and the SCnORE flag of the SCnMD3 register is set to "1". And at the same time, the error monitor flag SCnERE is set to indicate that something wrong on reception. The SCnORE flag holds the status unless the data of RXBUFn is read out. SCnERE is cleared as SCnORE flag is cleared. These error flags are nothing to do with communication operation.

„Reception BUSY Flag

When any data is set to TXBUFn or when the SCnSBIS flag of the SCnMD1 register is "1" as start condition is input, the SCnRBSY flag of the SCnMD3 register is set to "1". And, on the generation of the communication complete interrupt SCnTIRQ, the flag is cleared to "0". And, during continuous commu- nication, the SCnRBSY falg is always set. If the transmission buffer empty flag SCnTEMP is cleared to "0" as the communication complete interrupt SCnTIRQ is generated, SCnRBSY is cleared to "0". If the SCnSBIS flag is set to "0" during communication, the SCnRBSY flag is cleared to "0".

„Transmission BUSY Flag

When any data is set to TXBUFn or when the SCnSBOS flag of the SCnMD1 register is "1" as start condition is input, the SCnTBSY flag of the SCnMD3 register is set to "1". And, on the generation of the communication complete interrupt SCnTIRQ, the flag is cleared to "0". And, during continuous commu- nication, the SCnTBSY flag is always set. If the transmission buffer empty flag SCnTEMP is cleared to "0" as the communication complete interrupt SCnTIRQ is generated, SCnTBSY is cleared to "0". If the SCnSBOS flag is set to "0" during communication, the SCnTBSY flag is cleared to "0".

XI - 26 Operation

Page 352
Image 352
Panasonic MN101C77C, F77G user manual XI 26 Operation