ATmega128__UART1

HWSW Famulus hwsw at famulus.hu
Wed Apr 30 08:47:38 CEST 2003


> Igen. Az USART-tal kapcsolatban nekem is lenne egy erdekes kerdesem,
> vajon meg lehetne azt oldani, hogy az egyik (mindegy) USART szinkron
> master modban adjon, es aszinkron vegyen?

Hat a 170/171. oldal abrajat nezve szerintem csak egy orajel forras lehet
egyszerre hasznalatban, ezert a sebesseg es az uzemmod azonos kell legyen
adasra es vetelre is.
Nomeg az UCSRAC regiszterben az UMSEL is csak (global) egy bit.....
nem pedig  iranyonkent valthato hogy SYNC/ASYINC legyen a mod

De, ha nem duplex a dolog akkor szerintem siman valthato a mod
feltetel csak annyi, hogy ne legyen eppen atvitel folyamatban.

KJ

----------------------------------------

Before doing a re-initialization with changed baud rate or frame format, be
sure that

there are no ongoing transmissions during the period the registers are
changed. The

TXC flag can be used to check that the Transmitter has completed all
transfers, and the

RXC flag can be used to check that there are no unread data in the receive
buffer. Note

that the TXC flag must be cleared before each transmission

-------------------------------------------






More information about the Elektro mailing list