Paper 10
Paper 10
SM chart of receiver
Two counters are used ct1 counts the number of BClkX8
clocks [5]. ct2 counts the number of bits received after the start
bit is encountered. In the IDLE state, the SM waits for the start
bit (RxD = ‘0’) and then goes to start detected state. Now the
SM waits for the rising edge of BClkX8 and samples RxD
once more. Since the start bit should be ‘0’ for eight BClkX8
clocks, a ‘0’ should be read. As ct1 is still 0, it is incremented
and SM waits for the rising edge of BClkX8.If RxD = ‘1’, this
is an error condition and SM clears ct1 and resets to the IDLE
state [5]. Otherwise SM keeps looping till RxD is ‘0’. When
RxD is ‘0’ for the fourth time, ct1 = 3, so ct1 is cleared the
state goes to receive data. In this state, the SM increments ct1
after every rising edge of BClkX8.After the eighth clock, ct1 =
7 and ct2 is checked. If it is not 8, the current value of RxD is
shifted to RSR, ct2 is incremented, and ct1 is cleared. If ct2 =
8, all the 8 bits have been read and we should be at the middle Fig. 6. SM chart of receiver
of the stop bit. If RDRF = 1,the microcontroller has not yet
read the previously received data byte, and an overrun error has The receiver contains the RDR and RSR registers and
occurred, where the OE flag in the status register is set and the receives control. The control interfaces with SCSR [5], and
new data is ignored. If RxD = ‘0’, the stop bit has not been RDR can drive data on to the data bus. The first process
detected properly, and the framing error (FE) [5] flag in the represents a combinational network, which generates the next
status register is set. If no errors have occurred, RDR is loaded state and control signals. The second process updates the
from RSR. In all cases, RDRF is set to indicate that receive registers on the rising edge of the clock. The signal
operation is completed and counter is cleared. BclkX8_rising is generated the same manner as Bclk_rising.
III. VHDL SIMULATION
A. BAUDRATE GENERATOR
1) Test bench input
2016 3rd International Conference on Advanced Computing and Communication Systems (ICACCS -2016), Jan. 22 – 23, 2016, Coimbatore, INDIA
B. TRANSMITTER
1) Test bench input
C. RECEIVER