













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














RxD TxD GND DSR DTR RTS CTS RI
RxD TxD GND DSR DTR RTS CTS RI
the sender the receiver
Legend: DTR = Data Terminal Ready (1=yes, 0=no) RTS = Request To Send (1=yes, 0=no) OUT1 = not used (except in loopback mode) OUT2 = enables the UART to issue interrupts LOOPBACK-mode (1=enabled, 0=disabled)
The receiver clears this bit
Read the Line Status Register
Write byte to the Transmit Data Register
Read the Modem Status Register
Set RTS=1 in the Modem Control Register
name
function
‘struct tasklet_struct’ object data-pointer
user space
‘virtual’ memory
kernel space
Some interrupted task’s context resides here (so it can’t be predicted)
The kernel-space context is consistent across all tasks
stops the sending of additional data
schedules the tasklet
resumes the Interrupted task
Arrival of new data interrupts the CPU
transfers received bytes from UART to to ringbuffer
wakes up sleeping readers
sleeps until driver’s ringbuffer has some data
moves data from driver’s ringbuffer to user’s buffer
issues ‘Clear-To-Send’ if case the driver’s ringbuffer has been emptied
reports count of bytes returned in user’s buffer