Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

ATmega328p UART framing error does not occur!

$
0
0
There is a protocole over serial port as following:
1. no signal (idle) is High (+5V).
2. reset signal is a 60 us Low (0v) pulse.
3. data signal is : 250 kbps/8 bits/2 stop/no parity

I want to detect reset signal using Frame Error capability of MCU (ATmega328p)

250 kbps so 1 bit is 4us,
serial packet is 11 bit = 44 us
the farme format is = start-b0-b1-b2-b3-b4-b5-b6-b7-stop1-stop2
for normal data = 0-x-x-x-x-x-x-x-x-1-1
for reset pulse = 0-0-0-0-0-0-0-0-0-0-0-0-0-0-0

According page 245 of...

ATmega328p UART framing error does not occur!

Viewing all articles
Browse latest Browse all 4922

Trending Articles