поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN2284 датащи(PDF) 34 Page - STMicroelectronics

номер детали AN2284
подробное описание детали  Smart Card Interface with the STR71xx
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2284 датащи(HTML) 34 Page - STMicroelectronics

Back Button AN2284 Datasheet HTML 30Page - STMicroelectronics AN2284 Datasheet HTML 31Page - STMicroelectronics AN2284 Datasheet HTML 32Page - STMicroelectronics AN2284 Datasheet HTML 33Page - STMicroelectronics AN2284 Datasheet HTML 34Page - STMicroelectronics AN2284 Datasheet HTML 35Page - STMicroelectronics AN2284 Datasheet HTML 36Page - STMicroelectronics AN2284 Datasheet HTML 37Page - STMicroelectronics AN2284 Datasheet HTML 38Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 40 page
background image
9 SC Reader Lib: Parity Error Management
AN2284
34/40
9
SC Reader Lib: Parity Error Management
In the T=0 protocol error handling is performed on each byte by looking at the parity bit. If the
actual parity bit does not correspond to the parity of the transmitted data, then an error must
have occurred; the receiving side signals that it requires the byte to be retransmitted in the case
of detecting a parity error. This is done by holding the I/O line low (normally the I/O line is set
high preceding the transfer of a byte). When the transmitting side detects this, it resends the
byte that was previously received in error.
9.1
Data Sent From Card to Reader
STR71xx is able to detect via HW a parity error on a received data pulling down the data line
during the stop bit.
9.2
Data Sent From Reader to Card
Vice versa if the smart card pulls down the I/O line to signal that a parity error occurred, the
user needs to check it by SW in order to resend the last data.
The SC library uses the
Uart_ByteSend_SCirq funtion (sc.c file) in conjunction with:
-
SC_ParityErrorIRQHandler(void) (device_SCR.c file) funtion which checks if the parity error
occurs and manages it.
Each time the
Uart_ByteSend_SCirq function is called it:
- sends a byte
- enables the reception
(UART_RxConfig(UART1 ,ENABLE)) in order to capture the
transmitted byte
- enables the Frame error interrupt source
After a byte is sent from the microcontroller to the card, the smart card peripheral captures the
data sent on the I/O line. If a parity error is detected from the card, the I/O line is pulled down
during the stop bits. A frame error event occurs and the related irq event invokes the
SC_ParityErrorIRQHandler(void) function. It resends the last data and disables the irq
source.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com