Please note that JavaScript and style sheet are used in this website,
Due to unadaptability of the style sheet with the browser used in your computer, pages may not look as original.
Even in such a case, however, the contents can be used safely.
FAQ-ID : v85seri-nnnn
FAQ-ID : v85seri-0001Last Updated : 2006/04
![[mi-sp101]](images/mi-sp101.gif)
![[mi-sp102]](images/mi-sp102.gif)
![[mi-sp103]](images/mi-sp103.gif)
![[mi-sp104]](images/mi-sp104.gif)
![[mi-sp105]](images/mi-sp105.gif)
FAQ-ID : v85seri-0002Last Updated : 2006/04
FAQ-ID : v85seri-0003
Time lag
< >
____ ____ ______________ ____
SCK |____| |____| ^ |____|
____ _________ ___________________ _________
SO ____|_________|___________________|_________
* ^
| +-Write complete until here
+-Interrupt at this point
At the rising edge of the clock of the last bit,
the 2nd byte data write is triggered but if write is delayed more than the falling edge
of the next clock
(the ^ point of SCK above and the clock not actually falling), that portion will be added.
FAQ-ID : v85seri-0004
FAQ-ID : v85seri-0005Last Updated : 2006/04
FAQ-ID : v85seri-0006Last Updated : 2006/04
FAQ-ID : v85seri-0007Last Updated : 2006/04
FAQ-ID : v85seri-0008Last Updated : 2006/04
FAQ-ID : v85seri-0009Last Updated : 2006/04
FAQ-ID : v85seri-0010
FAQ-ID : v85seri-0011
FAQ-ID : v85seri-0012
FAQ-ID : v85seri-0013Last Updated : 2006/04
FAQ-ID : v85seri-0014
FAQ-ID : v85seri-0015
FAQ-ID : v85seri-0016
FAQ-ID : v85seri-0017
FAQ-ID : v85seri-0018Last Updated : 2006/04
|
Description In almost all devices, the interrupt related to the transmission for microcontroller-embedded UART is a "transmission completion" interrupt. When using UARTAn in the V850ES/SG2 or V850ES/SJ2 (hereafter referred to simply as the V850ES/SJ2), this is a "transmission enable" interrupt. In either case, just setting transmit as enabled does not trigger an interrupt. When the first data is written, an interrupt occurs when transmission of that data is completed (in the V850ES/SJ2, this interrupt occurs when data has been transferred to the transmit shift register). The second and subsequent bytes of transmit data are written via this interrupt timing. Note with caution that the processing differs between the first bytes of data to be transmitted and the second and subsequent bytes. The V850ES/ME2 includes a FIFO, so a special operation is used for transmit-related interrupts (this operation will not be described here). |
FAQ-ID : v85seri-0019Last Updated : 2006/04
FAQ-ID : v85seri-0020Last Updated : 2006/04
(1) __DI(); (2) TCL50 = 0x04; (3) CR50 = 0x11; (4) TMC50 = 0x80; (5) CSIC0 = 0x06; (6) CSIM00 = 0xd0; (7) CSI0IC0 = 0x05; (8) PMC4 = 0x07; (9) __EI();
FAQ-ID : v85seri-0021Last Updated : 2006/04
| (1) | Set the CSIAEn bit in the CSIMAn register to "1" to set CSIAn to operation enable
status. (This also enables buffer RAM access.) |
| (2) | Select the serial clock via the CSISn register. |
| (3) | Set the division ratio for the serial clock via the BRGCAn register to select the serial transfer speed (communication speed). |
| (4) | Write the target data sequentially, starting from FFFFFE00H in buffer RAM. |
| (5) | In the ADTPn register, set the number of "(data length to be transmitted) − 1". |
| (6) | Set the ATEn and MASTERn bits in the CSIMAn register to "1" to select the automatic transfer mode and the master mode. |
| (7) | Set the TXEAn bit in the CSIMAn register to "1" to enable transmission. |
| (8) | Set the data transmit interval via the ADTIn register. |
| (9) | For CSIA0, set bits 4 and 5 in the PFC5 register to "0" and bits 4 and 5 in the PMC5
register to "1". For CSIA1, set bits 11 and 12 in the PFC9 register and bits 11 and 12 in the PMC9 register to "1". |