UPD78F0535GB(T)-UEU-A NEC, UPD78F0535GB(T)-UEU-A Datasheet - Page 740

8BIT MCU, 60K FLASH, 3KB RAM, LQFP

UPD78F0535GB(T)-UEU-A

Manufacturer Part Number
UPD78F0535GB(T)-UEU-A
Description
8BIT MCU, 60K FLASH, 3KB RAM, LQFP
Manufacturer
NEC
Datasheet

Specifications of UPD78F0535GB(T)-UEU-A

Controller Family/series
UPD78
No. Of I/o's
55
Ram Memory Size
3KB
Cpu Speed
20MHz
No. Of Timers
8
No. Of Pwm
RoHS Compliant
Core Size
8bit
Program Memory Size
60KB
Oscillator Type
External, Internal
740
Serial
interface
UART0
Serial
interface
UART6
Function
BRGC0: Baud
rate generator
control register 0 The baud rate value is the output clock of the 5-bit counter divided by 2.
POWER0,
TXE0, RXE0:
Bits 7, 6, 5 of
ASIM0
UART mode
UART
transmission
UART reception
Error of baud
rate
Permissible
baud rate range
during reception
UART mode
TXB6: Transmit
buffer register 6
Details of
Function
Make sure that bit 6 (TXE0) and bit 5 (RXE0) of the ASIM0 register = 0 when
rewriting the MDL04 to MDL00 bits.
Clear POWER0 to 0 after clearing TXE0 and RXE0 to 0 to set the operation stop
mode.
To start the communication, set POWER0 to 1, and then set TXE0 or RXE0 to 1.
Take relationship with the other party of communication when setting the port mode
register and port register.
After transmit data is written to TXS0, do not write the next transmit data before the
transmission completion interrupt signal (INTST0) is generated.
If a reception error occurs, read asynchronous serial interface reception error status
register 0 (ASIS0) and then read receive buffer register 0 (RXB0) to clear the error
flag.
Otherwise, an overrun error will occur when the next data is received, and the
reception error status will persist.
Reception is always performed with the “number of stop bits = 1”. The second stop
bit is ignored.
Keep the baud rate error during transmission to within the permissible error range at
the reception destination.
Make sure that the baud rate error during reception satisfies the range shown in (4)
Permissible baud rate range during reception.
Make sure that the baud rate error during reception is within the permissible error
range, by using the calculation expression shown below.
The T
reception side. To use this function, the reception side must be ready for reception
of inverted data.
If clock supply to serial interface UART6 is not stopped (e.g., in the HALT mode),
normal operation continues. If clock supply to serial interface UART6 is stopped
(e.g., in the STOP mode), each register stops operating, and holds the value
immediately before clock supply was stopped. The T
immediately before clock supply was stopped and outputs it. However, the
operation is not guaranteed after clock supply is resumed. Therefore, reset the
circuit so that POWER6 = 0, RXE6 = 0, and TXE6 = 0.
Set POWER6 = 1 and then set TXE6 = 1 (transmission) or RXE6 = 1 (reception) to
start communication.
TXE6 and RXE6 are synchronized by the base clock (f
enable transmission or reception again, set TXE6 or RXE6 to 1 at least two clocks
of the base clock after TXE6 or RXE6 has been cleared to 0. If TXE6 or RXE6 is
set within two clocks of the base clock, the transmission circuit or reception circuit
may not be initialized.
Set transmit data to TXB6 at least one base clock (f
If data is continuously transmitted, the communication timing from the stop bit to the
next start bit is extended two operating clocks of the macro. However, this does not
affect the result of communication because the reception side initializes the timing
when it has detected a start bit. Do not use the continuous transmission function if
the interface is used in LIN communication operation.
Do not write data to TXB6 when bit 1 (TXBF6) of asynchronous serial interface
transmission status register 6 (ASIF6) is 1.
Do not refresh (write the same value to) TXB6 by software during a communication
operation (when bits 7 and 6 (POWER6, TXE6) of asynchronous serial interface
operation mode register 6 (ASIM6) are 1 or when bits 7 and 5 (POWER6, RXE6) of
ASIM6 are 1).
Set transmit data to TXB6 at least one base clock (f
X
D6 output inversion function inverts only the transmission side and not the
APPENDIX D LIST OF CAUTIONS
User’s Manual U17260EJ6V0UD
Cautions
XCLK6
XCLK6
X
D6 pin also holds the value
XCLK6
) after setting TXE6 = 1.
) after setting TXE6 = 1.
) set by CKSR6. To
p. 342
p. 342
p. 343
p. 344
p. 347
p. 348
p. 348
p. 351
p. 351
p. 353
p. 355
p. 355
p. 355
p. 355
p. 355
p. 355
p. 361
p. 361
p. 361
(14/25)
Page

Related parts for UPD78F0535GB(T)-UEU-A